1
Fork 0

Improve documentation and fix the fixme comment

This commit is contained in:
Celina G. Val 2023-11-23 12:29:20 -08:00
parent 591b41abb8
commit b6e977243f
3 changed files with 20 additions and 8 deletions

View file

@ -256,6 +256,9 @@ impl<'tcx> Context for TablesWrapper<'tcx> {
tables.tcx.symbol_name(instance).name.to_string()
}
/// Retrieve the instance name for diagnostic messages.
///
/// This will return the specialized name, e.g., `Vec<char>::new`.
fn instance_name(&self, def: InstanceDef, trimmed: bool) -> Symbol {
let tables = self.0.borrow_mut();
let instance = tables.instances[def];