diff options
| author | nils <48135649+Nilstrieb@users.noreply.github.com> | 2022-07-18 18:17:27 +0200 |
|---|---|---|
| committer | nils <48135649+Nilstrieb@users.noreply.github.com> | 2022-07-19 16:02:59 +0200 |
| commit | 7c900c9b457b232e0c189dba0871a50fd2daabf9 (patch) | |
| tree | ca587cfbbb4430af1ffce2348798fd268df18c94 /compiler/rustc_session/src | |
| parent | 9ed0bf9f2bd63933785fb8a380c177d2d70e88ec (diff) | |
| download | rust-7c900c9b457b232e0c189dba0871a50fd2daabf9.tar.gz rust-7c900c9b457b232e0c189dba0871a50fd2daabf9.zip | |
Add flag to configure `noalias` on `Box<T>`
To aid making an informed decision about the aliasing rules of box, give users an option to remove `noalias` from box.
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/options.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index 01ff9e254f7..5d365fc5246 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -1209,6 +1209,8 @@ options! { binary_dep_depinfo: bool = (false, parse_bool, [TRACKED], "include artifacts (sysroot, crate dependencies) used during compilation in dep-info \ (default: no)"), + box_noalias: Option<bool> = (None, parse_opt_bool, [TRACKED], + "emit noalias metadata for box (default: yes)"), branch_protection: Option<BranchProtection> = (None, parse_branch_protection, [TRACKED], "set options for branch target identification and pointer authentication on AArch64"), cf_protection: CFProtection = (CFProtection::None, parse_cfprotection, [TRACKED], |
