diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2022-07-11 14:26:58 +0100 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2022-07-11 14:26:58 +0100 |
| commit | a7347a941bc45e2d1488045689bb5606ea156576 (patch) | |
| tree | b45f08c06f83aa56a557e3983ac20a4b45223f40 | |
| parent | ede985e8b811af92bb07412c838f3d2bde23f92f (diff) | |
| download | rust-a7347a941bc45e2d1488045689bb5606ea156576.tar.gz rust-a7347a941bc45e2d1488045689bb5606ea156576.zip | |
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
| -rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs index 9d2e12f9898..da6e7887006 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -167,7 +167,7 @@ impl CodegenBackend for CraneliftCodegenBackend { } } - fn target_features(&self, _sess: &Session) -> Vec<rustc_span::Symbol> { + fn target_features(&self, _sess: &Session, _allow_unstable: bool) -> Vec<rustc_span::Symbol> { vec![] } |
