We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
expect_non_local()
1 parent 16a0d03 commit c7db4b0Copy full SHA for c7db4b0
compiler/rustc_hir/src/def.rs
@@ -671,7 +671,10 @@ impl<Id> Res<Id> {
671
672
#[track_caller]
673
pub fn expect_non_local<OtherId>(self) -> Res<OtherId> {
674
- self.map_id(|_| panic!("unexpected `Res::Local`"))
+ self.map_id(
675
+ #[track_caller]
676
+ |_| panic!("unexpected `Res::Local`"),
677
+ )
678
}
679
680
pub fn macro_kind(self) -> Option<MacroKind> {
compiler/rustc_hir/src/lib.rs
@@ -3,6 +3,7 @@
3
//! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/hir.html
4
5
#![feature(associated_type_defaults)]
6
+#![feature(closure_track_caller)]
7
#![feature(const_btree_new)]
8
#![feature(let_else)]
9
#![feature(once_cell)]
0 commit comments