Skip to content

Commit

Permalink
Keep unstable target features for asm feature checking
Browse files Browse the repository at this point in the history
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
Amanieu committed Jul 11, 2022
1 parent ede985e commit a7347a9
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 a7347a9

Please sign in to comment.