Skip to content

Commit c25fd71

Browse files
committed
Move documentation to public API
1 parent b5b19ab commit c25fd71

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

compiler/rustc_smir/src/rustc_smir/context.rs

-3
Original file line numberDiff line numberDiff line change
@@ -588,9 +588,6 @@ impl<'tcx> Context for TablesWrapper<'tcx> {
588588
}
589589

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

compiler/stable_mir/src/mir/mono.rs

+4
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ impl Instance {
9090
with(|context| context.instance_name(self.def, true))
9191
}
9292

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.
9397
pub fn intrinsic_name(&self) -> Option<Symbol> {
9498
with(|context| context.intrinsic_name(self.def))
9599
}

0 commit comments

Comments
 (0)