Skip to content

Rollup of 8 pull requests #63583

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 24 commits into from
Closed
Changes from 2 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
5e6619e
Fix UWP build
mfkl Jul 31, 2019
54e268c
Fix README MSVC URI
mfkl Jul 31, 2019
6e4d023
Add UWP MSVC targets
mfkl Jul 31, 2019
3c6f6f0
Fix tidy checks
mfkl Jul 31, 2019
e3d8b68
review feedback: find lib root path from registry
mfkl Aug 5, 2019
89044a9
move store lib probing code to librustc_codegen_ssa
mfkl Aug 7, 2019
30fcd50
rustc_target: add n64 musl targets for MIPS64 arches
xen0n Jul 28, 2019
5124f34
Update RLS
Xanewok Aug 12, 2019
532008c
don't add Retag statements for compound types
RalfJung Aug 4, 2019
b122be4
test Retag in drop shim
RalfJung Aug 5, 2019
c9da160
review feedback: move uwp link code to get_linker
mfkl Aug 9, 2019
1581c43
review feedback: add comments and use local flavor variable
mfkl Aug 13, 2019
417f9ea
Utilize -Zbinary-dep-depinfo for dependency tracking
Mark-Simulacrum Aug 11, 2019
c1758d5
rustc_codegen_utils: account for 1-indexed anonymous lifetimes in v0 …
eddyb Aug 14, 2019
ed7317c
remove unused Level::PhaseFatal
matklad Aug 14, 2019
e5017de
Test HRTB issue accepted by compiler
meffij Aug 14, 2019
f56b8e1
Rollup merge of #63155 - mfkl:uwp-msvc, r=alexcrichton
Centril Aug 15, 2019
83939a5
Rollup merge of #63165 - xen0n:mips64-musl-targets, r=alexcrichton
Centril Aug 15, 2019
9d6fe7e
Rollup merge of #63306 - RalfJung:retag, r=varkor
Centril Aug 15, 2019
aed1c82
Rollup merge of #63470 - Mark-Simulacrum:rustc-depdep, r=alexcrichton
Centril Aug 15, 2019
29dec6e
Rollup merge of #63491 - Xanewok:update-rls, r=Mark-Simulacrum
Centril Aug 15, 2019
8985e06
Rollup merge of #63559 - eddyb:v0-mangling-off-by-1, r=estebank
Centril Aug 15, 2019
adcb9f6
Rollup merge of #63572 - matklad:no-phase-fatal, r=estebank
Centril Aug 15, 2019
2faf7f9
Rollup merge of #63577 - meffij:test-hrtb, r=alexcrichton
Centril Aug 15, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions src/test/ui/issues/issue-50301.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Tests that HRTBs are correctly accepted -- https://github.com/rust-lang/rust/issues/50301
// check-pass
trait Trait
where
for<'a> &'a Self::IntoIter: IntoIterator<Item = u32>,
{
type IntoIter;
fn get(&self) -> Self::IntoIter;
}

struct Impl(Vec<u32>);

impl Trait for Impl {
type IntoIter = ImplIntoIter;
fn get(&self) -> Self::IntoIter {
ImplIntoIter(self.0.clone())
}
}

struct ImplIntoIter(Vec<u32>);

impl<'a> IntoIterator for &'a ImplIntoIter {
type Item = <Self::IntoIter as Iterator>::Item;
type IntoIter = std::iter::Cloned<std::slice::Iter<'a, u32>>;
fn into_iter(self) -> Self::IntoIter {
(&self.0).into_iter().cloned()
}
}

fn main() {
}