Auto merge of #81921 - pietroalbini:beta-next, r=pietroalbini
Prepare beta 1.51.0 cc `@rust-lang/release` r? `@ghost`
This commit is contained in:
commit
a5a775e3f9
11 changed files with 289 additions and 459 deletions
663
Cargo.lock
663
Cargo.lock
File diff suppressed because it is too large
Load diff
|
|
@ -106,11 +106,5 @@ rustc-std-workspace-core = { path = 'library/rustc-std-workspace-core' }
|
|||
rustc-std-workspace-alloc = { path = 'library/rustc-std-workspace-alloc' }
|
||||
rustc-std-workspace-std = { path = 'library/rustc-std-workspace-std' }
|
||||
|
||||
# This crate's integration with libstd is a bit wonky, so we use a submodule
|
||||
# instead of a crates.io dependency. Make sure everything else in the repo is
|
||||
# also using the submodule, however, so we can avoid duplicate copies of the
|
||||
# source code for this crate.
|
||||
backtrace = { path = "library/backtrace" }
|
||||
|
||||
[patch."https://github.com/rust-lang/rust-clippy"]
|
||||
clippy_lints = { path = "src/tools/clippy/clippy_lints" }
|
||||
|
|
|
|||
|
|
@ -1057,8 +1057,11 @@ impl Step for Assemble {
|
|||
let src_exe = exe("llvm-dwp", target_compiler.host);
|
||||
let dst_exe = exe("rust-llvm-dwp", target_compiler.host);
|
||||
let llvm_config_bin = builder.ensure(native::Llvm { target: target_compiler.host });
|
||||
let llvm_bin_dir = llvm_config_bin.parent().unwrap();
|
||||
builder.copy(&llvm_bin_dir.join(&src_exe), &libdir_bin.join(&dst_exe));
|
||||
if !builder.config.dry_run {
|
||||
let llvm_bin_dir = output(Command::new(llvm_config_bin).arg("--bindir"));
|
||||
let llvm_bin_dir = Path::new(llvm_bin_dir.trim());
|
||||
builder.copy(&llvm_bin_dir.join(&src_exe), &libdir_bin.join(&dst_exe));
|
||||
}
|
||||
}
|
||||
|
||||
// Ensure that `libLLVM.so` ends up in the newly build compiler directory,
|
||||
|
|
|
|||
|
|
@ -1021,7 +1021,13 @@ impl Step for Rls {
|
|||
let rls = builder
|
||||
.ensure(tool::Rls { compiler, target, extra_features: Vec::new() })
|
||||
.or_else(|| {
|
||||
missing_tool("RLS", builder.build.config.missing_tools);
|
||||
// We ignore failure on aarch64 Windows because RLS currently
|
||||
// fails to build, due to winapi 0.2 not supporting aarch64.
|
||||
missing_tool(
|
||||
"RLS",
|
||||
builder.build.config.missing_tools
|
||||
|| (target.triple.contains("aarch64") && target.triple.contains("windows")),
|
||||
);
|
||||
None
|
||||
})?;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
set -euxo pipefail
|
||||
|
||||
export RUSTC_BOOTSTRAP=1
|
||||
|
||||
rm -rf /tmp/rustc-pgo
|
||||
|
||||
python2.7 ../x.py build --target=$PGO_HOST --host=$PGO_HOST \
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ fi
|
|||
#
|
||||
# FIXME: need a scheme for changing this `nightly` value to `beta` and `stable`
|
||||
# either automatically or manually.
|
||||
export RUST_RELEASE_CHANNEL=nightly
|
||||
export RUST_RELEASE_CHANNEL=beta
|
||||
|
||||
# Always set the release channel for bootstrap; this is normally not important (i.e., only dist
|
||||
# builds would seem to matter) but in practice bootstrap wants to know whether we're targeting
|
||||
|
|
|
|||
|
|
@ -12,14 +12,14 @@
|
|||
# stable release's version number. `date` is the date where the release we're
|
||||
# bootstrapping off was released.
|
||||
|
||||
date: 2020-12-30
|
||||
rustc: beta
|
||||
date: 2021-02-09
|
||||
rustc: 1.50.0
|
||||
|
||||
# We use a nightly rustfmt to format the source because it solves some
|
||||
# bootstrapping issues with use of new syntax in this repo. If you're looking at
|
||||
# the beta/stable branch, this key should be omitted, as we don't want to depend
|
||||
# on rustfmt from nightly there.
|
||||
rustfmt: nightly-2021-01-28
|
||||
#rustfmt: nightly-2021-01-28
|
||||
|
||||
# When making a stable release the process currently looks like:
|
||||
#
|
||||
|
|
@ -39,4 +39,4 @@ rustfmt: nightly-2021-01-28
|
|||
# looking at a beta source tarball and it's uncommented we'll shortly comment it
|
||||
# out.
|
||||
|
||||
#dev: 1
|
||||
dev: 1
|
||||
|
|
|
|||
|
|
@ -1,25 +1,20 @@
|
|||
error: `#[derive(SessionDiagnostic)]` can only be used on structs
|
||||
--> $DIR/session-derive-errors.rs:28:1
|
||||
|
|
||||
LL | / #[error = "E0123"]
|
||||
LL | |
|
||||
LL | | enum SessionDiagnosticOnEnum {
|
||||
LL | | Foo,
|
||||
LL | | Bar,
|
||||
LL | | }
|
||||
| |_^
|
||||
LL | #[error = "E0123"]
|
||||
| ^
|
||||
|
||||
error: `#[label = ...]` is not a valid SessionDiagnostic struct attribute
|
||||
--> $DIR/session-derive-errors.rs:37:1
|
||||
|
|
||||
LL | #[label = "This is in the wrong place"]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^
|
||||
|
||||
error: `#[suggestion = ...]` is not a valid SessionDiagnostic field attribute
|
||||
--> $DIR/session-derive-errors.rs:44:5
|
||||
|
|
||||
LL | #[suggestion = "this is the wrong kind of attribute"]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^
|
||||
|
||||
error: `error` specified multiple times
|
||||
--> $DIR/session-derive-errors.rs:52:11
|
||||
|
|
@ -37,7 +32,7 @@ error: `code` not specified
|
|||
--> $DIR/session-derive-errors.rs:67:1
|
||||
|
|
||||
LL | struct ErrorCodeNotProvided {}
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^
|
||||
|
|
||||
= help: use the [code = "..."] attribute to set this diagnostic's error code
|
||||
|
||||
|
|
@ -45,13 +40,13 @@ error: the `#[message = "..."]` attribute can only be applied to fields of type
|
|||
--> $DIR/session-derive-errors.rs:95:5
|
||||
|
|
||||
LL | #[message = "this message is applied to a String field"]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^
|
||||
|
||||
error: `name` doesn't refer to a field on this type
|
||||
--> $DIR/session-derive-errors.rs:102:1
|
||||
|
|
||||
LL | #[message = "This error has a field, and references {name}"]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^
|
||||
|
||||
error: invalid format string: expected `'}'` but string was terminated
|
||||
--> $DIR/session-derive-errors.rs:110:1
|
||||
|
|
@ -77,59 +72,53 @@ error: The `#[label = ...]` attribute can only be applied to fields of type Span
|
|||
--> $DIR/session-derive-errors.rs:138:5
|
||||
|
|
||||
LL | #[label = "See here"]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^
|
||||
|
||||
error: `nonsense` is not a valid key for `#[suggestion(...)]`
|
||||
--> $DIR/session-derive-errors.rs:163:18
|
||||
|
|
||||
LL | #[suggestion(nonsense = "This is nonsense")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^
|
||||
|
||||
error: `msg` is not a valid key for `#[suggestion(...)]`
|
||||
--> $DIR/session-derive-errors.rs:171:18
|
||||
|
|
||||
LL | #[suggestion(msg = "This is a suggestion")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^
|
||||
|
||||
error: missing suggestion message
|
||||
--> $DIR/session-derive-errors.rs:179:7
|
||||
|
|
||||
LL | #[suggestion(code = "This is suggested code")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^
|
||||
|
|
||||
= help: provide a suggestion message using #[suggestion(message = "...")]
|
||||
|
||||
error: wrong field type for suggestion
|
||||
--> $DIR/session-derive-errors.rs:194:5
|
||||
|
|
||||
LL | / #[suggestion(message = "This is a message", code = "This is suggested code")]
|
||||
LL | |
|
||||
LL | | suggestion: Applicability,
|
||||
| |_____________________________^
|
||||
LL | #[suggestion(message = "This is a message", code = "This is suggested code")]
|
||||
| ^
|
||||
|
|
||||
= help: #[suggestion(...)] should be applied to fields of type Span or (Span, Applicability)
|
||||
|
||||
error: type of field annotated with `#[suggestion(...)]` contains more than one Span
|
||||
--> $DIR/session-derive-errors.rs:209:5
|
||||
|
|
||||
LL | / #[suggestion(message = "This is a message", code = "This is suggested code")]
|
||||
LL | |
|
||||
LL | | suggestion: (Span, Span, Applicability),
|
||||
| |___________________________________________^
|
||||
LL | #[suggestion(message = "This is a message", code = "This is suggested code")]
|
||||
| ^
|
||||
|
||||
error: type of field annotated with `#[suggestion(...)]` contains more than one Applicability
|
||||
--> $DIR/session-derive-errors.rs:217:5
|
||||
|
|
||||
LL | / #[suggestion(message = "This is a message", code = "This is suggested code")]
|
||||
LL | |
|
||||
LL | | suggestion: (Applicability, Applicability, Span),
|
||||
| |____________________________________________________^
|
||||
LL | #[suggestion(message = "This is a message", code = "This is suggested code")]
|
||||
| ^
|
||||
|
||||
error: invalid annotation list `#[label(...)]`
|
||||
--> $DIR/session-derive-errors.rs:225:7
|
||||
|
|
||||
LL | #[label("wrong kind of annotation for label")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^
|
||||
|
||||
error: aborting due to 18 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 88a58d1f484af31d87b75e1d17655b59910f41fe
|
||||
Subproject commit 3bd7215d48ba05f18401cc340ae8d71af002ba6d
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit ea268b9f559fbafcfc24f4982173b01dfad9e443
|
||||
Subproject commit 7de6968ee22696b7feb6b477a05656de89275291
|
||||
|
|
@ -67,7 +67,6 @@ const PERMITTED_DEPENDENCIES: &[&str] = &[
|
|||
"arrayvec",
|
||||
"atty",
|
||||
"autocfg",
|
||||
"backtrace",
|
||||
"bitflags",
|
||||
"block-buffer",
|
||||
"block-padding",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue