File tree 2 files changed +4
-3
lines changed
rustc_smir/src/rustc_smir
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -588,9 +588,6 @@ impl<'tcx> Context for TablesWrapper<'tcx> {
588
588
}
589
589
590
590
/// Retrieve the plain intrinsic name of an instance if it's an intrinsic.
591
- ///
592
- /// The plain name does not include type arguments (as `instance_name`
593
- /// does), which is more convenient to match with intrinsic symbols.
594
591
fn intrinsic_name ( & self , def : InstanceDef ) -> Option < Symbol > {
595
592
let tables = self . 0 . borrow_mut ( ) ;
596
593
let instance = tables. instances [ def] ;
Original file line number Diff line number Diff line change @@ -90,6 +90,10 @@ impl Instance {
90
90
with ( |context| context. instance_name ( self . def , true ) )
91
91
}
92
92
93
+ /// Retrieve the plain intrinsic name of an instance if it's an intrinsic.
94
+ ///
95
+ /// The plain name does not include type arguments (as `trimmed_name` does),
96
+ /// which is more convenient to match with intrinsic symbols.
93
97
pub fn intrinsic_name ( & self ) -> Option < Symbol > {
94
98
with ( |context| context. intrinsic_name ( self . def ) )
95
99
}
You can’t perform that action at this time.
0 commit comments