Unused Argument Warnings in Intrinsics Without Body #135598
Labels
C-bug
Category: This is a bug.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
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: