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

Lines changed: 1 addition & 0 deletions
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
Lines changed: 1 addition & 5 deletions
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

Lines changed: 5 additions & 13 deletions
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

Lines changed: 1 addition & 4 deletions
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

Lines changed: 0 additions & 434 deletions
Large diffs are not rendered by default.

src/tools/tidy/src/deps.rs

Lines changed: 0 additions & 12 deletions
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

Lines changed: 10 additions & 13 deletions
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

Lines changed: 1 addition & 9 deletions
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

Lines changed: 0 additions & 40 deletions
This file was deleted.

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

Lines changed: 3 additions & 0 deletions
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

0 commit comments

Comments
 (0)