Fix build failure on rustc 1.19.0-nightly (0ed1ec9f9 2017-05-18)

This commit is contained in:
messense 2017-05-19 16:54:02 +08:00
parent ed909cadd6
commit 30b94b0fb0
No known key found for this signature in database
GPG Key ID: BB41A8A2C716CCA9

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)