Skip to content

Commit ff25b24

Browse files
committed
Harmonize with upstream
added dead_code lint while this needs fix: rust-lang/libc#3740
1 parent 154937c commit ff25b24

File tree

19 files changed

+30
-574
lines changed

19 files changed

+30
-574
lines changed

ferrocene/library/libc/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
unused_macros,
1414
unused_macro_rules,
1515
// Ferrocene-specific:
16+
dead_code,
1617
elided_lifetimes_in_paths,
1718
hidden_glob_reexports,
1819
ambiguous_glob_reexports

src/bootstrap/download-ci-llvm-stamp

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
Change this file to make users of the `download-ci-llvm` configuration download
22
a new version of LLVM from CI, even if the LLVM submodule hasn’t changed.
33

4-
<<<<<<< HEAD
5-
Last change is for: https://github.com/rust-lang/rust/pull/120761
4+
Last change is for: https://github.com/rust-lang/rust/pull/125141
65

76

87
(white space intentional to avoid merge conflicts)
98

109
Last Ferrocene change is for: https://github.com/ferrocene/ferrocene/pull/98
11-
=======
12-
Last change is for: https://github.com/rust-lang/rust/pull/125141
13-
>>>>>>> pull-upstream-temp--do-not-use-for-real-code

src/bootstrap/src/core/config/config.rs

