Skip to content

Crubit: improve error message for unbindable type used by value#940

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_909918918
May 5, 2026
Merged

Crubit: improve error message for unbindable type used by value#940
copybara-service[bot] merged 1 commit intomainfrom
test_909918918

Conversation

@copybara-service
Copy link
Copy Markdown

@copybara-service copybara-service Bot commented May 4, 2026

Crubit: improve error message for unbindable type used by value

When a type cannot be bound (results in RsTypeKind::Error), and it is used by value in a function, the error message was missing the actual type name.
This CL updates check_by_value in rs_snippet.rs to include the symbol name in the error message.

@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 4, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@copybara-service copybara-service Bot changed the title Internal-only change Crubit: improve error message for unbindable type used by value May 4, 2026
@copybara-service copybara-service Bot force-pushed the test_909918918 branch 2 times, most recently from a7b7a6d to 42c20f4 Compare May 5, 2026 09:42
When a type cannot be bound (results in RsTypeKind::Error), and it is used by value in a function, the error message was missing the actual type name.
This CL updates check_by_value in rs_snippet.rs to include the symbol name in the error message.

PiperOrigin-RevId: 910546676
@copybara-service copybara-service Bot merged commit d9ada01 into main May 5, 2026
@copybara-service copybara-service Bot deleted the test_909918918 branch May 5, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants