-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #94545 - ehuss:beta-backports, r=ehuss
[beta] Beta backports * No branch protection metadata unless enabled #93516 * update auto trait lint for PhantomData #94315 * Cargo: * [1.60] Fix term.verbose without quiet, and vice versa (rust-lang/cargo#10436) * [beta] Add common profile validation. (rust-lang/cargo#10413) * Avoid new deprecation warnings from clap 3.1.0 (rust-lang/cargo#10396)
- Loading branch information
Showing
13 changed files
with
125 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
src/test/ui/invalid-compile-flags/branch-protection-missing-pac-ret.BADTARGET.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
error: -Zbranch-protection is only supported on aarch64 | ||
|
||
error: aborting due to previous error | ||
|
15 changes: 14 additions & 1 deletion
15
src/test/ui/invalid-compile-flags/branch-protection-missing-pac-ret.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,14 @@ | ||
// compile-flags: -Z branch-protection=leaf | ||
// revisions: BADFLAGS BADTARGET | ||
// [BADFLAGS] compile-flags: --target=aarch64-unknown-linux-gnu -Zbranch-protection=leaf | ||
// [BADFLAGS] check-fail | ||
// [BADFLAGS] needs-llvm-components: aarch64 | ||
// [BADTARGET] compile-flags: --target=x86_64-unknown-linux-gnu -Zbranch-protection=bti | ||
// [BADTARGET] build-fail | ||
// [BADTARGET] needs-llvm-components: x86 | ||
|
||
#![crate_type = "lib"] | ||
#![feature(no_core, lang_items)] | ||
#![no_core] | ||
|
||
#[lang="sized"] | ||
trait Sized { } |
Submodule cargo
updated
15 files
+1 −1 | Cargo.toml | |
+18 −12 | src/bin/cargo/cli.rs | |
+1 −1 | src/bin/cargo/commands/bench.rs | |
+2 −1 | src/bin/cargo/commands/config.rs | |
+1 −1 | src/bin/cargo/commands/git_checkout.rs | |
+2 −1 | src/bin/cargo/commands/report.rs | |
+1 −1 | src/bin/cargo/commands/run.rs | |
+1 −1 | src/bin/cargo/commands/rustc.rs | |
+1 −1 | src/bin/cargo/commands/rustdoc.rs | |
+1 −1 | src/bin/cargo/commands/test.rs | |
+4 −2 | src/cargo/util/command_prelude.rs | |
+2 −2 | src/cargo/util/config/mod.rs | |
+38 −26 | src/cargo/util/toml/mod.rs | |
+36 −0 | tests/testsuite/profiles.rs | |
+41 −0 | tests/testsuite/run.rs |