-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 #101221 - ehuss:update-beta-cargo, r=ehuss
[BETA] Beta 1.64 backports * Cargo: * remove missed reference to workspace inheritance in unstable.md (rust-lang/cargo#11002) * Delay formatting trimmed path until lint/error is emitted #99893 * Use `node_type_opt` to skip over generics that were not expected #100155 * Revert "Remove a back-compat hack on lazy TAIT #97346" #99860
- Loading branch information
Showing
22 changed files
with
181 additions
and
95 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
fn foo(i: impl std::fmt::Display) {} | ||
|
||
fn main() { | ||
foo::<()>(()); | ||
//~^ ERROR this function takes 0 generic arguments but 1 generic argument was supplied | ||
//~| ERROR `()` doesn't implement `std::fmt::Display` | ||
} |
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,35 @@ | ||
error[E0107]: this function takes 0 generic arguments but 1 generic argument was supplied | ||
--> $DIR/issue-100154.rs:4:5 | ||
| | ||
LL | foo::<()>(()); | ||
| ^^^------ help: remove these generics | ||
| | | ||
| expected 0 generic arguments | ||
| | ||
note: function defined here, with 0 generic parameters | ||
--> $DIR/issue-100154.rs:1:4 | ||
| | ||
LL | fn foo(i: impl std::fmt::Display) {} | ||
| ^^^ | ||
= note: `impl Trait` cannot be explicitly specified as a generic argument | ||
|
||
error[E0277]: `()` doesn't implement `std::fmt::Display` | ||
--> $DIR/issue-100154.rs:4:15 | ||
| | ||
LL | foo::<()>(()); | ||
| --------- ^^ `()` cannot be formatted with the default formatter | ||
| | | ||
| required by a bound introduced by this call | ||
| | ||
= help: the trait `std::fmt::Display` is not implemented for `()` | ||
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead | ||
note: required by a bound in `foo` | ||
--> $DIR/issue-100154.rs:1:16 | ||
| | ||
LL | fn foo(i: impl std::fmt::Display) {} | ||
| ^^^^^^^^^^^^^^^^^ required by this bound in `foo` | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
Some errors have detailed explanations: E0107, E0277. | ||
For more information about an error, try `rustc --explain E0107`. |
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 |
---|---|---|
@@ -1,10 +1,19 @@ | ||
error: unconstrained opaque type | ||
--> $DIR/issue-86800.rs:25:34 | ||
| | ||
LL | type TransactionFuture<'__, O> = impl '__ + Future<Output = TransactionResult<O>>; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: `TransactionFuture` must be used in combination with a concrete type within the same module | ||
|
||
error: aborting due to previous error | ||
stack backtrace: | ||
|
||
error: internal compiler error: unexpected panic | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
query stack during panic: | ||
#0 [mir_borrowck] borrow-checking `execute_transaction_fut` | ||
#1 [type_of] computing type of `TransactionFuture::{opaque#0}` | ||
#2 [check_mod_item_types] checking item types in top-level module | ||
#3 [analysis] running analysis passes on this crate | ||
end of query stack |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.