Skip to content

Commit c3b7483

Browse files
authored
Rollup merge of rust-lang#53321 - alexcrichton:wasm-target-feature, r=nikomatsakis
Fix usage of `wasm_target_feature` Currently usage results in: ``` error: internal compiler error: librustc_typeck/collect.rs:1928: unknown target feature gate wasm_target_feature thread 'main' panicked at 'Box<Any>', librustc_errors/lib.rs:579:9 note: Run with `RUST_BACKTRACE=1` for a backtrace. error: aborting due to previous error note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports note: rustc 1.30.0-nightly (d5a448b 2018-08-13) running on x86_64-unknown-linux-gnu note: compiler flags: -C debuginfo=2 -C linker=/tmp/lld-shim -C incremental --crate-type lib note: some of the compiler flags provided by cargo are hidden error: Could not compile `coresimd`. To learn more, run the command again with --verbose. ``` and hopefully this should fix the ICE!
2 parents 2578036 + 2438cfc commit c3b7483

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_typeck/collect.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1925,6 +1925,7 @@ fn from_target_feature(
19251925
Some("mmx_target_feature") => rust_features.mmx_target_feature,
19261926
Some("sse4a_target_feature") => rust_features.sse4a_target_feature,
19271927
Some("tbm_target_feature") => rust_features.tbm_target_feature,
1928+
Some("wasm_target_feature") => rust_features.wasm_target_feature,
19281929
Some(name) => bug!("unknown target feature gate {}", name),
19291930
None => true,
19301931
};

0 commit comments

Comments
 (0)