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_attr_data_structures/src | |
| parent | adaf34045566999aa7770ef3e4c8ef4bdd1ad906 (diff) | |
| parent | f9cdf3fd746bc8a20d2bfd62189180ea69029627 (diff) | |
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_attr_data_structures/src')
| -rw-r--r-- | compiler/rustc_attr_data_structures/src/attributes.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_attr_data_structures/src/attributes.rs b/compiler/rustc_attr_data_structures/src/attributes.rs index c4b377d80e2..dc3598bcc36 100644 --- a/compiler/rustc_attr_data_structures/src/attributes.rs +++ b/compiler/rustc_attr_data_structures/src/attributes.rs @@ -274,5 +274,8 @@ pub enum AttributeKind { /// Span of the attribute. span: Span, }, + + /// Represents `#[track_caller]` + TrackCaller(Span), // tidy-alphabetical-end } |
