Skip to content

Commit b03e7c6

Browse files
committed
Document intrinsic_name
1 parent 9a05afd commit b03e7c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/rustc_smir/src/rustc_smir/context.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,10 @@ impl<'tcx> Context for TablesWrapper<'tcx> {
587587
}
588588
}
589589

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.
590594
fn intrinsic_name(&self, def: InstanceDef) -> Option<Symbol> {
591595
let tables = self.0.borrow_mut();
592596
let instance = tables.instances[def];

0 commit comments

Comments
 (0)