@@ -33,16 +33,15 @@ are represented as `ty_param()` instances.
33
33
use core:: prelude:: * ;
34
34
35
35
use metadata:: csearch;
36
- use middle:: ty:: { substs, ty_param_bounds_and_ty, ty_param_substs_and_ty } ;
36
+ use middle:: ty:: { substs, ty_param_bounds_and_ty} ;
37
37
use middle:: ty;
38
38
use middle:: typeck:: astconv:: { AstConv , ty_of_arg} ;
39
39
use middle:: typeck:: astconv:: { ast_ty_to_ty} ;
40
40
use middle:: typeck:: astconv;
41
41
use middle:: typeck:: infer;
42
42
use middle:: typeck:: rscope:: * ;
43
43
use middle:: typeck:: rscope;
44
- use middle:: typeck:: { CrateCtxt , lookup_def_tcx, no_params, write_ty_to_tcx,
45
- write_tpt_to_tcx} ;
44
+ use middle:: typeck:: { CrateCtxt , lookup_def_tcx, no_params, write_ty_to_tcx} ;
46
45
use util:: common:: { indenter, pluralize} ;
47
46
use util:: ppaux;
48
47
@@ -362,7 +361,7 @@ pub fn ensure_supertraits(ccx: &CrateCtxt,
362
361
for ast_trait_refs. each |& ast_trait_ref| {
363
362
let trait_ref = instantiate_trait_ref ( ccx, ast_trait_ref, rp, generics) ;
364
363
365
- // NOTE Could have same trait multiple times
364
+ // FIXME(#5527) Could have same trait multiple times
366
365
if ty_trait_refs. any ( |other_trait| other_trait. def_id == trait_ref. def_id ) {
367
366
// This means a trait inherited from the same supertrait more
368
367
// than once.
0 commit comments