rust/tests/ui/traits
bors b656f5171b Auto merge of #119338 - compiler-errors:upcast-plus-autos, r=lcnr
Consider principal trait ref's auto-trait super-traits in dyn upcasting

Given traits like:

```rust
trait Subtrait: Supertrait + Send {}
trait Supertrait {}
```

We should be able to upcast `dyn Subtrait` to `dyn Supertrait + Send`. This is not currently possible, because when upcasting, we look at the list of auto traits in the object type (`dyn Subtrait`, which has no auto traits in its bounds) and compare them to the target's auto traits (`dyn Supertrait + Send`, which has `Send` in its bound).

Since the target has auto traits that are not present in the source, the upcasting fails. This is overly restrictive, since `dyn Subtrait` will always implement `Send` via its built-in object impl. I propose to loosen this restriction here.

r? types

---

### ~~Aside: Fix this in astconv instead?~~

### edit: This causes too many failures. See https://github.com/rust-lang/rust/pull/119825#issuecomment-1890847150

We may also fix this by by automatically elaborating all auto-trait supertraits during `AstConv::conv_object_ty_poly_trait_ref`. That is, we can make it so that `dyn Subtrait` is elaborated into the same type of `dyn Subtrait + Send`.

I'm open to considering this solution instead, but it would break coherence in the following example:

