File tree 2 files changed +6
-1
lines changed
compiler/rustc_passes/src
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -411,7 +411,11 @@ impl<'tcx> ExprVisitor<'tcx> {
411
411
let msg = format ! (
412
412
"register class `{}` requires at least one of the following target features: {}" ,
413
413
reg_class. name( ) ,
414
- features. iter( ) . map( |f| f. as_str( ) ) . collect:: <Vec <_>>( ) . join( ", " )
414
+ features
415
+ . iter( )
416
+ . map( |f| f. as_str( ) )
417
+ . intersperse( ", " )
418
+ . collect:: <String >( ) ,
415
419
) ;
416
420
self . tcx . sess . struct_span_err ( * op_sp, & msg) . emit ( ) ;
417
421
// register isn't enabled, don't do more checks
Original file line number Diff line number Diff line change 6
6
7
7
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
8
8
#![ feature( crate_visibility_modifier) ]
9
+ #![ feature( iter_intersperse) ]
9
10
#![ feature( let_else) ]
10
11
#![ feature( map_try_insert) ]
11
12
#![ feature( min_specialization) ]
You can’t perform that action at this time.
0 commit comments