Skip to content

Commit

Permalink
Rollup merge of #71938 - mark-i-m:de-abuse-err-4, r=eddyb
Browse files Browse the repository at this point in the history
Use trait_object_dummy_self instead of err

r? @eddyb

cc #70866.
  • Loading branch information
Dylan-DPC committed May 7, 2020
2 parents 4802f09 + 9ed9200 commit 037ae40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_typeck/check/closure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 037ae40

Please sign in to comment.