Skip to content

Commit

Permalink
Add type system canaries for potential future bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jul 25, 2018
1 parent 01eacd8 commit 33712a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/librustc/traits/specialize/specialization_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,11 @@ impl<'a, 'gcx, 'tcx> Ancestors {
| (Type, Existential)
=> tcx.hygienic_eq(impl_item.ident, trait_item_name, trait_def_id),

_ => false,
| (Const, _)
| (Method, _)
| (Type, _)
| (Existential, _)
=> false,
}).map(move |item| NodeItem { node: node, item: item })
})
}
Expand Down

0 comments on commit 33712a8

Please sign in to comment.