diff options
| author | Jubilee <workingjubilee@gmail.com> | 2025-06-24 19:45:32 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-24 19:45:32 -0700 |
| commit | 2ad6272649848eb080e5f4204717682799acb4e8 (patch) | |
| tree | e1d28528b52cf04eb87e33244ac2cf256e38a39a /compiler/rustc_parse/src | |
| parent | adaf34045566999aa7770ef3e4c8ef4bdd1ad906 (diff) | |
| parent | f9cdf3fd746bc8a20d2bfd62189180ea69029627 (diff) | |
| download | rust-2ad6272649848eb080e5f4204717682799acb4e8.tar.gz rust-2ad6272649848eb080e5f4204717682799acb4e8.zip | |
Rollup merge of #142825 - jdonszelmann:track-caller, r=oli-obk
Port `#[track_caller]` to the new attribute system r? ``@oli-obk`` depends on https://github.com/rust-lang/rust/pull/142493 Closes rust-lang/rust#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)
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/validate_attr.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/validate_attr.rs b/compiler/rustc_parse/src/validate_attr.rs index 47e29923ee5..68d78af5943 100644 --- a/compiler/rustc_parse/src/validate_attr.rs +++ b/compiler/rustc_parse/src/validate_attr.rs @@ -301,6 +301,7 @@ fn emit_malformed_attribute( | sym::naked | sym::no_mangle | sym::must_use + | sym::track_caller ) { return; } |
