File tree 1 file changed +2
-2
lines changed
compiler/rustc_middle/src/hir/map
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -150,15 +150,15 @@ impl<'tcx> TyCtxt<'tcx> {
150
150
/// Retrieves the `hir::Node` corresponding to `id`, panicking if it cannot be found.
151
151
#[ track_caller]
152
152
pub fn hir_node ( self , id : HirId ) -> Node < ' tcx > {
153
- self . opt_hir_node ( id) . unwrap_or_else ( || bug ! ( "couldn't find hir id {} in the HIR map" , id ) )
153
+ self . opt_hir_node ( id) . unwrap_or_else ( || bug ! ( "couldn't find HIR node for hir id {id:?}" ) )
154
154
}
155
155
156
156
/// Retrieves the `hir::Node` corresponding to `id`, panicking if it cannot be found.
157
157
#[ inline]
158
158
#[ track_caller]
159
159
pub fn hir_node_by_def_id ( self , id : LocalDefId ) -> Node < ' tcx > {
160
160
self . opt_hir_node_by_def_id ( id)
161
- . unwrap_or_else ( || bug ! ( "couldn't find {:?} in the HIR map" , id ) )
161
+ . unwrap_or_else ( || bug ! ( "couldn't find HIR node for def id {id:?}" ) )
162
162
}
163
163
}
164
164
You can’t perform that action at this time.
0 commit comments