mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Fix build failure on rustc 1.19.0-nightly (0ed1ec9f9
2017-05-18)
This commit is contained in:
parent
ed909cadd6
commit
30b94b0fb0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user