Skip to content

Commit

Permalink
Merge pull request rust-lang#82 from topecongiro/fix-nightly
Browse files Browse the repository at this point in the history
Fix build in nightly
  • Loading branch information
ibabushkin committed Jan 2, 2019
2 parents b3f8a7d + f8fab65 commit eefc1ba
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 eefc1ba

Please sign in to comment.