```rust
trait Foo: Send {}

trait Bar {}
impl Bar for dyn Foo {}
impl Bar for dyn Foo + Send {}
//~^ This would begin to be an overlapping impl.
```
2024-02-15 19:16:06 +00:00
..
alias Update tests 2024-02-07 10:42:01 +08:00
associated_type_bound Silence follow up errors if astconv already errored 2024-01-11 09:03:26 +00:00
auxiliary Add some tests around where bounds on associated items and their lack of effect on impls 2023-06-26 09:56:28 +00:00
bound Be less confident when dyn suggestion is not checked for object safety 2024-02-09 20:47:50 -08:00
default-method Update tests 2024-02-07 10:42:01 +08:00
inductive-overflow Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
inheritance remove redundant imports 2023-12-10 10:56:22 +08:00
negative-bounds Remove special-casing around aliaskind in new solver 2024-01-11 16:54:11 +00:00
negative-impls Update tests 2024-02-07 10:42:01 +08:00
next-solver Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
non_lifetime_binders Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
object address review comments and add more tests 2024-02-07 20:58:05 +01:00
reservation-impl update use of feature flags 2023-12-14 15:22:37 +01:00
solver-cycles Show number in error message even for one error 2023-11-24 19:15:52 +01:00
suggest-dereferences Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
trait-upcasting Consider principal trait ref's auto-trait super-traits in dyn upcasting 2024-02-15 15:38:11 +00:00
vtable Show number in error message even for one error 2023-11-24 19:15:52 +01:00
wf-object Update tests 2024-02-07 10:42:01 +08:00
alignment-gep-tup-like-1.rs
anon_trait_static_method_exe.rs
anon-static-method.rs
as-struct-constructor.rs
as-struct-constructor.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
assignability-trait.rs
assoc-type-in-superbad.rs
assoc-type-in-superbad.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
assoc-type-in-supertrait.rs
astconv-cycle-between-and-type.rs
augmented-assignments-trait.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
bad-method-typaram-kind.rs
bad-method-typaram-kind.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
bad-sized.rs
bad-sized.stderr On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
bug-7183-generics.rs
bug-7295.rs
cache-issue-18209.rs
cache-reached-depth-ice.rs update tests 2023-06-19 15:39:55 +02:00
cache-reached-depth-ice.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
coercion-generic-bad.rs
coercion-generic-bad.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
coercion-generic-regions.rs
coercion-generic-regions.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
coercion-generic.rs
coercion.rs
composition-trivial.rs Update tests 2024-02-07 10:42:01 +08:00
conditional-dispatch.rs
conditional-model-fn.rs
conservative_impl_trait.rs
copy-guessing.rs Rename drop_copy lint to dropping_copy_types 2023-05-21 13:37:32 +02:00
copy-guessing.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
copy-impl-cannot-normalize.rs
copy-impl-cannot-normalize.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
copy-is-not-modulo-regions.not_static.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
copy-is-not-modulo-regions.rs may not => cannot 2023-03-08 00:00:18 +00:00
copy-requires-self-wf.rs Rebase and move UI tests 2023-01-13 23:06:29 +00:00
cycle-cache-err-60010.rs Reorder check_item_type diagnostics so they occur next to the corresponding check_well_formed diagnostics 2024-01-02 14:17:56 +00:00
cycle-cache-err-60010.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
cycle-generic-bound.rs Update tests 2024-02-07 10:42:01 +08:00
cycle-type-trait.rs
deny-builtin-object-impl.current.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
deny-builtin-object-impl.next.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
deny-builtin-object-impl.rs update use of feature flags 2023-12-14 15:22:37 +01:00
do-not-mention-type-params-by-name-in-suggestion-issue-96292.rs Reorder fullfillment errors to keep more interesting ones first 2023-10-04 02:04:14 +00:00
do-not-mention-type-params-by-name-in-suggestion-issue-96292.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
dont-autoderef-ty-with-escaping-var.rs Use erased self type when autoderefing for trait error suggestion 2023-07-23 14:13:52 -04:00
dont-autoderef-ty-with-escaping-var.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
duplicate-methods.rs
duplicate-methods.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
dyn-trait.rs remove invalid ignore-pretty 2023-04-03 09:24:11 +02:00
early-vtbl-resolution.rs
elaborate-type-region.rs
false-ambiguity-where-clause-builtin-bound.rs
fmt-pointer-trait.rs
fn-trait-cast-diagnostic.rs Add note when FnPtr vs. FnDef impl trait 2023-01-14 10:37:56 +00:00
fn-trait-cast-diagnostic.stderr Add note when FnPtr vs. FnDef impl trait 2023-01-14 10:37:56 +00:00
generic.rs
ice-with-dyn-pointee-errors.rs Add passing & failing test for bultin dyn trait generation 2023-06-27 17:52:26 +09:30
ice-with-dyn-pointee-errors.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
ice-with-dyn-pointee.rs Add passing & failing test for bultin dyn trait generation 2023-06-27 17:52:26 +09:30
ignore-err-impls.rs Filter impl and where-clause candidates that reference errors 2023-01-11 20:03:29 +00:00
ignore-err-impls.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
impl_trait_as_trait_return_position.rs
impl-1.rs
impl-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
impl-2.rs
impl-bounds-checking.rs
impl-bounds-checking.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
impl-can-not-have-untraitful-items.rs
impl-can-not-have-untraitful-items.stderr
impl-different-num-params.rs
impl-different-num-params.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
impl-evaluation-order.rs Rename drop_copy lint to dropping_copy_types 2023-05-21 13:37:32 +02:00
impl-for-module.rs
impl-for-module.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
impl-implicit-trait.rs
impl-inherent-prefer-over-trait.rs Update tests 2024-02-07 10:42:01 +08:00
impl-inherent-prefer-over-trait.stderr Update tests 2024-02-07 10:42:01 +08:00
impl-method-mismatch.rs
impl-method-mismatch.stderr recurse into refs when comparing tys for diagnostics 2023-12-07 23:00:46 -05:00
impl-object-overlap-issue-23853.rs Update tests 2024-02-07 10:42:01 +08:00
impl-object-overlap-issue-23853.stderr Update tests 2024-02-07 10:42:01 +08:00
impl-of-supertrait-has-wrong-lifetime-parameters.rs
impl-of-supertrait-has-wrong-lifetime-parameters.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
impl.rs Update tests 2024-02-07 10:42:01 +08:00
impl.stderr Update tests 2024-02-07 10:42:01 +08:00
infer-from-object-issue-26952.rs vars are ? 2023-04-25 19:53:09 +00:00
inherent-method-order.rs
issue-3683.rs
issue-3973.rs
issue-3973.stderr
issue-4107.rs
issue-5008-borrowed-traitobject-method-call.rs Move tests 2024-02-13 18:08:25 -03:00
issue-6128.rs Update tests 2024-02-07 10:42:01 +08:00
issue-6128.stderr Update tests 2024-02-07 10:42:01 +08:00
issue-6334.rs
issue-7013.rs
issue-7013.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-8153.rs
issue-8153.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-9394-inherited-calls.rs
issue-18400.rs
issue-18400.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-18412.rs
issue-20692.rs
issue-20692.stderr Note base types of coercion 2023-05-12 00:10:52 +00:00
issue-22019.rs remove redundant imports 2023-12-10 10:56:22 +08:00
issue-22110.rs
issue-22384.rs Move test files 2023-04-20 15:06:17 -03:00
issue-22384.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-22655.rs
issue-23003-overflow.rs
issue-23003.rs
issue-23825.rs
issue-24010.rs update use of feature flags 2023-12-14 15:22:37 +01:00
issue-26339.rs
issue-28576.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
issue-28576.stderr Fix suggestion span for ?Sized 2024-02-12 11:33:11 +09:00
issue-32963.rs
issue-32963.stderr
issue-33096.rs Move some tests 2024-02-09 15:43:08 -03:00
issue-33140-hack-boundaries.rs
issue-33140-hack-boundaries.stderr Do not point at #[allow(_)] as the reason for compat lint triggering 2024-02-13 20:27:43 +00:00
issue-33140.rs Continue compilation even if inherent impl checks fail 2024-02-14 21:04:51 +00:00
issue-33140.stderr Continue compilation even if inherent impl checks fail 2024-02-14 21:04:51 +00:00
issue-35869.rs
issue-35869.stderr
issue-38033.rs Update tests 2024-02-07 10:42:01 +08:00
issue-38033.stderr Update tests 2024-02-07 10:42:01 +08:00
issue-38404.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
issue-38404.stderr Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
issue-38604.rs
issue-38604.stderr On object safety error, mention new enum as alternative 2023-10-29 23:55:46 +00:00
issue-40085.rs Move some tests 2024-02-09 15:43:08 -03:00
issue-43132.rs
issue-43784-supertrait.rs
issue-43784-supertrait.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-50480.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
issue-50480.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
issue-52893.rs
issue-52893.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-56202.rs
issue-56488.rs Update tests 2024-02-07 10:42:01 +08:00
issue-58344.rs Move some tests 2024-02-09 15:43:08 -03:00
issue-59029-1.rs
issue-59029-1.stderr Tweak wording 2023-10-13 19:18:46 +00:00
issue-59029-2.rs Update tests 2024-02-07 10:42:01 +08:00
issue-65284-suggest-generic-trait-bound.rs
issue-65284-suggest-generic-trait-bound.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-65673.rs
issue-65673.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-66768.rs Move issue 29181, 2804, 17431, 66768 2023-08-24 20:44:08 +03:00
issue-68295.rs
issue-68295.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-70944.rs
issue-71036.rs
issue-71036.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-71136.rs
issue-71136.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-72410.rs
issue-72410.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-72455.rs
issue-75627.rs
issue-75627.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-77982.rs Fix windows test that has different stderr output 2023-10-06 15:51:04 +00:00
issue-77982.stderr Update tests. 2024-01-27 16:38:57 +01:00
issue-78372.rs Stop bailing out from compilation just because there were incoherent traits 2024-02-05 10:17:31 +00:00
issue-78372.stderr Stop bailing out from compilation just because there were incoherent traits 2024-02-05 10:17:31 +00:00
issue-78632.rs
issue-79458.rs
issue-79458.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-82830.rs
issue-83538-tainted-cache-after-cycle.rs update tests 2023-06-19 15:39:55 +02:00
issue-83538-tainted-cache-after-cycle.stderr update tests 2023-06-19 15:39:55 +02:00
issue-84399-bad-fresh-caching.rs
issue-85360-eval-obligation-ice.rs On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
issue-85360-eval-obligation-ice.stderr On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
issue-85735.rs
issue-85735.stderr Add print_trait_sugared 2023-12-05 17:15:46 +00:00
issue-87558.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
issue-87558.stderr Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
issue-89119.rs
issue-90195-2.rs
issue-90195.rs
issue-90662-projection-caching.rs dont discard overflow from normalizes-to goals 2023-12-18 09:01:54 +01:00
issue-91594.rs
issue-91594.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-91949-hangs-on-recursion.rs write-long-types-to-disk: update tests 2023-07-25 12:08:44 +01:00
issue-91949-hangs-on-recursion.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-92292.rs
issue-95311.rs
issue-95898.rs
issue-95898.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-96664.rs
issue-96665.rs
issue-97576.rs
issue-97576.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-97695-double-trivial-bound.rs
issue-99875.rs
issue-99875.stderr adjust how closure/generator types and rvalues are printed 2023-09-21 22:20:58 +02:00
issue-103563.rs fix: Unexpected trait bound not satisfied in HRTB 2023-02-13 19:39:44 +08:00
issue-104322.rs
issue-105231.rs Don't record spans for predicates in coherence 2023-08-30 18:24:18 +00:00
issue-105231.stderr Don't record spans for predicates in coherence 2023-08-30 18:24:18 +00:00
issue-106072.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
issue-106072.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
issue-117794.rs skip rpit constraint check if borrowck return type error 2023-12-17 16:49:00 +08:00
issue-117794.stderr skip rpit constraint check if borrowck return type error 2023-12-17 16:49:00 +08:00
item-inside-macro.rs
item-privacy.rs diagnostics: update test cases to refer to assoc fn with self as method 2023-02-22 08:40:47 -07:00
item-privacy.stderr Auto merge of #117415 - matthiaskrgr:rollup-jr2p1t2, r=matthiaskrgr 2023-10-30 20:50:14 +00:00
kindck-owned-contains-1.rs
map-types.rs
map-types.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
matching-lifetimes.rs
matching-lifetimes.stderr
method-argument-mismatch-variance-ice-119867.rs Taint _ placeholder types 2024-01-12 16:33:29 +00:00
method-argument-mismatch-variance-ice-119867.stderr Taint _ placeholder types 2024-01-12 16:33:29 +00:00
method-on-unbounded-type-param.rs Add test for method on unbounded type parameter receiver 2024-01-30 19:07:18 +00:00
method-on-unbounded-type-param.stderr Account for non-overlapping unmet trait bounds in suggestion 2024-01-30 19:26:13 +00:00
method-private.rs
method-private.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
monad.rs
monomorphized-callees-with-ty-params-3314.rs
multidispatch1.rs
multidispatch2.rs remove redundant imports 2023-12-10 10:56:22 +08:00
multidispatch-bad.rs
multidispatch-bad.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
multidispatch-conditional-impl-not-considered.rs Update tests 2024-02-07 10:42:01 +08:00
multidispatch-conditional-impl-not-considered.stderr Update tests 2024-02-07 10:42:01 +08:00
multidispatch-convert-ambig-dest.rs Reorder fullfillment errors to keep more interesting ones first 2023-10-04 02:04:14 +00:00
multidispatch-convert-ambig-dest.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
multidispatch-infer-convert-target.rs Update tests 2024-02-07 10:42:01 +08:00
multidispatch-infer-convert-target.stderr Update tests 2024-02-07 10:42:01 +08:00
mutual-recursion-issue-75860.rs
mutual-recursion-issue-75860.stderr On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
no_send-struct.rs
no_send-struct.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
no-fallback-multiple-impls.rs
no-fallback-multiple-impls.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
non-lifetime-via-dyn-builtin.current.stderr Don't instantiate the binder twice when assembling object candidate 2023-11-06 23:41:33 +00:00
non-lifetime-via-dyn-builtin.next.stderr Don't instantiate the binder twice when assembling object candidate 2023-11-06 23:41:33 +00:00
non-lifetime-via-dyn-builtin.rs update use of feature flags 2023-12-14 15:22:37 +01:00
normalize-supertrait.rs
not-suggest-non-existing-fully-qualified-path.rs Reorder fullfillment errors to keep more interesting ones first 2023-10-04 02:04:14 +00:00
not-suggest-non-existing-fully-qualified-path.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
object-does-not-impl-trait.rs
object-does-not-impl-trait.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
object-one-type-two-traits.rs
objects-owned-object-borrowed-method-headerless.rs
operator-overloading-issue-52025.rs
overlap-not-permitted-for-builtin-trait.rs
overlap-not-permitted-for-builtin-trait.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
overlap-permitted-for-marker-traits.rs
param-without-lifetime-constraint.rs
param-without-lifetime-constraint.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
parameterized-with-bounds.rs
pointee-deduction.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
pointee-normalize-equate.rs new solver: improve normalization of Pointee::Metadata 2024-02-05 15:58:46 +01:00
pointee-tail-is-generic-errors.rs
pointee-tail-is-generic-errors.stderr
pointee-tail-is-generic.rs
principal-less-objects.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
privacy.rs
project-modulo-regions.rs update tests 2023-06-19 15:39:55 +02:00
project-modulo-regions.with_clause.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
project-modulo-regions.without_clause.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
question-mark-result-err-mismatch.rs Reduce verbosity of error 2023-12-05 22:24:33 +00:00
question-mark-result-err-mismatch.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
region-pointer-simple.rs
resolution-in-overloaded-op.rs
resolution-in-overloaded-op.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
safety-fn-body.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
safety-fn-body.stderr Stabilize THIR unsafeck 2024-01-05 10:00:59 +00:00
safety-inherent-impl.rs
safety-inherent-impl.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
safety-ok-cc.rs
safety-ok.rs
safety-trait-impl-cc.rs
safety-trait-impl-cc.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
safety-trait-impl.rs
safety-trait-impl.stderr
self-without-lifetime-constraint.rs Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
self-without-lifetime-constraint.stderr Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
static-method-generic-inference.rs
static-method-generic-inference.stderr Deduplicate more sized errors on call exprs 2024-01-24 02:53:15 +00:00
static-method-overwriting.rs
static-outlives-a-where-clause.rs
staticness-mismatch.rs
staticness-mismatch.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
subtype-recursion-limit.rs Handle recursion limit for subtype and well-formed predicates 2023-12-01 17:25:02 +00:00
subtype-recursion-limit.stderr Handle recursion limit for subtype and well-formed predicates 2023-12-01 17:25:02 +00:00
suggest-fully-qualified-closure.rs adjust how closure/generator types and rvalues are printed 2023-09-21 22:20:58 +02:00
suggest-fully-qualified-closure.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
suggest-fully-qualified-path-with-adjustment.rs Reorder fullfillment errors to keep more interesting ones first 2023-10-04 02:04:14 +00:00
suggest-fully-qualified-path-with-adjustment.stderr Reorder fullfillment errors to keep more interesting ones first 2023-10-04 02:04:14 +00:00
suggest-fully-qualified-path-without-adjustment.rs Reorder fullfillment errors to keep more interesting ones first 2023-10-04 02:04:14 +00:00
suggest-fully-qualified-path-without-adjustment.stderr Reorder fullfillment errors to keep more interesting ones first 2023-10-04 02:04:14 +00:00
suggest-where-clause.rs
suggest-where-clause.stderr On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
superdefault-generics.rs
syntax-polarity.rs
syntax-trait-polarity.rs
syntax-trait-polarity.stderr
test-2.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
test-2.stderr On object safety error, mention new enum as alternative 2023-10-29 23:55:46 +00:00
test.rs
test.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
to-str.rs
track-obligations.rs Add tests 2023-01-13 18:20:24 +00:00
track-obligations.stderr Use only one label for multiple unsatisfied bounds on type (typeck) 2024-01-26 20:47:19 +00:00
trait-object-lifetime-default-note.rs Note about object lifetime defaults in does not live long enough error 2023-11-12 13:51:16 +01:00
trait-object-lifetime-default-note.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
trait-or-new-type-instead.rs
trait-or-new-type-instead.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
trivial_impl2.rs Add some tests around where bounds on associated items and their lack of effect on impls 2023-06-26 09:56:28 +00:00
trivial_impl2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
trivial_impl3.rs Add some tests around where bounds on associated items and their lack of effect on impls 2023-06-26 09:56:28 +00:00
trivial_impl3.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
trivial_impl4.rs Add some tests around where bounds on associated items and their lack of effect on impls 2023-06-26 09:56:28 +00:00
trivial_impl4.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
trivial_impl_sized.rs Add some tests around where bounds on associated items and their lack of effect on impls 2023-06-26 09:56:28 +00:00
trivial_impl_sized.stderr Add some tests around where bounds on associated items and their lack of effect on impls 2023-06-26 09:56:28 +00:00
trivial_impl.rs Add some tests around where bounds on associated items and their lack of effect on impls 2023-06-26 09:56:28 +00:00
trivial_impl.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
typeclasses-eq-example-static.rs
typeclasses-eq-example.rs
ufcs-object.rs
unsend-future.rs Bless tests. 2023-09-23 13:47:30 +00:00
unsend-future.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
unspecified-self-in-trait-ref.rs
unspecified-self-in-trait-ref.stderr Be less confident when dyn suggestion is not checked for object safety 2024-02-09 20:47:50 -08:00
upcast_soundness_bug.rs Add regression test 2024-01-22 14:24:31 +00:00
use-before-def.rs Update tests 2024-02-07 10:42:01 +08:00
vtable-res-trait-param.rs
vtable-res-trait-param.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
well-formed-recursion-limit.rs Handle recursion limit for subtype and well-formed predicates 2023-12-01 17:25:02 +00:00
well-formed-recursion-limit.stderr Handle recursion limit for subtype and well-formed predicates 2023-12-01 17:25:02 +00:00
where-clause-vs-impl.rs
with-bounds-default.rs
with-dst.rs
wrong-mul-method-signature.rs Move some UI tests into subdirectories 2023-04-02 19:42:30 -04:00
wrong-mul-method-signature.stderr recurse into refs when comparing tys for diagnostics 2023-12-07 23:00:46 -05:00