Skip to content

Commit

Permalink
Rollup merge of rust-lang#99155 - Amanieu:unstable-target-features, r…
Browse files Browse the repository at this point in the history
…=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 rust-lang#99071
  • Loading branch information
Dylan-DPC committed Jul 13, 2022
2 parents 743cee6 + a7347a9 commit 38c321a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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![]
}

Expand Down

0 comments on commit 38c321a

Please sign in to comment.