-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Port #[track_caller]
to the new attribute system
#142825
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
base: master
Are you sure you want to change the base?
Conversation
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. Some changes occurred in compiler/rustc_codegen_ssa Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
@@ -815,9 +704,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> { | |||
// erroneously allowed it and some crates used it accidentally, to be compatible | |||
// with crates depending on them, we can't throw an error here. | |||
Target::Field | Target::Arm | Target::MacroDef => { | |||
for attr in attrs { |
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 entire loop is simply wrong and unnecessary
☔ The latest upstream changes (presumably #142826) made this pull request unmergeable. Please resolve the merge conflicts. |
ae97fcd
to
c7530e3
Compare
@oli-obk should be ready for review |
ok this one was like just a straight forward translation. With all the infrastructure in place from the previous ones further ones seem to be getting simpler ^^ @bors r+ |
☔ The latest upstream changes (presumably #142956) made this pull request unmergeable. Please resolve the merge conflicts. |
Rollup of 7 pull requests Successful merges: - #137268 (Allow comparisons between `CStr`, `CString`, and `Cow<CStr>`.) - #142704 (Remove the deprecated unstable `concat_idents!` macro) - #142742 ([win][aarch64] Fix linking statics on Arm64EC, take 2) - #142843 (Enable reproducible-build-2 for Windows MSVC) - #142916 (rustdoc-json: Add test for `#[optimize(..)]`) - #142919 (rustdoc-json: Add test for `#[cold]`) - #142944 (Stats output tweaks) Failed merges: - #142825 (Port `#[track_caller]` to the new attribute system) r? `@ghost` `@rustbot` modify labels: rollup
r? @oli-obk
depends on #142493
Closes #142783
(didn't add a test for this, this situation should simply never come up again, the code was simply wrong. lmk if I should add it, but it won't test something very useful)