File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -995,9 +995,10 @@ impl<'a> LoweringContext<'a> {
995
995
) ;
996
996
997
997
let hir_bounds = self . lower_bounds ( bounds, itctx) ;
998
+ // Set the name to `impl Bound1 + Bound2`
999
+ let name = Symbol :: intern ( & pprust:: ty_to_string ( t) ) ;
998
1000
self . in_band_ty_params . push ( hir:: TyParam {
999
- // Set the name to `impl Bound1 + Bound2`
1000
- name : Symbol :: intern ( & pprust:: ty_to_string ( t) ) ,
1001
+ name,
1001
1002
id : def_node_id,
1002
1003
bounds : hir_bounds,
1003
1004
default : None ,
@@ -1009,7 +1010,7 @@ impl<'a> LoweringContext<'a> {
1009
1010
hir:: TyPath ( hir:: QPath :: Resolved ( None , P ( hir:: Path {
1010
1011
span,
1011
1012
def : Def :: TyParam ( DefId :: local ( def_index) ) ,
1012
- segments : vec ! [ ] . into ( ) ,
1013
+ segments : hir_vec ! [ hir :: PathSegment :: from_name ( name ) ] ,
1013
1014
} ) ) )
1014
1015
} ,
1015
1016
ImplTraitContext :: Disallowed => {
You can’t perform that action at this time.
0 commit comments