@@ -25,29 +25,27 @@ fn main() {
2525 let doc_targets: HashSet < _ > = doc_targets_md
2626 . lines ( )
2727 . filter ( |line| line. starts_with ( & [ '`' , '[' ] [ ..] ) && line. contains ( '|' ) )
28- . map ( |line| line. split ( '`' ) . skip ( 1 ) . next ( ) . expect ( "expected target code span" ) )
28+ . map ( |line| line. split ( '`' ) . nth ( 1 ) . expect ( "expected target code span" ) )
2929 . collect ( ) ;
3030
3131 let missing: Vec < _ > = target_list. difference ( & doc_targets) . collect ( ) ;
3232 let extra: Vec < _ > = doc_targets. difference ( & target_list) . collect ( ) ;
3333 for target in & missing {
3434 eprintln ! (
35- "error: target `{}` is missing from {}\n \
36- If this is a new target, please add it to {}.",
37- target, filename, src
35+ "error: target `{target}` is missing from {filename}\n \
36+ If this is a new target, please add it to {src}."
3837 ) ;
3938 }
4039 for target in & extra {
4140 eprintln ! (
42- "error: target `{}` is in {}, but does not appear in the rustc target list\n \
43- If the target has been removed, please edit {} and remove the target.",
44- target, filename, src
41+ "error: target `{target}` is in {filename}, but does not appear in the rustc target list\n \
42+ If the target has been removed, please edit {src} and remove the target."
4543 ) ;
4644 }
4745 // Check target names for unwanted characters like `.` that can cause problems e.g. in Cargo.
4846 // See also Tier 3 target policy.
4947 // If desired, target names can ignore this check.
50- let ignore_target_names = vec ! [
48+ let ignore_target_names = [
5149 "thumbv8m.base-none-eabi" ,
5250 "thumbv8m.main-none-eabi" ,
5351 "thumbv8m.main-none-eabihf" ,
0 commit comments