diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2023-01-06 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2023-01-10 10:14:59 +0100 |
| commit | 72f8d6a6597e4b780e518e606ec39595ee0eda85 (patch) | |
| tree | 1c2faa641c630fffaa55d0b12601bcd89a81cc95 /compiler/rustc_ty_utils | |
| parent | 78075e1e26176f86cbafb0bf24f86dba174351ed (diff) | |
| download | rust-72f8d6a6597e4b780e518e606ec39595ee0eda85.tar.gz rust-72f8d6a6597e4b780e518e606ec39595ee0eda85.zip | |
Change type of box_noalias to bool
Diffstat (limited to 'compiler/rustc_ty_utils')
| -rw-r--r-- | compiler/rustc_ty_utils/src/abi.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/abi.rs b/compiler/rustc_ty_utils/src/abi.rs index bbb2b3b987d..d1197774fe9 100644 --- a/compiler/rustc_ty_utils/src/abi.rs +++ b/compiler/rustc_ty_utils/src/abi.rs @@ -254,7 +254,7 @@ fn adjust_for_rust_scalar<'tcx>( // The aliasing rules for `Box<T>` are still not decided, but currently we emit // `noalias` for it. This can be turned off using an unstable flag. // See https://github.com/rust-lang/unsafe-code-guidelines/issues/326 - let noalias_for_box = cx.tcx.sess.opts.unstable_opts.box_noalias.unwrap_or(true); + let noalias_for_box = cx.tcx.sess.opts.unstable_opts.box_noalias; // LLVM prior to version 12 had known miscompiles in the presence of noalias attributes // (see #54878), so it was conditionally disabled, but we don't support earlier |
