Skip to content

Commit c84a7ab

Browse files
committed
Auto merge of #60775 - hellow554:no_bitrig, r=joshtriplett
Remove bitrig support from rust Resolves #60743 using `find` and `rg` I delete every occurence of "bitrig" in the sources, expect for the llvm submodule (is this correct?). There's also this file https://github.com/rust-lang/rls/blob/5b8e99bb61958ca8abcb7c5eda70521726be1065/rls-analysis/test_data/rust-analysis/libstd-af9bacceee784405.json which contains a bitrig string in it. What to do with that?
2 parents 372be4f + cc314b0 commit c84a7ab

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+21
-363
lines changed

src/bootstrap/bootstrap.py

-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ def default_build_triple():
177177
# The goal here is to come up with the same triple as LLVM would,
178178
# at least for the subset of platforms we're willing to target.
179179
ostype_mapper = {
180-
'Bitrig': 'unknown-bitrig',
181180
'Darwin': 'apple-darwin',
182181
'DragonFly': 'unknown-dragonfly',
183182
'FreeBSD': 'unknown-freebsd',

src/build_helper/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ pub fn gnu_target(target: &str) -> &str {
113113
}
114114

115115
pub fn make(host: &str) -> PathBuf {
116-
if host.contains("bitrig") || host.contains("dragonfly") || host.contains("freebsd")
116+
if host.contains("dragonfly") || host.contains("freebsd")
117117
|| host.contains("netbsd") || host.contains("openbsd")
118118
{
119119
PathBuf::from("gmake")

src/librustc_data_structures/flock.rs

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ cfg_if! {
4444
}
4545

4646
#[cfg(any(target_os = "dragonfly",
47-
target_os = "bitrig",
4847
target_os = "netbsd",
4948
target_os = "openbsd"))]
5049
mod os {

src/librustc_target/spec/bitrig_base.rs

-16
This file was deleted.

src/librustc_target/spec/mod.rs

-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ mod android_base;
4747
mod apple_base;
4848
mod apple_ios_base;
4949
mod arm_base;
50-
mod bitrig_base;
5150
mod cloudabi_base;
5251
mod dragonfly_base;
5352
mod freebsd_base;
@@ -390,8 +389,6 @@ supported_targets! {
390389
("i686-unknown-dragonfly", i686_unknown_dragonfly),
391390
("x86_64-unknown-dragonfly", x86_64_unknown_dragonfly),
392391

393-
("x86_64-unknown-bitrig", x86_64_unknown_bitrig),
394-
395392
("aarch64-unknown-openbsd", aarch64_unknown_openbsd),
396393
("i686-unknown-openbsd", i686_unknown_openbsd),
397394
("x86_64-unknown-openbsd", x86_64_unknown_openbsd),

src/librustc_target/spec/x86_64_unknown_bitrig.rs

-23
This file was deleted.

src/librustdoc/clean/cfg.rs

-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ impl<'a> fmt::Display for Html<'a> {
338338
("debug_assertions", None) => "debug-assertions enabled",
339339
("target_os", Some(os)) => match &*os.as_str() {
340340
"android" => "Android",
341-
"bitrig" => "Bitrig",
342341
"dragonfly" => "DragonFly BSD",
343342
"emscripten" => "Emscripten",
344343
"freebsd" => "FreeBSD",

src/libstd/build.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ fn main() {
2020
} else if target.contains("netbsd") {
2121
println!("cargo:rustc-link-lib=pthread");
2222
println!("cargo:rustc-link-lib=rt");
23-
} else if target.contains("dragonfly") || target.contains("bitrig") ||
24-
target.contains("openbsd") {
23+
} else if target.contains("dragonfly") || target.contains("openbsd") {
2524
println!("cargo:rustc-link-lib=pthread");
2625
} else if target.contains("solaris") {
2726
println!("cargo:rustc-link-lib=socket");

src/libstd/env.rs

-1
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,6 @@ pub mod consts {
851851
/// - ios
852852
/// - freebsd
853853
/// - dragonfly
854-
/// - bitrig
855854
/// - netbsd
856855
/// - openbsd
857856
/// - solaris

src/libstd/net/addr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -974,9 +974,9 @@ mod tests {
974974
// s has been moved into the tsa call
975975
}
976976

977-
// FIXME: figure out why this fails on openbsd and bitrig and fix it
977+
// FIXME: figure out why this fails on openbsd and fix it
978978
#[test]
979-
#[cfg(not(any(windows, target_os = "openbsd", target_os = "bitrig")))]
979+
#[cfg(not(any(windows, target_os = "openbsd")))]
980980
fn to_socket_addr_str_bad() {
981981
assert!(tsa("1200::AB00:1234::2552:7777:1313:34300").is_err());
982982
}

src/libstd/net/tcp.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1595,9 +1595,9 @@ mod tests {
15951595
assert_eq!(format!("{:?}", stream), compare);
15961596
}
15971597

1598-
// FIXME: re-enabled bitrig/openbsd tests once their socket timeout code
1598+
// FIXME: re-enabled openbsd tests once their socket timeout code
15991599
// no longer has rounding errors.
1600-
#[cfg_attr(any(target_os = "bitrig", target_os = "netbsd", target_os = "openbsd"), ignore)]
1600+
#[cfg_attr(any(target_os = "netbsd", target_os = "openbsd"), ignore)]
16011601
#[cfg_attr(target_env = "sgx", ignore)] // FIXME: https://github.com/fortanix/rust-sgx/issues/31
16021602
#[test]
16031603
fn timeouts() {

src/libstd/net/udp.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1024,9 +1024,9 @@ mod tests {
10241024
assert_eq!(format!("{:?}", udpsock), compare);
10251025
}
10261026

1027-
// FIXME: re-enabled bitrig/openbsd/netbsd tests once their socket timeout code
1027+
// FIXME: re-enabled openbsd/netbsd tests once their socket timeout code
10281028
// no longer has rounding errors.
1029-
#[cfg_attr(any(target_os = "bitrig", target_os = "netbsd", target_os = "openbsd"), ignore)]
1029+
#[cfg_attr(any(target_os = "netbsd", target_os = "openbsd"), ignore)]
10301030
#[test]
10311031
fn timeouts() {
10321032
let addr = next_test_ip4();

src/libstd/os/bitrig/fs.rs

-138
This file was deleted.

src/libstd/os/bitrig/mod.rs

-6
This file was deleted.

src/libstd/os/bitrig/raw.rs

-71
This file was deleted.

src/libstd/os/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ cfg_if! {
3939
}
4040

4141
#[cfg(target_os = "android")] pub mod android;
42-
#[cfg(target_os = "bitrig")] pub mod bitrig;
4342
#[cfg(target_os = "dragonfly")] pub mod dragonfly;
4443
#[cfg(target_os = "freebsd")] pub mod freebsd;
4544
#[cfg(target_os = "haiku")] pub mod haiku;

src/libstd/sys/unix/args.rs

-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ impl DoubleEndedIterator for Args {
5151
target_os = "android",
5252
target_os = "freebsd",
5353
target_os = "dragonfly",
54-
target_os = "bitrig",
5554
target_os = "netbsd",
5655
target_os = "openbsd",
5756
target_os = "solaris",

src/libstd/sys/unix/env.rs

-11
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,6 @@ pub mod os {
5353
pub const EXE_EXTENSION: &str = "";
5454
}
5555

56-
#[cfg(target_os = "bitrig")]
57-
pub mod os {
58-
pub const FAMILY: &str = "unix";
59-
pub const OS: &str = "bitrig";
60-
pub const DLL_PREFIX: &str = "lib";
61-
pub const DLL_SUFFIX: &str = ".so";
62-
pub const DLL_EXTENSION: &str = "so";
63-
pub const EXE_SUFFIX: &str = "";
64-
pub const EXE_EXTENSION: &str = "";
65-
}
66-
6756
#[cfg(target_os = "netbsd")]
6857
pub mod os {
6958
pub const FAMILY: &str = "unix";

0 commit comments

Comments
 (0)