mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-28 07:30:57 +00:00
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:
commit
dff584c51a
1 changed files with 0 additions and 2 deletions
|
@ -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 a new issue