+5-13
Original file line numberDiff line numberDiff line change
@@ -2240,23 +2240,15 @@ impl Config {
22402240
/// Return the version it would have used for the given commit.
22412241
pub(crate) fn artifact_version_part(&self, commit: &str) -> String {
22422242
let (channel, version) = if self.rust_info.is_managed_git_subrepository() {
2243-
<<<<<<< HEAD
2244-
let mut channel = self.git();
2245-
channel.arg("show").arg(format!("{commit}:ferrocene/ci/channel"));
2246-
let channel = output(&mut channel);
2247-
let mut version = self.git();
2248-
version.arg("show").arg(format!("{commit}:ferrocene/version"));
2249-
let version = output(&mut version);
2250-
(channel.trim().to_owned(), version.trim().to_owned())
2251-
=======
22522243
let channel = self
2253-
.read_file_by_commit(&PathBuf::from("src/ci/channel"), commit)
2244+
.read_file_by_commit(&PathBuf::from("ferrocene/ci/channel"), commit)
2245+
.trim()
2246+
.to_owned();
2247+
let version = self
2248+
.read_file_by_commit(&PathBuf::from("ferrocene/version"), commit)
22542249
.trim()
22552250
.to_owned();
2256-
let version =
2257-
self.read_file_by_commit(&PathBuf::from("src/version"), commit).trim().to_owned();
22582251
(channel, version)
2259-
>>>>>>> pull-upstream-temp--do-not-use-for-real-code
22602252
} else {
22612253
let channel = fs::read_to_string(self.src.join("ferrocene/ci/channel"));
22622254
let version = fs::read_to_string(self.src.join("ferrocene/version"));

src/doc/rustc/src/platform-support.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -384,12 +384,9 @@ target | std | host | notes
384384
`x86_64-wrs-vxworks` | ? | |
385385
[`x86_64h-apple-darwin`](platform-support/x86_64h-apple-darwin.md) | ✓ | ✓ | macOS with late-gen Intel (at least Haswell)
386386
[`x86_64-unknown-linux-none`](platform-support/x86_64-unknown-linux-none.md) | * | | 64-bit Linux with no libc
387-
<<<<<<< HEAD
388-
`aarch64-unknown-ferrocenecoretest` | ✓ | ✓ | Internal target for tests
389-
=======
390387
`xtensa-esp32-none-elf` | | | Xtensa ESP32
391388
`xtensa-esp32s2-none-elf` | | | Xtensa ESP32-S2
392389
`xtensa-esp32s3-none-elf` | | | Xtensa ESP32-S3
393-
>>>>>>> pull-upstream-temp--do-not-use-for-real-code
390+
`aarch64-unknown-ferrocenecoretest` | ✓ | ✓ | Internal target for tests
394391

395392
[runs on NVIDIA GPUs]: https://github.com/japaric-archived/nvptx#targets

src/stage0

-434
Large diffs are not rendered by default.

src/tools/tidy/src/deps.rs

-12
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,8 @@ const LICENSES: &[&str] = &[
2828
"MIT OR Zlib OR Apache-2.0", // miniz_oxide
2929
"MIT",
3030
"MIT/Apache-2.0",
31-
<<<<<<< HEAD
32-
"Unicode-3.0", // ICU4X_UNICODE
33-
"Unicode-DFS-2016", // tinystr and icu4x
34-
=======
3531
"Unicode-3.0", // icu4x
3632
"Unicode-DFS-2016", // tinystr
37-
>>>>>>> pull-upstream-temp--do-not-use-for-real-code
3833
"Unlicense OR MIT",
3934
"Unlicense/MIT",
4035
"Zlib OR Apache-2.0 OR MIT", // tinyvec
@@ -684,17 +679,10 @@ fn check_license_exceptions(metadata: &Metadata, exceptions: &[(&str, &str)], ba
684679
let license = match &pkg.license {
685680
Some(license) => license,
686681
None => {
687-
<<<<<<< HEAD
688682
if pkg.name == "ring" {
689683
// *ring* does not define proper licensing metadata.
690684
continue;
691685
}
692-
if ICU4X_UNICODE_LICENSE_DEPENDENCIES.contains(&pkg.name.as_str()) {
693-
// See the comment on ICU4X_UNICODE_LICENSE_DEPENDENCIES.
694-
continue;
695-
}
696-
=======
697-
>>>>>>> pull-upstream-temp--do-not-use-for-real-code
698686
tidy_error!(bad, "dependency `{}` does not define a license expression", pkg.id);
699687
continue;
700688
}

tests/assembly/targets/targets-elf.rs

+10-13
Original file line numberDiff line numberDiff line change
@@ -573,18 +573,6 @@
573573
//@ revisions: x86_64_wrs_vxworks
574574
//@ [x86_64_wrs_vxworks] compile-flags: --target x86_64-wrs-vxworks
575575
//@ [x86_64_wrs_vxworks] needs-llvm-components: x86
576-
<<<<<<< HEAD
577-
578-
// Ferrocene-specific targets
579-
580-
//@ revisions: i386_lynx_lynxos178
581-
//@ [i386_lynx_lynxos178] compile-flags: --target i386-lynx-lynxos178
582-
//@ [i386_lynx_lynxos178] needs-llvm-components: x86
583-
//@ revisions: aarch64_unknown_ferrocenecoretest
584-
//@ [aarch64_unknown_ferrocenecoretest] compile-flags: --target aarch64-unknown-ferrocenecoretest
585-
//@ [aarch64_unknown_ferrocenecoretest] needs-llvm-components: aarch64
586-
587-
=======
588576
// FIXME: disabled since it requires a custom LLVM until the upstream LLVM adds support for the target (https://github.com/espressif/llvm-project/issues/4)
589577
/*
590578
revisions: xtensa_esp32_none_elf
@@ -597,7 +585,16 @@
597585
[xtensa_esp32s3_none_elf] compile-flags: --target xtensa-esp32s3-none-elf
598586
[xtensa_esp32s3_none_elf] needs-llvm-components: xtensa
599587
*/
600-
>>>>>>> pull-upstream-temp--do-not-use-for-real-code
588+
589+
// Ferrocene-specific targets
590+
591+
//@ revisions: i386_lynx_lynxos178
592+
//@ [i386_lynx_lynxos178] compile-flags: --target i386-lynx-lynxos178
593+
//@ [i386_lynx_lynxos178] needs-llvm-components: x86
594+
//@ revisions: aarch64_unknown_ferrocenecoretest
595+
//@ [aarch64_unknown_ferrocenecoretest] compile-flags: --target aarch64-unknown-ferrocenecoretest
596+
//@ [aarch64_unknown_ferrocenecoretest] needs-llvm-components: aarch64
597+
601598
// Sanity-check that each target can produce assembly code.
602599

603600
#![feature(no_core, lang_items)]

tests/mir-opt/coverage/instrument_coverage.main.InstrumentCoverage.diff

+1-9
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,11 @@
88
let mut _3: !;
99

1010
+ coverage ExpressionId(0) => Expression { lhs: Counter(0), op: Add, rhs: Counter(1) };
11-
<<<<<<< HEAD
1211
+ coverage Code(Counter(0)) => $DIR/instrument_coverage.rs:11:1 - 11:11;
13-
+ coverage Code(Expression(0)) => $DIR/instrument_coverage.rs:12:5 - 13:17;
12+
+ coverage Code(Expression(0)) => $DIR/instrument_coverage.rs:13:12 - 13:17;
1413
+ coverage Code(Counter(0)) => $DIR/instrument_coverage.rs:14:13 - 14:18;
1514
+ coverage Code(Counter(1)) => $DIR/instrument_coverage.rs:15:10 - 15:11;
1615
+ coverage Code(Counter(0)) => $DIR/instrument_coverage.rs:17:1 - 17:2;
17-
=======
18-
+ coverage Code(Counter(0)) => $DIR/instrument_coverage.rs:10:1 - 10:11;
19-
+ coverage Code(Expression(0)) => $DIR/instrument_coverage.rs:12:12 - 12:17;
20-
+ coverage Code(Counter(0)) => $DIR/instrument_coverage.rs:13:13 - 13:18;
21-
+ coverage Code(Counter(1)) => $DIR/instrument_coverage.rs:14:10 - 14:11;
22-
+ coverage Code(Counter(0)) => $DIR/instrument_coverage.rs:16:1 - 16:2;
23-
>>>>>>> pull-upstream-temp--do-not-use-for-real-code
2416
+
2517
bb0: {
2618
+ Coverage::CounterIncrement(0);

tests/run-make/pgo-branch-weights/Makefile

-40
This file was deleted.

tests/run-make/pgo-branch-weights/rmake.rs

+3
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,6 @@ fn main() {
4343
.stdin(fs_wrapper::read("interesting.ll"))
4444
.run();
4545
}
46+
47+
// ferrocene-annotations: um_rustc_C_link_args
48+
// ferrocene-annotations: um_rustc_C_codegen_units

tests/run-make/prefer-dylib/Makefile

-12
This file was deleted.

tests/run-make/prefer-dylib/rmake.rs

+2
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ fn main() {
1212
// This time the command should fail.
1313
run_fail("foo");
1414
}
15+
16+
// ferrocene-annotations: um_rustc_C_prefer_dynamic
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
warning: due to multiple output types requested, the explicitly specified output file name will be adapted for each output type
22

3-
warning: ignoring --out-dir flag due to -o flag
4-
5-
warning: 2 warnings emitted
3+
warning: 1 warning emitted
64

tests/ui/ferrocene/compiler-arguments/o/o_o.stderr

-4
This file was deleted.

tests/ui/ferrocene/compiler-arguments/o/o_space-delim.stderr

-4
This file was deleted.

tests/ui/impl-trait/equality.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ impl Leak for i32 {
3939
fn leak(self) -> i32 { self }
4040
}
4141

42-
<<<<<<< HEAD
43-
fn main() {}
42+
fn main() {
43+
}
4444

4545
// ferrocene-annotations: fls_46ork6fz5o2e
4646
// Implementation Coherence
@@ -56,7 +56,3 @@ fn main() {}
5656
//
5757
// ferrocene-annotations: fls_exe4zodlwfez
5858
// Type Unification
59-
=======
60-
fn main() {
61-
}
62-
>>>>>>> pull-upstream-temp--do-not-use-for-real-code

tests/ui/unused-crate-deps/deny-cmdline.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
//@ aux-crate:bar=bar.rs
66

77
fn main() {}
8-
<<<<<<< HEAD
9-
//~^ ERROR external crate `bar` unused in
8+
//~^ ERROR extern crate `bar` is unused in
109

1110
// ferrocene-annotations: um_rustc_D
12-
=======
13-
//~^ ERROR extern crate `bar` is unused in
14-
>>>>>>> pull-upstream-temp--do-not-use-for-real-code

tests/ui/unused-crate-deps/warn-cmdline-static.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
//@ no-prefer-dynamic
88

99
fn main() {}
10-
<<<<<<< HEAD
11-
//~^ WARNING external crate `bar` unused in
10+
//~^ WARNING extern crate `bar` is unused in
1211

1312
// ferrocene-annotations: um_rustc_W
14-
=======
15-
//~^ WARNING extern crate `bar` is unused in
16-
>>>>>>> pull-upstream-temp--do-not-use-for-real-code

tests/ui/unused-crate-deps/warn-cmdline.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
//@ aux-crate:bar=bar.rs
77

88
fn main() {}
9-
<<<<<<< HEAD
10-
//~^ WARNING external crate `bar` unused in
9+
//~^ WARNING extern crate `bar` is unused in
1110

1211
// ferrocene-annotations: um_rustc_W
13-
=======
14-
//~^ WARNING extern crate `bar` is unused in
15-
>>>>>>> pull-upstream-temp--do-not-use-for-real-code

0 commit comments

Comments
 (0)