rust/tests/ui/generic-associated-types
bors 196ff446d2 Auto merge of #122493 - lukas-code:sized-constraint, r=lcnr
clean up `Sized` checking

This PR cleans up `sized_constraint` and related functions to make them simpler and faster. This should not make more or less code compile, but it can change error output in some rare cases.

## enums and unions are `Sized`, even if they are not WF

The previous code has some special handling for enums, which made them sized if and only if the last field of each variant is sized. For example given this definition (which is not WF)
```rust
enum E<T1: ?Sized, T2: ?Sized, U1: ?Sized, U2: ?Sized> {
    A(T1, T2),
    B(U1, U2),
}
```
the enum was sized if and only if `T2` and `U2` are sized, while `T1` and `T2` were ignored for `Sized` checking. After this PR this enum will always be sized.

Unsized enums are not a thing in Rust and removing this special case allows us to return an `Option<Ty>` from `sized_constraint`, rather than a `List<Ty>`.

Similarly, the old code made an union defined like this
```rust
union Union<T: ?Sized, U: ?Sized> {
    head: T,
    tail: U,
}
```
sized if and only if `U` is sized, completely ignoring `T`. This just makes no sense at all and now this union is always sized.

## apply the "perf hack" to all (non-error) types, instead of just type parameters

This "perf hack" skips evaluating `sized_constraint(adt): Sized` if `sized_constraint(adt): Sized` exactly matches a predicate defined on `adt`, for example:

```rust
// `Foo<T>: Sized` iff `T: Sized`, but we know `T: Sized` from a predicate of `Foo`
struct Foo<T /*: Sized */>(T);
```

Previously this was only applied to type parameters and now it is applied to every type. This means that for example this type is now always sized:

```rust
// Note that this definition is WF, but the type `S<T>` not WF in the global/empty ParamEnv
struct S<T>([T]) where [T]: Sized;
```

I don't anticipate this to affect compile time of any real-world program, but it makes the code a bit nicer and it also makes error messages a bit more consistent if someone does write such a cursed type.

## tuples are sized if the last type is sized

The old solver already has this behavior and this PR also implements it for the new solver and `is_trivially_sized`. This makes it so that tuples work more like a struct defined like this:

```rust
struct TupleN<T1, T2, /* ... */ Tn: ?Sized>(T1, T2, /* ... */ Tn);
```

This might improve the compile time of programs with large tuples a little, but is mostly also a consistency fix.

## `is_trivially_sized` for more types

This function is used post-typeck code (borrowck, const eval, codegen) to skip evaluating `T: Sized` in some cases. It will now return `true` in more cases, most notably `UnsafeCell<T>` and `ManuallyDrop<T>` where `T.is_trivially_sized`.

