-
Notifications
You must be signed in to change notification settings - Fork 13k
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 #70848 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] backports * Use TypeRelating for instantiating query responses #69591 * Move rustc-guide submodule to rustc-dev-guide #69898
- Loading branch information
Showing
10 changed files
with
124 additions
and
20 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 rustc-dev-guide
added at
66be76
Submodule rustc-guide
deleted from
5bd60b
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
33 changes: 33 additions & 0 deletions
33
src/test/ui/nll/user-annotations/type-annotation-with-hrtb.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,33 @@ | ||
// Regression test for issue #69490 | ||
|
||
// check-pass | ||
|
||
pub trait Trait<T> { | ||
const S: &'static str; | ||
} | ||
|
||
impl<T> Trait<()> for T | ||
where | ||
T: for<'a> Trait<&'a ()>, | ||
{ | ||
// Use of `T::S` here caused an ICE | ||
const S: &'static str = T::S; | ||
} | ||
|
||
// Some similar cases that didn't ICE: | ||
|
||
impl<'a, T> Trait<()> for (T,) | ||
where | ||
T: Trait<&'a ()>, | ||
{ | ||
const S: &'static str = T::S; | ||
} | ||
|
||
impl<T> Trait<()> for [T; 1] | ||
where | ||
T: Trait<for<'a> fn(&'a ())>, | ||
{ | ||
const S: &'static str = T::S; | ||
} | ||
|
||
fn main() {} |
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