Lift: take self by value
This commit is contained in:
parent
1d2726726f
commit
8752a560b9
15 changed files with 138 additions and 151 deletions
|
@ -258,7 +258,7 @@ impl<'tcx> InstanceDef<'tcx> {
|
|||
impl<'tcx> fmt::Display for Instance<'tcx> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
ty::tls::with(|tcx| {
|
||||
let substs = tcx.lift(&self.substs).expect("could not lift for printing");
|
||||
let substs = tcx.lift(self.substs).expect("could not lift for printing");
|
||||
FmtPrinter::new(tcx, &mut *f, Namespace::ValueNS)
|
||||
.print_def_path(self.def_id(), substs)?;
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue