-
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
Lint missing Abi in ast validation instead of lowering. #87114
Conversation
r? @estebank (rust-highfive has picked a reviewer for you, use r? to override) |
|
// FIXME(davidtwco): This is a hack to detect macros which produce spans of the | ||
// call site which do not have a macro backtrace. See #61963. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we have some way to enable this to push the proc-macro ecosystem in the right direction?
@bors r+ |
📌 Commit 1f1d212 has been approved by |
Lint missing Abi in ast validation instead of lowering.
Failed in rollup: #87639 (comment) |
Ideally we could fix the code to make the pointed span not change, but either way it's fine. |
Rebased. |
☔ The latest upstream changes (presumably #88208) made this pull request unmergeable. Please resolve the merge conflicts. |
@bors r+ |
📌 Commit f76442c460c5e29b8015deb14c7f0e9d5bd87738 has been approved by |
@@ -2,7 +2,7 @@ error: extern declarations without an explicit ABI are deprecated | |||
--> $DIR/cli-lint-override.rs:12:1 | |||
| | |||
LL | extern fn foo() {} | |||
| ^^^^^^^^^^^^^^^ ABI should be specified here | |||
| ^^^^^^^^^^^^^^^^^^ ABI should be specified here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will cause the entire function to be marked in ide's instead of just the function signature, which is annoying.
@bors r+ |
📌 Commit 8d7d488 has been approved by |
Lint missing Abi in ast validation instead of lowering.
Lint missing Abi in ast validation instead of lowering.
☀️ Test successful - checks-actions |
No description provided.