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)
This commit is contained in:
Jubilee
2025-06-24 19:45:32 -07:00
committed by GitHub
14 changed files with 92 additions and 60 deletions

View File

@@ -274,5 +274,8 @@ pub enum AttributeKind {
/// Span of the attribute.
span: Span,
},
/// Represents `#[track_caller]`
TrackCaller(Span),
// tidy-alphabetical-end
}