-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unused Argument Warnings in Intrinsics Without Body #135598
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-intrinsics
Area: Intrinsics
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
Cc @oli-obk |
@rustbot label -I-ICE |
@rustbot claim |
workingjubilee
added a commit
to workingjubilee/rustc
that referenced
this issue
Jan 31, 2025
…param_warning, r=oli-obk omit unused args warnings for intrinsics without body potential fix for rust-lang#135598
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Feb 1, 2025
…param_warning, r=oli-obk omit unused args warnings for intrinsics without body potential fix for rust-lang#135598
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Feb 1, 2025
Rollup merge of rust-lang#135840 - vayunbiyani:omit_intrinsic_unused_param_warning, r=oli-obk omit unused args warnings for intrinsics without body potential fix for rust-lang#135598
RalfJung
pushed a commit
to RalfJung/miri
that referenced
this issue
Feb 2, 2025
…ning, r=oli-obk omit unused args warnings for intrinsics without body potential fix for rust-lang/rust#135598
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-intrinsics
Area: Intrinsics
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Problem:
The compiler emits warnings about unused arguments in intrinsic functions without bodies (when
#[rustc_intrinsic]
is used). These arguments are inherently unused, but the warnings create unnecessary noise.Proposed Solution:
Update the compiler to automatically suppress unused argument warnings for intrinsics without bodies. This eliminates the need for manual workarounds like prefixing variable names with _.
Issue reproduced here:
#135333 (comment)
The text was updated successfully, but these errors were encountered: