Skip to content

Rollup of 6 pull requests #91458

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 21 commits into from
Closed
Changes from 3 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
2c1cf5a
Document how recursion is handled for `ty::Ty`
camelid Nov 3, 2021
7907fa8
Clarify and tidy up explanation of E0038
graydon Nov 30, 2021
bb27b05
Separate `RemoveFalseEdges` from `SimplifyBranches`
ecstatic-morse Nov 30, 2021
d707707
Add "is" methods for projections to a given index
ecstatic-morse Nov 30, 2021
4f7605b
Add `RemoveUninitDrops` MIR pass
ecstatic-morse Nov 30, 2021
ce2959d
Add rationale for `RemoveUnneededDrops`
ecstatic-morse Nov 30, 2021
3e0e8be
Handle `DropAndReplace` in const-checking
ecstatic-morse Nov 30, 2021
58c996c
Move post-elaboration const-checking earlier in the pipeline
ecstatic-morse Dec 1, 2021
9aaca1d
Update MIR opt tests with new name
ecstatic-morse Dec 1, 2021
37fa925
Add regression test for #90770
ecstatic-morse Dec 1, 2021
b11d880
disable tests in Miri that take too long
RalfJung Dec 2, 2021
bd8d7e4
Transform const generics if the function uses rustc_legacy_const_gene…
GuillaumeGomez Oct 16, 2021
5c75a48
Add test for legacy-const-generic arguments
GuillaumeGomez Oct 16, 2021
51875e3
Add additional test from rust issue number 91068
steffahn Dec 2, 2021
b77ed83
Change to check-pass
jackh726 Dec 2, 2021
2ecc657
Rollup merge of #89954 - GuillaumeGomez:legacy-const-generic-doc, r=A…
matthiaskrgr Dec 2, 2021
426687b
Rollup merge of #90538 - camelid:doc-recur-ty, r=estebank
matthiaskrgr Dec 2, 2021
c8bee63
Rollup merge of #91387 - graydon:E0038-clarification, r=wesleywiser
matthiaskrgr Dec 2, 2021
816f2d6
Rollup merge of #91410 - ecstatic-morse:const-precise-live-drops-take…
matthiaskrgr Dec 2, 2021
6054fa8
Rollup merge of #91444 - RalfJung:miri-tests, r=dtolnay
matthiaskrgr Dec 2, 2021
0efed6c
Rollup merge of #91457 - steffahn:additional_test_from_91068, r=jackh726
matthiaskrgr Dec 2, 2021
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
22 changes: 22 additions & 0 deletions src/test/ui/fn/implied-bounds-unnorm-associated-type-2.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// check-pass

trait Trait {
type Type;
}

impl<T> Trait for T {
type Type = ();
}

fn f<'a, 'b>(_: <&'a &'b () as Trait>::Type)
where
'a: 'a,
'b: 'b,
{
}

fn g<'a, 'b>() {
f::<'a, 'b>(());
}

fn main() {}