We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
intrinsic_name
1 parent 9a05afd commit b03e7c6Copy full SHA for b03e7c6
compiler/rustc_smir/src/rustc_smir/context.rs
@@ -587,6 +587,10 @@ impl<'tcx> Context for TablesWrapper<'tcx> {
587
}
588
589
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
fn intrinsic_name(&self, def: InstanceDef) -> Option<Symbol> {
595
let tables = self.0.borrow_mut();
596
let instance = tables.instances[def];
0 commit comments