Apply track_caller to closure on expect_non_local()
This commit is contained in:
parent
16a0d03698
commit
c7db4b08ff
2 changed files with 5 additions and 1 deletions
|
@ -671,7 +671,10 @@ impl<Id> Res<Id> {
|
|||
|
||||
#[track_caller]
|
||||
pub fn expect_non_local<OtherId>(self) -> Res<OtherId> {
|
||||
self.map_id(|_| panic!("unexpected `Res::Local`"))
|
||||
self.map_id(
|
||||
#[track_caller]
|
||||
|_| panic!("unexpected `Res::Local`"),
|
||||
)
|
||||
}
|
||||
|
||||
pub fn macro_kind(self) -> Option<MacroKind> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue