File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
compiler/rustc_passes/src Expand file tree Collapse file tree 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> {
411411 let msg = format ! (
412412 "register class `{}` requires at least one of the following target features: {}" ,
413413 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 >( ) ,
415419 ) ;
416420 self . tcx . sess . struct_span_err ( * op_sp, & msg) . emit ( ) ;
417421 // register isn't enabled, don't do more checks
Original file line number Diff line number Diff line change 66
77#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
88#![ feature( crate_visibility_modifier) ]
9+ #![ feature( iter_intersperse) ]
910#![ feature( let_else) ]
1011#![ feature( map_try_insert) ]
1112#![ feature( min_specialization) ]
You can’t perform that action at this time.
0 commit comments