Skip to content

Rollup of 10 pull requests #122011

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 33 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
1f2db3d
Add an example to demonstrate how Rc::into_inner works
Takashiidobe Feb 17, 2024
cb8ce9d
time complexity for push
20jasper Feb 16, 2024
bb6dca0
time complexity for push_within_capacity
20jasper Feb 16, 2024
0a5d684
time complexity for pop
20jasper Feb 16, 2024
d2f825f
time complexity for insert
20jasper Feb 18, 2024
ef1a584
intradoc link for vec
20jasper Feb 18, 2024
a9cfeb3
fix typo in push documentation
20jasper Feb 18, 2024
bc52e5d
Fix error in push docs
20jasper Feb 18, 2024
261da5f
Clarify/add `must_use` message for Rc/Arc/Weak::into_raw.
zachs18 Feb 19, 2024
74151cb
Make push docs more vague
20jasper Feb 25, 2024
f5f11e1
Add regression test
oli-obk Mar 1, 2024
f27a22c
try_with_capacity for RawVec
kornelski Jan 30, 2024
78fb977
try_with_capacity for Vec, VecDeque, String
kornelski Jan 30, 2024
784e6a1
Move capacity_overflow function to make ui tests change less
kornelski Jan 31, 2024
dd0004a
Don't panic when waiting on poisoned queries
Zoxc Aug 16, 2023
f0c9311
Use root obligation on E0277 for some cases
estebank Feb 29, 2024
89a3c19
Be more lax in `.into_iter()` suggestion when encountering `Iterator`…
estebank Mar 1, 2024
40f9dcc
Use `can_eq` instead of `Ty<'_> == Ty<'_>`
estebank Mar 2, 2024
8364a06
Merge the impl trait in assoc type collector into the opaque type col…
oli-obk Mar 4, 2024
2af01a2
Abort on arity mismatch
Nadrieril Mar 4, 2024
fb91610
Avoid using unnecessary queries when printing the query stack in panics
Zoxc Mar 4, 2024
86e88fc
interpret/cast: make more matches on FloatTy properly exhaustive
RalfJung Mar 4, 2024
681dc38
typo
RalfJung Mar 4, 2024
2ce7bdd
Rollup merge of #120504 - kornelski:try_with_capacity, r=Amanieu
matthiaskrgr Mar 5, 2024
fd7bb60
Rollup merge of #121213 - Takashiidobe:takashi/example-for-rc-into-in…
matthiaskrgr Mar 5, 2024
1839673
Rollup merge of #121262 - 20jasper:add-vector-time-complexity, r=cuviper
matthiaskrgr Mar 5, 2024
63bb19c
Rollup merge of #121287 - zachs18:rc-into-raw-must-use, r=cuviper
matthiaskrgr Mar 5, 2024
2b9c2f1
Rollup merge of #121826 - estebank:e0277-root-obligation-2, r=oli-obk
matthiaskrgr Mar 5, 2024
49de914
Rollup merge of #121838 - oli-obk:impl_trait_in_assoc_tys_fix, r=comp…
matthiaskrgr Mar 5, 2024
c8798c0
Rollup merge of #121913 - Zoxc:query-fix, r=compiler-errors
matthiaskrgr Mar 5, 2024
9c1b0c0
Rollup merge of #121987 - Nadrieril:abort-on-arity-mismatch, r=compil…
matthiaskrgr Mar 5, 2024
1f5b3d2
Rollup merge of #121993 - Zoxc:query-stack-panic-queries, r=compiler-…
matthiaskrgr Mar 5, 2024
99a7802
Rollup merge of #121997 - RalfJung:cast-float-ty, r=compiler-errors
matthiaskrgr Mar 5, 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
Add regression test
  • Loading branch information
oli-obk committed Mar 1, 2024
commit f5f11e11978a57f25c27b670d2e8b2b001fc9d01
28 changes: 28 additions & 0 deletions tests/ui/type-alias-impl-trait/hidden_behind_struct_field3.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//! This test demonstrates a bug where we accidentally
//! detected opaque types in struct fields, but only if nested
//! in projections of another opaque type.
//@ check-pass

#![feature(impl_trait_in_assoc_type)]

struct Bar;

trait Trait: Sized {
type Assoc2;
type Assoc;
fn foo() -> Self::Assoc;
}

impl Trait for Bar {
type Assoc2 = impl std::fmt::Debug;
type Assoc = impl Iterator<Item = Foo>;
fn foo() -> Self::Assoc {
vec![Foo { field: () }].into_iter()
}
}

struct Foo {
field: <Bar as Trait>::Assoc2,
}

fn main() {}