Skip to content

Commit

Permalink
Fix build in nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
topecongiro committed Dec 19, 2018
1 parent b3f8a7d commit f8fab65
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/semcheck/mismatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use rustc::{
hir::def_id::DefId,
ty::{
self,
relate::{Relate, RelateResult, TypeRelation},
relate::{Relate, RelateResult, TraitObjectMode, TypeRelation},
subst::Substs,
Ty, TyCtxt,
Visibility::Public,
Expand Down Expand Up @@ -94,6 +94,10 @@ impl<'a, 'gcx, 'tcx> TypeRelation<'a, 'gcx, 'tcx> for MismatchRelation<'a, 'gcx,
"Mismatch"
}

fn trait_object_mode(&self) -> TraitObjectMode {
TraitObjectMode::NoSquash
}

fn a_is_expected(&self) -> bool {
true
}
Expand Down

0 comments on commit f8fab65

Please sign in to comment.