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#125529 - cuviper:beta-next, r=cuviper
[beta] backports - Add `#[inline]` to float `Debug` fallback used by `cfg(no_fp_fmt_parse)` rust-lang#125252 - Add v0 symbol mangling for `f16` and `f128` rust-lang#123816 - Only make GAT ambiguous in `match_projection_projections` considering shallow resolvability rust-lang#125214 - Update to LLVM 18.1.6 rust-lang#125288 r? cuviper
- Loading branch information
Showing
7 changed files
with
37 additions
and
6 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
Submodule llvm-project
updated
159 files
19 changes: 19 additions & 0 deletions
19
tests/ui/generic-associated-types/guide-inference-in-gat-arg-deeper.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,19 @@ | ||
// Fix for <https://github.com/rust-lang/rust/issues/125196>. | ||
//@ check-pass | ||
|
||
trait Tr { | ||
type Gat<T>; | ||
} | ||
|
||
struct W<T>(T); | ||
|
||
fn foo<T: Tr>() where for<'a> &'a T: Tr<Gat<W<i32>> = i32> { | ||
let x: <&T as Tr>::Gat<W<_>> = 1i32; | ||
// Previously, `match_projection_projections` only checked that | ||
// `shallow_resolve(W<?0>) = W<?0>`. This won't prevent *all* inference guidance | ||
// from projection predicates in the environment, just ones that guide the | ||
// outermost type of each GAT constructor. This is definitely wrong, but there is | ||
// code that relies on it in the wild :/ | ||
} | ||
|
||
fn main() {} |