Skip to content

Commit 33712a8

Browse files
committed
Add type system canaries for potential future bugs
1 parent 01eacd8 commit 33712a8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/librustc/traits/specialize/specialization_graph.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,11 @@ impl<'a, 'gcx, 'tcx> Ancestors {
385385
| (Type, Existential)
386386
=> tcx.hygienic_eq(impl_item.ident, trait_item_name, trait_def_id),
387387

388-
_ => false,
388+
| (Const, _)
389+
| (Method, _)
390+
| (Type, _)
391+
| (Existential, _)
392+
=> false,
389393
}).map(move |item| NodeItem { node: node, item: item })
390394
})
391395
}

0 commit comments

Comments
 (0)