-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Regression from new lint out_of_scope_macro_calls
#126984
Comments
I can reproduce locally with rustc 1.81.0-nightly (fda509e 2024-06-25) @rustbot label +E-needs-mcve +A-lint +T-compiler +regression-from-stable-to-nightly -needs-triage Cc @petrochenkov since you added the lint in #125741 |
Yes, looks like a false positive caused by |
It's not about global asm, it's about any eager expansion in macro call items. |
Awesome, thanks for the quick fix |
There might be another bug with this lint, seems like it might not be recognized as an inner attribute. Trying to ignore it gives contradictory messages:
From trying to silence the error in compiler_builtins, https://github.com/rust-lang/compiler-builtins/actions/runs/9735325154/job/26864417423#step:13:2321 |
I don't think the lint is ever actually being registered anywhere; more specifically it needs to be added to the |
…ro-calls, r=compiler-errors Ensure `out_of_scope_macro_calls` lint is registered Fixes part of rust-lang#126984 (comment).
…ro-calls, r=compiler-errors Ensure `out_of_scope_macro_calls` lint is registered Fixes part of rust-lang#126984 (comment).
Rollup merge of rust-lang#127191 - beetrees:register-out-of-scope-macro-calls, r=compiler-errors Ensure `out_of_scope_macro_calls` lint is registered Fixes part of rust-lang#126984 (comment).
out_of_scope_macro_calls: Detect calls inside attributes more precisely Fixes rust-lang#126984.
<rust-lang/rust#126984> has been resolved. Remove the workaround that was introduced to suppress it. This reverts commit 254edbc.
<rust-lang/rust#126984> has been resolved. Remove the workaround that was introduced to suppress it. This reverts commit 254edbc.
compiler_builtins
is now getting:But this doesn't seem right, unless I am misreading something. The
global_asm!
invocation that is enabled on x86_64 (https://github.com/rust-lang/compiler-builtins/blob/7a84ce4a90cd2d22494daead50f9026b5ca52140/src/probestack.rs#L130-L134) should find thedefine_rustc_probestack
definition that is enabled on everything except apple or uefi (https://github.com/rust-lang/compiler-builtins/blob/7a84ce4a90cd2d22494daead50f9026b5ca52140/src/probestack.rs#L61-L79).CI: https://github.com/rust-lang/compiler-builtins/actions/runs/9675571819/job/26693340492?pr=636#step:5:24
Unfortunately I haven't been successful in finding a mcve, https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=f299db7ba55daaa5b7721323bf72cfb8 works fine.
The text was updated successfully, but these errors were encountered: