Skip to content

Commit 8d3a263

Browse files
committed
generalize 'forbidden feature' concept so that even (un)stable feature can be invalid to toggle
Also rename some things for extra clarity
1 parent 1c9a333 commit 8d3a263

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,11 @@ impl CodegenBackend for CraneliftCodegenBackend {
175175
}
176176
}
177177

178-
fn target_features(&self, sess: &Session, _allow_unstable: bool) -> Vec<rustc_span::Symbol> {
178+
fn target_features_cfg(
179+
&self,
180+
sess: &Session,
181+
_allow_unstable: bool,
182+
) -> Vec<rustc_span::Symbol> {
179183
// FIXME return the actually used target features. this is necessary for #[cfg(target_feature)]
180184
if sess.target.arch == "x86_64" && sess.target.os != "none" {
181185
// x86_64 mandates SSE2 support

0 commit comments

Comments
 (0)