Rollup merge of #99155 - Amanieu:unstable-target-features, r=davidtwco
Keep unstable target features for asm feature checking Inline assembly uses the target features to determine which registers are available on the current target. However it needs to be able to access unstable target features for this. Fixes #99071
This commit is contained in:
commit
68cfdbb5c1
10 changed files with 67 additions and 28 deletions
|
@ -194,6 +194,9 @@ pub struct Session {
|
|||
|
||||
/// Set of enabled features for the current target.
|
||||
pub target_features: FxHashSet<Symbol>,
|
||||
|
||||
/// Set of enabled features for the current target, including unstable ones.
|
||||
pub unstable_target_features: FxHashSet<Symbol>,
|
||||
}
|
||||
|
||||
pub struct PerfStats {
|
||||
|
@ -1390,6 +1393,7 @@ pub fn build_session(
|
|||
miri_unleashed_features: Lock::new(Default::default()),
|
||||
asm_arch,
|
||||
target_features: FxHashSet::default(),
|
||||
unstable_target_features: FxHashSet::default(),
|
||||
};
|
||||
|
||||
validate_commandline_args_with_session_available(&sess);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue