1
Fork 0

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.
This commit is contained in:
nils 2022-07-18 18:17:27 +02:00
parent 9ed0bf9f2b
commit 7c900c9b45
6 changed files with 27 additions and 2 deletions

View file

@ -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],