Skip to content

Rollup of 7 pull requests #134439

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

Merged
merged 32 commits into from
Dec 18, 2024
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
68ce659
Promote powerpc64le-unknown-linux-musl to tier 2 with host tools
Gelbpunkt Nov 18, 2024
3e3ee4c
Fix markdown link
Gelbpunkt Dec 3, 2024
8bb0fd5
Update src/doc/rustc/src/platform-support/powerpc64le-unknown-linux-m…
Gelbpunkt Dec 3, 2024
286de9f
Move dist-powerpc64le-linux to job-linux-4c-largedisk
Gelbpunkt Dec 9, 2024
2fd4438
clean up `emit_access_facts`
lqd Dec 11, 2024
9d8f58a
clean up `emit_drop_facts`
lqd Dec 11, 2024
afbe101
clean up `translate_outlives_facts`
lqd Dec 11, 2024
5486857
use let else more consistently in fact generation
lqd Dec 11, 2024
1740a5f
simplify `emit_access_facts` and fact generation
lqd Dec 11, 2024
2024c5d
simplify `emit_outlives_facts`
lqd Dec 11, 2024
7ad1f5b
refactor `type_check` module slightly
lqd Dec 11, 2024
8562497
improve consistency within fact gen
lqd Dec 11, 2024
ab6ad1a
Add a range argument to vec.extract_if
the8472 Nov 20, 2024
03f1b73
remove bounds from vec and linkedlist ExtractIf
the8472 Nov 20, 2024
fe52150
update uses of extract_if in the compiler
the8472 Nov 20, 2024
44790c4
remove obsolete comment and pub(super) visibility
the8472 Nov 20, 2024
fe412af
coverage: Use `is_eligible_for_coverage` to filter unused functions
Zalathar Dec 14, 2024
154fae1
coverage: Build the global file table on the fly
Zalathar Dec 13, 2024
252276a
coverage: Pull expression conversion out of `map_data.rs`
Zalathar Dec 12, 2024
527f812
coverage: Pull region conversion out of `map_data.rs`
Zalathar Dec 12, 2024
d34c365
coverage: Pull function source hash out of `map_data.rs`
Zalathar Dec 14, 2024
541d4e8
coverage: Track used functions in a set instead of a map
Zalathar Dec 14, 2024
a7f61ca
Regression test for RPIT inheriting lifetime
rmehri01 Dec 17, 2024
13e8313
bootstrap: use specific-purpose ui test path
jieyouxu Dec 17, 2024
c482b31
Fix typo in uint_macros.rs
hkBst Dec 17, 2024
938742e
Rollup merge of #133265 - the8472:extract-if-ranges, r=cuviper
matthiaskrgr Dec 17, 2024
ca5dfa7
Rollup merge of #133801 - Gelbpunkt:powerpc64le-unknown-linux-musl-ti…
matthiaskrgr Dec 17, 2024
e696f5c
Rollup merge of #134323 - Zalathar:dismantle-map-data, r=jieyouxu
matthiaskrgr Dec 17, 2024
264566f
Rollup merge of #134378 - lqd:polonius-next-episode-2, r=jackh726
matthiaskrgr Dec 17, 2024
53635e5
Rollup merge of #134408 - rmehri01:rpit-inherits-lifetime, r=compiler…
matthiaskrgr Dec 17, 2024
4b905c8
Rollup merge of #134423 - jieyouxu:bootstrap-test-valid, r=onur-ozkan
matthiaskrgr Dec 17, 2024
3b0df8c
Rollup merge of #134426 - hkBst:patch-3, r=lqd
matthiaskrgr Dec 17, 2024
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
Prev Previous commit
Next Next commit
Regression test for RPIT inheriting lifetime
  • Loading branch information
rmehri01 committed Dec 17, 2024
commit a7f61cad1e6735b7f6a522ee1a3bc96c4e9ab1c7
24 changes: 24 additions & 0 deletions tests/ui/impl-trait/rpit/inherits-lifetime.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//! Check that lifetimes are inherited in RPIT.
//! Previously, the hidden lifetime of T::Bar would be overlooked
//! and would instead end up as <T as Foo<'static>>::Bar.
//!
//! Regression test for <https://github.com/rust-lang/rust/issues/51525>.

//@ check-pass

trait Foo<'a> {
type Bar;
}

impl<'a> Foo<'a> for u32 {
type Bar = &'a ();
}

fn baz<'a, T>() -> impl IntoIterator<Item = T::Bar>
where
T: Foo<'a>,
{
None
}

fn main() {}
Loading