I'm anticipating that this change will improve compile time for some real world programs.
2024-03-19 04:21:14 +00:00
..
auxiliary Format missing GATs correctly 2023-04-19 23:37:41 +00:00
bugs eagerly instantiate binders to avoid relying on sub 2024-03-14 17:19:40 +01:00
extended [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
parse [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
ambig-hr-projection-issue-93340.next.stderr rebase 2024-03-14 17:19:40 +01:00
ambig-hr-projection-issue-93340.old.stderr one must imagine tidy happy 2024-03-14 17:19:40 +01:00
ambig-hr-projection-issue-93340.rs one must imagine tidy happy 2024-03-14 17:19:40 +01:00
anonymize-bound-vars.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
assume-gat-normalization-for-nested-goals.current.stderr Mark some next-solver-behavior tests explicitly with revisions 2024-03-10 23:23:46 -04:00
assume-gat-normalization-for-nested-goals.rs Mark some next-solver-behavior tests explicitly with revisions 2024-03-10 23:23:46 -04:00
collections-project-default.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
collections-project-default.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
collections.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
collectivity-regression.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
collectivity-regression.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
const-generics-gat-in-trait-return-type-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-generics-gat-in-trait-return-type-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-generics-gat-in-trait-return-type-3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const_params_have_right_type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const_params_have_right_type.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
constraint-assoc-type-suggestion.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
constraint-assoc-type-suggestion.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
construct_with_other_type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cross-crate-bounds.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cross-crate-bounds.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
elided-in-expr-position.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
elided-in-expr-position.stderr Merge collect_mod_item_types query into check_well_formed 2024-03-07 14:26:31 +00:00
empty_generics.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
empty_generics.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
equality-bound.rs Do not leave stray commas after applying suggestion 2024-02-08 00:26:42 +00:00
equality-bound.stderr Do not leave stray commas after applying suggestion 2024-02-08 00:26:42 +00:00
gat-bounds-normalize-pred.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
gat-bounds-not-checked-with-right-substitutions.rs Add a regression test for #112895 2023-07-06 02:50:22 +09:00
gat-bounds-not-checked-with-right-substitutions.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
gat-in-trait-path-undeclared-lifetime.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
gat-in-trait-path-undeclared-lifetime.stderr Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
gat-in-trait-path.base.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
gat-in-trait-path.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
gat-trait-path-generic-type-arg.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
gat-trait-path-generic-type-arg.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
gat-trait-path-missing-lifetime.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
gat-trait-path-missing-lifetime.stderr Merge collect_mod_item_types query into check_well_formed 2024-03-07 14:26:31 +00:00
gat-trait-path-parenthesised-args.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
gat-trait-path-parenthesised-args.stderr Merge collect_mod_item_types query into check_well_formed 2024-03-07 14:26:31 +00:00
generic-associated-type-bounds.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
generic-associated-types-where.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
generic-associated-types-where.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
generic_associated_type_undeclared_lifetimes.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
generic_associated_type_undeclared_lifetimes.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
higher-ranked-self-impl-requirement.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
impl_bounds.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl_bounds.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
impl_bounds_ok.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-47206-where-clause.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-47206-where-clause.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-58694-parameter-out-of-range.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-62326-parameter-out-of-range.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-67424.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-67510-pass.base.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-67510-pass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-67510.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-67510.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-68641-check-gat-bounds.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-68641-check-gat-bounds.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-68642-broken-llvm-ir.rs Pretty print Fn traits in rustc_on_unimplemented 2023-11-02 20:57:05 +00:00
issue-68642-broken-llvm-ir.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-68643-broken-mir.rs Pretty print Fn traits in rustc_on_unimplemented 2023-11-02 20:57:05 +00:00
issue-68643-broken-mir.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-68644-codegen-selection.rs Pretty print Fn traits in rustc_on_unimplemented 2023-11-02 20:57:05 +00:00
issue-68644-codegen-selection.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-68645-codegen-fulfillment.rs Pretty print Fn traits in rustc_on_unimplemented 2023-11-02 20:57:05 +00:00
issue-68645-codegen-fulfillment.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-68648-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-68648-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-68648-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-68649-pass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-68653.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-68656-unsized-values.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-68656-unsized-values.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-70303.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-70304.rs Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
issue-70304.stderr Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
issue-71176.rs Silence follow up errors if astconv already errored 2024-01-11 09:03:26 +00:00
issue-71176.stderr Silence follow up errors if astconv already errored 2024-01-11 09:03:26 +00:00
issue-74684-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-74684-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-74684-2.rs Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
issue-74684-2.stderr Revert "Auto merge of #122140 - oli-obk:track_errors13, r=davidtwco" 2024-03-11 21:28:16 +00:00
issue-74816.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-74816.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-74824.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-74824.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-76407.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-76535.base.stderr On object safety error, mention new enum as alternative 2023-10-29 23:55:46 +00:00
issue-76535.extended.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-76535.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-76826.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-78113-lifetime-mismatch-dyn-trait-box.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-78113-lifetime-mismatch-dyn-trait-box.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-78671.base.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-78671.extended.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-78671.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-79422.base.stderr sort suggestions for object diagnostic 2024-02-08 18:56:52 +00:00
issue-79422.extended.stderr On E0308 involving dyn Trait, mention trait objects 2024-01-24 16:32:24 +00:00
issue-79422.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-79636-1.rs return ty::Error when equating ty::Error 2024-02-19 23:54:49 +00:00
issue-79636-1.stderr return ty::Error when equating ty::Error 2024-02-19 23:54:49 +00:00
issue-79636-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-79636-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-80433-reduced.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-80433.rs Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
issue-80433.stderr Merge collect_mod_item_types query into check_well_formed 2024-03-07 14:26:31 +00:00
issue-81487.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-81712-cyclic-traits.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-81712-cyclic-traits.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-81862.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-81862.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-84931.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-84931.stderr Reorder check_item_type diagnostics so they occur next to the corresponding check_well_formed diagnostics 2024-01-02 14:17:56 +00:00
issue-85921.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-86218-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-86218.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-86483.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-86787.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-86787.stderr Avoid a track_errors by bubbling up most errors from check_well_formed 2023-10-20 08:46:27 +00:00
issue-87258_a.rs Split out a separate feature gate for impl trait in associated types 2023-04-12 16:17:31 +00:00
issue-87258_a.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-87258_b.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-87258_b.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-87429-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-87429-associated-type-default.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-87429-associated-type-default.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-87429-specialization.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-87429-specialization.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-87429.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-87748.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-87750.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-88287.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-88287.stderr review comment: change wording 2024-02-01 03:31:03 +00:00
issue-88360.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-88360.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-88360.stderr Update tests 2024-02-07 10:42:01 +08:00
issue-88405.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-88459.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-88595.rs Make DefiningAnchor::Bind only store the opaque types that may be constrained, instead of the current infcx root item. 2024-03-11 17:19:37 +00:00
issue-88595.stderr Make DefiningAnchor::Bind only store the opaque types that may be constrained, instead of the current infcx root item. 2024-03-11 17:19:37 +00:00
issue-89008.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-89352.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-90014-tait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-90014-tait.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-90014-tait2.next-solver.stderr Mark some next-solver-behavior tests explicitly with revisions 2024-03-10 23:23:46 -04:00
issue-90014-tait2.rs Remove some unnecessary allow(incomplete_features) 2024-03-11 19:42:04 +00:00
issue-90014-tait2.stderr Remove some unnecessary allow(incomplete_features) 2024-03-11 19:42:04 +00:00
issue-90014.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-90014.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-90729.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-91139.migrate.stderr Manual find replace updates 2023-11-24 21:04:51 +01:00
issue-91139.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-91139.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
issue-91883.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-91883.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-92033.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-92033.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-92096.migrate.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-92096.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-92096.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-92280.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-92954.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-93141.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-93262.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-93341.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-93342.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-93874.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-95305.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-95305.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-101020.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-101020.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-102114.current.stderr Ignore tests w/ current/next revisions from compare-mode=next-solver 2024-03-10 21:18:41 -04:00
issue-102114.next.stderr Ignore tests w/ current/next revisions from compare-mode=next-solver 2024-03-10 21:18:41 -04:00
issue-102114.rs Ignore tests w/ current/next revisions from compare-mode=next-solver 2024-03-10 21:18:41 -04:00
issue-102333.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-102335-gat.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-102335-gat.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-119942-unsatisified-gat-bound-during-assoc-ty-selection.rs clean up ADT sized constraint computation 2024-03-14 21:28:47 +01:00
issue-119942-unsatisified-gat-bound-during-assoc-ty-selection.stderr clean up ADT sized constraint computation 2024-03-14 21:28:47 +01:00
iterable.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
method-unsatisfied-assoc-type-predicate.rs Account for non-overlapping unmet trait bounds in suggestion 2024-01-30 19:26:13 +00:00
method-unsatisfied-assoc-type-predicate.stderr Account for non-overlapping unmet trait bounds in suggestion 2024-01-30 19:26:13 +00:00
mismatched-where-clause-regions.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mismatched-where-clause-regions.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
missing-bounds.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
missing-bounds.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
missing-bounds.stderr Tweak wording of type errors involving type params 2023-10-18 23:53:18 +00:00
missing-item-sugg.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
missing-item-sugg.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
missing-where-clause-on-trait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
missing-where-clause-on-trait.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
missing_lifetime_args.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
missing_lifetime_args.stderr Merge collect_mod_item_types query into check_well_formed 2024-03-07 14:26:31 +00:00
missing_lifetime_const.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
missing_lifetime_const.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
multiple-type-params-with-unmet-bounds.rs Remove unnecessary select_obligations_where_possible and redundant errors 2023-08-26 19:35:54 +00:00
multiple-type-params-with-unmet-bounds.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
own-bound-span.rs Remove unnecessary select_obligations_where_possible and redundant errors 2023-08-26 19:35:54 +00:00
own-bound-span.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
parameter_number_and_kind.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
parameter_number_and_kind.stderr diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
parameter_number_and_kind_impl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
parameter_number_and_kind_impl.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
pointer_family.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
projection-bound-cycle-generic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
projection-bound-cycle-generic.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
projection-bound-cycle.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
projection-bound-cycle.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
projection-type-lifetime-mismatch.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
projection-type-lifetime-mismatch.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rigid-hr-projection-issue-93340.rs one must imagine tidy happy 2024-03-14 17:19:40 +01:00
self-outlives-lint.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
self-outlives-lint.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
shadowing.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
shadowing.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
streaming_iterator.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
trait-objects.base.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
trait-objects.extended.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
trait-objects.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
type-param-defaults.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
type-param-defaults.stderr Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
unknown-lifetime-ice-119827.rs Merge collect_mod_item_types query into check_well_formed 2024-03-07 14:26:31 +00:00
unknown-lifetime-ice-119827.stderr Merge collect_mod_item_types query into check_well_formed 2024-03-07 14:26:31 +00:00
unsatisfied-item-lifetime-bound.rs Work around the fact that check_mod_type_wf may spuriously return ErrorGuaranteed, even if that error is only emitted by check_modwitem_types 2023-10-25 12:04:54 +00:00
unsatisfied-item-lifetime-bound.stderr Reorder check_item_type diagnostics so they occur next to the corresponding check_well_formed diagnostics 2024-01-02 14:17:56 +00:00
unsatisfied-outlives-bound.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unsatisfied-outlives-bound.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
variance_constraints.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00