X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustc%2Fty%2Fadjustment.rs;h=11aad87b70dd3e4ce5b70356e078cdcd853204c3;hb=231b0375f6778bb409305cd3c34bc820d727aab4;hp=0843a3a55fc4103a2f0ac8be4cdb48a58f742b83;hpb=8bdb91d9ffc9d5f008dae971faadcb06cf2a3bb9;p=rust.git diff --git a/src/librustc/ty/adjustment.rs b/src/librustc/ty/adjustment.rs index 0843a3a55fc..11aad87b70d 100644 --- a/src/librustc/ty/adjustment.rs +++ b/src/librustc/ty/adjustment.rs @@ -111,7 +111,7 @@ pub fn method_call(&self, tcx: TyCtxt<'a, 'gcx, 'tcx>, source: Ty<'tcx>) hir::MutMutable => tcx.lang_items().deref_mut_trait() }; let method_def_id = tcx.associated_items(trait_def_id.unwrap()) - .find(|m| m.kind == ty::AssociatedKind::Method).unwrap().def_id; + .find(|m| m.kind == ty::AssocKind::Method).unwrap().def_id; (method_def_id, tcx.mk_substs_trait(source, &[])) } }