We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5005be6 commit 428c58bCopy full SHA for 428c58b
src/librustc/middle/typeck/collect.rs
@@ -264,7 +264,7 @@ fn ensure_supertraits(ccx: @crate_ctxt,
264
for trait_refs.each |trait_ref| {
265
let (did, tpt) = instantiate_trait_ref(ccx, *trait_ref, rp);
266
if instantiated.any(|other_trait: &InstantiatedTraitRef|
267
- { (*other_trait).def_id == did }) {
+ { other_trait.def_id == did }) {
268
// This means a trait inherited from the same supertrait more
269
// than once.
270
tcx.sess.span_err(sp, ~"Duplicate supertrait in trait \
0 commit comments