Rollup merge of #71938 - mark-i-m:de-abuse-err-4, r=eddyb

Use trait_object_dummy_self instead of err

r? @eddyb

cc #70866.
This commit is contained in:
Dylan DPC 2020-05-07 17:58:52 +02:00 committed by GitHub
commit 037ae4008f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,7 +178,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
match expected_ty.kind {
ty::Dynamic(ref object_type, ..) => {
let sig = object_type.projection_bounds().find_map(|pb| {
let pb = pb.with_self_ty(self.tcx, self.tcx.types.err);
let pb = pb.with_self_ty(self.tcx, self.tcx.types.trait_object_dummy_self);
self.deduce_sig_from_projection(None, &pb)
});
let kind = object_type