@@ -1034,6 +1034,7 @@ counted_array!(static ARGS: [ArgInfo<ArgData>; _] = [
10341034 take_arg!( "--crate-name" , String , CanBeSeparated ( '=' ) , CrateName ) ,
10351035 take_arg!( "--crate-type" , ArgCrateTypes , CanBeSeparated ( '=' ) , CrateType ) ,
10361036 take_arg!( "--deny" , OsString , CanBeSeparated ( '=' ) , PassThrough ) ,
1037+ take_arg!( "--diagnostic-width" , OsString , CanBeSeparated ( '=' ) , PassThrough ) ,
10371038 take_arg!( "--emit" , String , CanBeSeparated ( '=' ) , Emit ) ,
10381039 take_arg!( "--error-format" , OsString , CanBeSeparated ( '=' ) , PassThrough ) ,
10391040 take_arg!( "--explain" , OsString , CanBeSeparated ( '=' ) , NotCompilation ) ,
@@ -1440,11 +1441,11 @@ where
14401441 let ( mut sortables, rest) : ( Vec < _ > , Vec < _ > ) = os_string_arguments
14411442 . iter ( )
14421443 // We exclude a few arguments from the hash:
1443- // -L, --extern, --out-dir
1444+ // -L, --extern, --out-dir, --diagnostic-width
14441445 // These contain paths which aren't relevant to the output, and the compiler inputs
14451446 // in those paths (rlibs and static libs used in the compilation) are used as hash
14461447 // inputs below.
1447- . filter ( |& ( arg, _) | !( arg == "--extern" || arg == "-L" || arg == "--out-dir" ) )
1448+ . filter ( |& ( arg, _) | !( arg == "--extern" || arg == "-L" || arg == "--out-dir" || arg == "--diagnostic-width" ) )
14481449 // We also exclude `--target` if it specifies a path to a .json file. The file content
14491450 // is used as hash input below.
14501451 // If `--target` specifies a string, it continues to be hashed as part of the arguments.
0 commit comments