about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-07-13 19:32:36 +0530
committerGitHub <noreply@github.com>2022-07-13 19:32:36 +0530
commit38c321a6f07f276419810c8a9ef8dcc6a518c30e (patch)
tree8f55f2f50ba97ce539b029ffaa3f02f910c143dc
parent743cee6ca9c406fb489ffcff34bc068ce3d895f3 (diff)
parenta7347a941bc45e2d1488045689bb5606ea156576 (diff)
downloadrust-38c321a6f07f276419810c8a9ef8dcc6a518c30e.tar.gz
rust-38c321a6f07f276419810c8a9ef8dcc6a518c30e.zip
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
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index be2d3108c5f..3ed3453c6c7 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![]
     }