Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
72d2db7
Implement lint against `Symbol::intern` on a string literal
clubby789 Nov 27, 2024
71b698c
Replace `Symbol::intern` calls with preinterned symbols
clubby789 Nov 27, 2024
0554993
Don't suggest restricting bound with unstable traits on stable
estebank Nov 27, 2024
e3dfae8
reword trait bound suggestion message to include the bounds
estebank Nov 28, 2024
7e38a45
Add test for lack of suggestion in stable
estebank Nov 28, 2024
c34079a
Use trait name instead of full constraint in suggestion message
estebank Nov 28, 2024
5c9e5d1
Mention type parameter in more cases and don't suggest ~const bound a…
estebank Nov 28, 2024
442ec3d
Account for `impl Trait` in "add bound" suggestion message
estebank Nov 28, 2024
055dbc5
fix rustdoc test
estebank Nov 28, 2024
6b758e2
Do not talk about "trait `<Foo = Bar>`"
estebank Nov 28, 2024
05e6714
Use run-make `diff` output for stable output test
estebank Nov 29, 2024
2d61c09
reduce false positives on some common cases from if-let-rescope
dingxiangfei2009 Dec 2, 2024
2b88e4c
stabilize const_{size,align}_of_val
RalfJung Dec 2, 2024
0609b99
Structurally resolve in probe_adt
compiler-errors Nov 28, 2024
ebb9a38
document -Zrandomize-layout in the unstable book
the8472 Dec 2, 2024
2807ba7
Use correct `hir_id` for array const arg infers
BoxyUwU Dec 3, 2024
e55607b
Rollup merge of #133522 - estebank:dont-suggest-unstable-trait, r=com…
matthiaskrgr Dec 3, 2024
50f695c
Rollup merge of #133545 - clubby789:symbol-intern-lit, r=jieyouxu
matthiaskrgr Dec 3, 2024
610f080
Rollup merge of #133558 - compiler-errors:structurally-resolve-probe-…
matthiaskrgr Dec 3, 2024
802cc56
Rollup merge of #133753 - dingxiangfei2009:reduce-false-positive-if-l…
matthiaskrgr Dec 3, 2024
e1f1031
Rollup merge of #133762 - RalfJung:const-size-of-val, r=workingjubilee
matthiaskrgr Dec 3, 2024
767a5aa
Rollup merge of #133777 - the8472:document-randomize-layout, r=jieyouxu
matthiaskrgr Dec 3, 2024
7492b14
Rollup merge of #133779 - BoxyUwU:array_const_arg_infer_hir_id, r=com…
matthiaskrgr Dec 3, 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
6 changes: 5 additions & 1 deletion compiler/rustc_hir_typeck/src/fn_ctxt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,11 @@ impl<'tcx> HirTyLowerer<'tcx> for FnCtxt<'_, 'tcx> {
ty::Alias(ty::Projection | ty::Inherent | ty::Weak, _)
if !ty.has_escaping_bound_vars() =>
{
self.normalize(span, ty).ty_adt_def()
if self.next_trait_solver() {
self.try_structurally_resolve_type(span, ty).ty_adt_def()
} else {
self.normalize(span, ty).ty_adt_def()
}
}
_ => None,
}
Expand Down
15 changes: 0 additions & 15 deletions tests/crashes/132320.rs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//@ check-pass
//@ compile-flags: -Znext-solver

trait Mirror {
type Assoc;
}
impl<T> Mirror for T {
type Assoc = T;
}

type Foo<T> = <Option<T> as Mirror>::Assoc;

fn main() {
let x = Foo::<i32>::None;
}