Merge pull request #1768 from messense/feature/fix-nightly

Fix build failure on rustc 1.19.0-nightly (0ed1ec9f9 2017-05-18)
This commit is contained in:
Oliver Schneider 2017-05-19 11:08:44 +02:00 committed by GitHub
commit dff584c51a

View file

@ -325,8 +325,6 @@ pub fn implements_trait<'a, 'tcx>(
ty_params: &[ty::Ty<'tcx>],
parent_node_id: Option<NodeId>
) -> bool {
cx.tcx.populate_implementations_for_trait_if_necessary(trait_id);
let ty = cx.tcx.erase_regions(&ty);
let mut b = if let Some(id) = parent_node_id {
cx.tcx.infer_ctxt(BodyId { node_id: id }, Reveal::All)