-
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 #55849 - pietroalbini:beta-rollup, r=pietroalbini
[beta] Rollup backports Merged and approved: * #55831: [beta]: Update Cargo's submodule * #55717: Bubble up an overflow error so that rustdoc can ignore it * #55637: Do not attempt to ascribe projections out of a ty var * #55378: rustbuild: use configured linker to build bootstrap r? @ghost
- Loading branch information
Showing
9 changed files
with
101 additions
and
25 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
31 changes: 31 additions & 0 deletions
31
src/test/ui/borrowck/issue-55552-ascribe-wildcard-to-structured-pattern.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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// compile-pass | ||
|
||
// rust-lang/rust#55552: The strategy pnkfelix landed in PR #55274 | ||
// (for ensuring that NLL respects user-provided lifetime annotations) | ||
// did not handle the case where the ascribed type has some expliit | ||
// wildcards (`_`) mixed in, and it caused an internal compiler error | ||
// (ICE). | ||
// | ||
// This test is just checking that we do not ICE when such things | ||
// occur. | ||
|
||
struct X; | ||
struct Y; | ||
struct Z; | ||
|
||
struct Pair { x: X, y: Y } | ||
|
||
pub fn join<A, B, RA, RB>(oper_a: A, oper_b: B) -> (RA, RB) | ||
where A: FnOnce() -> RA + Send, | ||
B: FnOnce() -> RB + Send, | ||
RA: Send, | ||
RB: Send | ||
{ | ||
(oper_a(), oper_b()) | ||
} | ||
|
||
fn main() { | ||
let ((_x, _y), _z): (_, Z) = join(|| (X, Y), || Z); | ||
|
||
let (Pair { x: _x, y: _y }, Z): (_, Z) = join(|| Pair { x: X, y: Y }, || Z); | ||
} |
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
9 files
+1 −0 | Cargo.toml | |
+149 −21 | src/cargo/core/package.rs | |
+1 −0 | src/cargo/lib.rs | |
+8 −4 | src/cargo/ops/fix.rs | |
+2 −1 | src/cargo/ops/mod.rs | |
+46 −29 | src/cargo/ops/registry.rs | |
+2 −1 | src/cargo/util/config.rs | |
+4 −2 | src/cargo/util/network.rs | |
+44 −0 | tests/testsuite/fix.rs |