Change SymbolName::name from InternedString to Symbol.

This requires changing the `PartialOrd`/`Ord` implementations to look at
the chars rather than the symbol index.
This commit is contained in:
Nicholas Nethercote 2019-10-21 15:53:37 +11:00
parent b8214e9b44
commit dddacf1eb3
5 changed files with 32 additions and 22 deletions

View file

@ -221,7 +221,7 @@ impl CodegenCx<'ll, 'tcx> {
def_id);
let ty = instance.ty(self.tcx);
let sym = self.tcx.symbol_name(instance).name.as_symbol();
let sym = self.tcx.symbol_name(instance).name;
debug!("get_static: sym={} instance={:?}", sym, instance);