forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
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 rust-lang#112987 - compiler-errors:rollup-6anskq1, r=co…
…mpiler-errors Rollup of 8 pull requests Successful merges: - rust-lang#111087 (Implement `Sync` for `mpsc::Sender`) - rust-lang#112763 (Bump compiler_builtins) - rust-lang#112963 (Stop bubbling out hidden types from the eval obligation queries) - rust-lang#112965 (Don't emit same goal as input during `wf::unnormalized_obligations`) - rust-lang#112973 (Make sure to include default en-US ftl resources for `rustc_error` crate) - rust-lang#112981 (Fix return type notation errors with -Zlower-impl-trait-in-trait-to-assoc-ty) - rust-lang#112983 (Fix return type notation associated type suggestion when -Zlower-impl-trait-in-trait-to-assoc-ty) - rust-lang#112986 (Update cargo) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
56 changed files
with
508 additions
and
146 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
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
Submodule cargo
updated
11 files
+4 −4 | Cargo.lock | |
+1 −1 | Cargo.toml | |
+72 −46 | src/bin/cargo/cli.rs | |
+3 −1 | src/bin/cargo/commands/mod.rs | |
+9 −1 | src/bin/cargo/commands/run.rs | |
+2 −2 | src/cargo/core/resolver/encode.rs | |
+10 −0 | src/cargo/util/config/mod.rs | |
+34 −24 | src/doc/src/reference/unstable.md | |
+77 −35 | tests/testsuite/config_include.rs | |
+15 −0 | tests/testsuite/lockfile_compat.rs | |
+109 −26 | tests/testsuite/script.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
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,11 @@ | ||
{ | ||
"pre-link-args": {"gcc": ["-m64"]}, | ||
"data-layout": "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128", | ||
"linker-flavor": "gcc", | ||
"llvm-target": "x86_64-unknown-linux-gnu", | ||
"target-endian": "big", | ||
"target-pointer-width": "64", | ||
"target-c-int-width": "32", | ||
"arch": "x86_64", | ||
"os": "linux" | ||
} |
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
48 changes: 48 additions & 0 deletions
48
tests/ui/associated-type-bounds/return-type-notation/bad-inputs-and-output.next.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,48 @@ | ||
error: return type notation uses `()` instead of `(..)` for elided arguments | ||
--> $DIR/bad-inputs-and-output.rs:20:24 | ||
| | ||
LL | fn baz<T: Trait<method(..): Send>>() {} | ||
| ^^ help: remove the `..` | ||
|
||
error[E0658]: associated type bounds are unstable | ||
--> $DIR/bad-inputs-and-output.rs:12:17 | ||
| | ||
LL | fn foo<T: Trait<method(i32): Send>>() {} | ||
| ^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #52662 <https://github.com/rust-lang/rust/issues/52662> for more information | ||
= help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable | ||
|
||
error[E0658]: associated type bounds are unstable | ||
--> $DIR/bad-inputs-and-output.rs:16:17 | ||
| | ||
LL | fn bar<T: Trait<method() -> (): Send>>() {} | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #52662 <https://github.com/rust-lang/rust/issues/52662> for more information | ||
= help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable | ||
|
||
warning: the feature `return_type_notation` is incomplete and may not be safe to use and/or cause compiler crashes | ||
--> $DIR/bad-inputs-and-output.rs:5:12 | ||
| | ||
LL | #![feature(return_type_notation, async_fn_in_trait)] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #109417 <https://github.com/rust-lang/rust/issues/109417> for more information | ||
= note: `#[warn(incomplete_features)]` on by default | ||
|
||
error: argument types not allowed with return type notation | ||
--> $DIR/bad-inputs-and-output.rs:12:23 | ||
| | ||
LL | fn foo<T: Trait<method(i32): Send>>() {} | ||
| ^^^^^ help: remove the input types: `()` | ||
|
||
error: return type not allowed with return type notation | ||
--> $DIR/bad-inputs-and-output.rs:16:25 | ||
| | ||
LL | fn bar<T: Trait<method() -> (): Send>>() {} | ||
| ^^^^^^ help: remove the return type | ||
|
||
error: aborting due to 5 previous errors; 1 warning emitted | ||
|
||
For more information about this error, try `rustc --explain E0658`. |
2 changes: 2 additions & 0 deletions
2
tests/ui/associated-type-bounds/return-type-notation/bad-inputs-and-output.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
11 changes: 11 additions & 0 deletions
11
tests/ui/associated-type-bounds/return-type-notation/basic.current_with.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,11 @@ | ||
warning: the feature `return_type_notation` is incomplete and may not be safe to use and/or cause compiler crashes | ||
--> $DIR/basic.rs:8:12 | ||
| | ||
LL | #![feature(return_type_notation, async_fn_in_trait)] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #109417 <https://github.com/rust-lang/rust/issues/109417> for more information | ||
= note: `#[warn(incomplete_features)]` on by default | ||
|
||
warning: 1 warning emitted | ||
|
29 changes: 29 additions & 0 deletions
29
tests/ui/associated-type-bounds/return-type-notation/basic.current_without.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,29 @@ | ||
warning: the feature `return_type_notation` is incomplete and may not be safe to use and/or cause compiler crashes | ||
--> $DIR/basic.rs:8:12 | ||
| | ||
LL | #![feature(return_type_notation, async_fn_in_trait)] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #109417 <https://github.com/rust-lang/rust/issues/109417> for more information | ||
= note: `#[warn(incomplete_features)]` on by default | ||
|
||
error: future cannot be sent between threads safely | ||
--> $DIR/basic.rs:26:13 | ||
| | ||
LL | is_send(foo::<T>()); | ||
| ^^^^^^^^^^ future returned by `foo` is not `Send` | ||
| | ||
= help: within `impl Future<Output = Result<(), ()>>`, the trait `Send` is not implemented for `impl Future<Output = Result<(), ()>>` | ||
note: future is not `Send` as it awaits another future which is not `Send` | ||
--> $DIR/basic.rs:16:5 | ||
| | ||
LL | T::method().await?; | ||
| ^^^^^^^^^^^ await occurs here on type `impl Future<Output = Result<(), ()>>`, which is not `Send` | ||
note: required by a bound in `is_send` | ||
--> $DIR/basic.rs:20:20 | ||
| | ||
LL | fn is_send(_: impl Send) {} | ||
| ^^^^ required by this bound in `is_send` | ||
|
||
error: aborting due to previous error; 1 warning emitted | ||
|
11 changes: 11 additions & 0 deletions
11
tests/ui/associated-type-bounds/return-type-notation/basic.next_with.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,11 @@ | ||
warning: the feature `return_type_notation` is incomplete and may not be safe to use and/or cause compiler crashes | ||
--> $DIR/basic.rs:8:12 | ||
| | ||
LL | #![feature(return_type_notation, async_fn_in_trait)] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #109417 <https://github.com/rust-lang/rust/issues/109417> for more information | ||
= note: `#[warn(incomplete_features)]` on by default | ||
|
||
warning: 1 warning emitted | ||
|
29 changes: 29 additions & 0 deletions
29
tests/ui/associated-type-bounds/return-type-notation/basic.next_without.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,29 @@ | ||
warning: the feature `return_type_notation` is incomplete and may not be safe to use and/or cause compiler crashes | ||
--> $DIR/basic.rs:8:12 | ||
| | ||
LL | #![feature(return_type_notation, async_fn_in_trait)] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #109417 <https://github.com/rust-lang/rust/issues/109417> for more information | ||
= note: `#[warn(incomplete_features)]` on by default | ||
|
||
error: future cannot be sent between threads safely | ||
--> $DIR/basic.rs:26:13 | ||
| | ||
LL | is_send(foo::<T>()); | ||
| ^^^^^^^^^^ future returned by `foo` is not `Send` | ||
| | ||
= help: within `impl Future<Output = Result<(), ()>>`, the trait `Send` is not implemented for `impl Future<Output = Result<(), ()>>` | ||
note: future is not `Send` as it awaits another future which is not `Send` | ||
--> $DIR/basic.rs:16:5 | ||
| | ||
LL | T::method().await?; | ||
| ^^^^^^^^^^^ await occurs here on type `impl Future<Output = Result<(), ()>>`, which is not `Send` | ||
note: required by a bound in `is_send` | ||
--> $DIR/basic.rs:20:20 | ||
| | ||
LL | fn is_send(_: impl Send) {} | ||
| ^^^^ required by this bound in `is_send` | ||
|
||
error: aborting due to previous error; 1 warning emitted | ||
|
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
Oops, something went wrong.