Improve documentation and fix the fixme comment
This commit is contained in:
parent
591b41abb8
commit
b6e977243f
3 changed files with 20 additions and 8 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue