Skip to content

Commit 78075e1

Browse files
committed
Change type of mutable_noalias to bool
1 parent deba5dd commit 78075e1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/rustc_interface/src/tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ fn test_unstable_options_tracking_hash() {
754754
tracked!(mir_enable_passes, vec![("DestProp".to_string(), false)]);
755755
tracked!(mir_opt_level, Some(4));
756756
tracked!(move_size_limit, Some(4096));
757-
tracked!(mutable_noalias, Some(true));
757+
tracked!(mutable_noalias, false);
758758
tracked!(no_generate_arange_section, true);
759759
tracked!(no_jump_tables, true);
760760
tracked!(no_link, true);

compiler/rustc_session/src/options.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,7 @@ options! {
14371437
"use line numbers relative to the function in mir pretty printing"),
14381438
move_size_limit: Option<usize> = (None, parse_opt_number, [TRACKED],
14391439
"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],
14411441
"emit noalias metadata for mutable references (default: yes)"),
14421442
nll_facts: bool = (false, parse_bool, [UNTRACKED],
14431443
"dump facts from NLL analysis into side files (default: no)"),

compiler/rustc_ty_utils/src/abi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ fn adjust_for_rust_scalar<'tcx>(
259259
// LLVM prior to version 12 had known miscompiles in the presence of noalias attributes
260260
// (see #54878), so it was conditionally disabled, but we don't support earlier
261261
// 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;
263263

264264
// `&mut` pointer parameters never alias other parameters,
265265
// or mutable global data

0 commit comments

Comments
 (0)