Skip to content

Commit 8276d18

Browse files
committed
Auto merge of #151794 - JonathanBrouwer:rollup-rGbYGX2, r=JonathanBrouwer
Rollup of 12 pull requests Successful merges: - rust-lang/rust#150491 (resolve: Mark items under exported ambiguous imports as exported) - rust-lang/rust#150720 (Do not suggest `derive` if there is already an impl) - rust-lang/rust#150968 (compiler-builtins: Remove the no-f16-f128 feature) - rust-lang/rust#151493 ([RFC] rustc_parse: improve the error diagnostic for "missing let in let chain") - rust-lang/rust#151660 (Bump `std`'s `backtrace`'s `rustc-demangle`) - rust-lang/rust#151696 (Borrowck: Simplify SCC annotation computation, placeholder rewriting) - rust-lang/rust#151704 (Implement `set_output_kind` for Emscripten linker) - rust-lang/rust#151706 (Remove Fuchsia from target OS list in unix.rs for sleep) - rust-lang/rust#151769 (fix undefined behavior in VecDeque::splice) - rust-lang/rust#151779 (stdarch subtree update) - rust-lang/rust#151449 ([rustdoc] Add regression test for rust-lang/rust#151411) - rust-lang/rust#151773 (clean up checks for constant promotion of integer division/remainder operations)
2 parents 9a64614 + 2214620 commit 8276d18

File tree

6 files changed

+4
-23
lines changed

6 files changed

+4
-23
lines changed

builtins-shim/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ c = ["dep:cc"]
4747
# the generic versions on all platforms.
4848
no-asm = []
4949

50-
# Workaround for codegen backends which haven't yet implemented `f16` and
51-
# `f128` support. Disabled any intrinsics which use those types.
52-
no-f16-f128 = []
53-
5450
# Flag this library as the unstable compiler-builtins lib
5551
compiler-builtins = []
5652

builtins-test/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ utest-macros = { git = "https://github.com/japaric/utest" }
3333
default = ["mangled-names"]
3434
c = ["compiler_builtins/c"]
3535
no-asm = ["compiler_builtins/no-asm"]
36-
no-f16-f128 = ["compiler_builtins/no-f16-f128"]
3736
mem = ["compiler_builtins/mem"]
3837
mangled-names = ["compiler_builtins/mangled-names"]
3938
# Skip tests that rely on f128 symbols being available on the system

ci/run.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ else
3636
"${test_builtins[@]}" --features c --release
3737
"${test_builtins[@]}" --features no-asm
3838
"${test_builtins[@]}" --features no-asm --release
39-
"${test_builtins[@]}" --features no-f16-f128
40-
"${test_builtins[@]}" --features no-f16-f128 --release
4139
"${test_builtins[@]}" --benches
4240
"${test_builtins[@]}" --benches --release
4341

@@ -63,8 +61,6 @@ symcheck+=(-- build-and-check)
6361
"${symcheck[@]}" "$target" -- -p compiler_builtins --features c --release
6462
"${symcheck[@]}" "$target" -- -p compiler_builtins --features no-asm
6563
"${symcheck[@]}" "$target" -- -p compiler_builtins --features no-asm --release
66-
"${symcheck[@]}" "$target" -- -p compiler_builtins --features no-f16-f128
67-
"${symcheck[@]}" "$target" -- -p compiler_builtins --features no-f16-f128 --release
6864

6965
run_intrinsics_test() {
7066
build_args=(--verbose --manifest-path builtins-test-intrinsics/Cargo.toml)

compiler-builtins/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ c = ["dep:cc"]
4545
# the generic versions on all platforms.
4646
no-asm = []
4747

48-
# Workaround for codegen backends which haven't yet implemented `f16` and
49-
# `f128` support. Disabled any intrinsics which use those types.
50-
no-f16-f128 = []
51-
5248
# Flag this library as the unstable compiler-builtins lib
5349
compiler-builtins = []
5450

compiler-builtins/configure.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,13 @@ pub fn configure_aliases(target: &Target) {
9595
* * https://github.com/rust-lang/rustc_codegen_cranelift/blob/c713ffab3c6e28ab4b4dd4e392330f786ea657ad/src/lib.rs#L196-L226
9696
*/
9797

98-
// If the feature is set, disable both of these types.
99-
let no_f16_f128 = target.cargo_features.iter().any(|s| s == "no-f16-f128");
100-
10198
println!("cargo::rustc-check-cfg=cfg(f16_enabled)");
102-
if target.reliable_f16 && !no_f16_f128 {
99+
if target.reliable_f16 {
103100
println!("cargo::rustc-cfg=f16_enabled");
104101
}
105102

106103
println!("cargo::rustc-check-cfg=cfg(f128_enabled)");
107-
if target.reliable_f128 && !no_f16_f128 {
104+
if target.reliable_f128 {
108105
println!("cargo::rustc-cfg=f128_enabled");
109106
}
110107
}

libm/configure.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,13 @@ fn emit_f16_f128_cfg(cfg: &Config) {
143143

144144
/* See the compiler-builtins configure file for info about the meaning of these options */
145145

146-
// If the feature is set, disable both of these types.
147-
let no_f16_f128 = cfg.cargo_features.iter().any(|s| s == "no-f16-f128");
148-
149146
println!("cargo:rustc-check-cfg=cfg(f16_enabled)");
150-
if cfg.reliable_f16 && !no_f16_f128 {
147+
if cfg.reliable_f16 {
151148
println!("cargo:rustc-cfg=f16_enabled");
152149
}
153150

154151
println!("cargo:rustc-check-cfg=cfg(f128_enabled)");
155-
if cfg.reliable_f128 && !no_f16_f128 {
152+
if cfg.reliable_f128 {
156153
println!("cargo:rustc-cfg=f128_enabled");
157154
}
158155
}

0 commit comments

Comments
 (0)