File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -754,7 +754,7 @@ fn test_unstable_options_tracking_hash() {
754
754
tracked ! ( mir_enable_passes, vec![ ( "DestProp" . to_string( ) , false ) ] ) ;
755
755
tracked ! ( mir_opt_level, Some ( 4 ) ) ;
756
756
tracked ! ( move_size_limit, Some ( 4096 ) ) ;
757
- tracked ! ( mutable_noalias, Some ( true ) ) ;
757
+ tracked ! ( mutable_noalias, false ) ;
758
758
tracked ! ( no_generate_arange_section, true ) ;
759
759
tracked ! ( no_jump_tables, true ) ;
760
760
tracked ! ( no_link, true ) ;
Original file line number Diff line number Diff line change @@ -1437,7 +1437,7 @@ options! {
1437
1437
"use line numbers relative to the function in mir pretty printing" ) ,
1438
1438
move_size_limit: Option <usize > = ( None , parse_opt_number, [ TRACKED ] ,
1439
1439
"the size at which the `large_assignments` lint starts to be emitted" ) ,
1440
- mutable_noalias: Option < bool > = ( None , parse_opt_bool , [ TRACKED ] ,
1440
+ mutable_noalias: bool = ( true , parse_bool , [ TRACKED ] ,
1441
1441
"emit noalias metadata for mutable references (default: yes)" ) ,
1442
1442
nll_facts: bool = ( false , parse_bool, [ UNTRACKED ] ,
1443
1443
"dump facts from NLL analysis into side files (default: no)" ) ,
Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ fn adjust_for_rust_scalar<'tcx>(
259
259
// LLVM prior to version 12 had known miscompiles in the presence of noalias attributes
260
260
// (see #54878), so it was conditionally disabled, but we don't support earlier
261
261
// versions at all anymore. We still support turning it off using -Zmutable-noalias.
262
- let noalias_mut_ref = cx. tcx . sess . opts . unstable_opts . mutable_noalias . unwrap_or ( true ) ;
262
+ let noalias_mut_ref = cx. tcx . sess . opts . unstable_opts . mutable_noalias ;
263
263
264
264
// `&mut` pointer parameters never alias other parameters,
265
265
// or mutable global data
You can’t perform that action at this time.
0 commit comments