rust/tests/ui/structs
Takayuki Maeda 9e84f6d86a
Rollup merge of #117110 - estebank:deref-field-suggestion, r=b-naber
Suggest field typo through derefs

Take into account implicit dereferences when suggesting fields.

```
error[E0609]: no field `longname` on type `Arc<S>`
  --> $DIR/suggest-field-through-deref.rs:10:15
   |
LL |     let _ = x.longname;
   |               ^^^^^^^^ help: a field with a similar name exists: `long_name`
```

CC https://github.com/rust-lang/rust/issues/78374#issuecomment-719564114
2023-11-19 04:14:41 +09:00
..
auxiliary
incomplete-fn-in-struct-definition.rs
incomplete-fn-in-struct-definition.stderr
issue-80853.rs
issue-80853.stderr
large-records.rs
method-chain-expression-failure.rs
method-chain-expression-failure.stderr
multi-line-fru-suggestion.rs
multi-line-fru-suggestion.stderr
rhs-type.rs
struct-base-wrong-type.rs
struct-base-wrong-type.stderr
struct-duplicate-comma.fixed
struct-duplicate-comma.rs
struct-duplicate-comma.stderr
struct-field-cfg.rs
struct-field-cfg.stderr
struct-field-init-syntax.rs
struct-field-init-syntax.stderr
struct-field-privacy.rs
struct-field-privacy.stderr
struct-fields-decl-dupe.rs
struct-fields-decl-dupe.stderr
struct-fields-dupe.rs
struct-fields-dupe.stderr
struct-fields-hints-no-dupe.rs
struct-fields-hints-no-dupe.stderr tweak logic of "unknown field" label 2023-11-18 00:40:11 +00:00
struct-fields-hints.rs
struct-fields-hints.stderr tweak logic of "unknown field" label 2023-11-18 00:40:11 +00:00
struct-fields-missing.rs
struct-fields-missing.stderr
struct-fields-shorthand-unresolved.rs
struct-fields-shorthand-unresolved.stderr
struct-fields-shorthand.rs
struct-fields-shorthand.stderr
struct-fields-too-many.rs
struct-fields-too-many.stderr
struct-fields-typo.rs
struct-fields-typo.stderr recover primary span label 2023-11-16 17:00:23 +00:00
struct-fn-in-definition.rs
struct-fn-in-definition.stderr
struct-missing-comma.fixed
struct-missing-comma.rs
struct-missing-comma.stderr
struct-pat-derived-error.rs
struct-pat-derived-error.stderr recover primary span label 2023-11-16 17:00:23 +00:00
struct-path-alias-bounds.rs
struct-path-alias-bounds.stderr
struct-path-associated-type.rs
struct-path-associated-type.stderr
struct-path-self-type-mismatch.rs
struct-path-self-type-mismatch.stderr Suggest replacing Self with the right type on type error 2023-11-16 16:19:19 +00:00
struct-path-self.rs
struct-path-self.stderr
struct-record-suggestion.fixed
struct-record-suggestion.rs
struct-record-suggestion.stderr
struct-tuple-field-names.rs
struct-tuple-field-names.stderr
struct-variant-privacy-xc.rs
struct-variant-privacy-xc.stderr
struct-variant-privacy.rs
struct-variant-privacy.stderr
structure-constructor-type-mismatch.rs
structure-constructor-type-mismatch.stderr
suggest-private-fields.rs
suggest-private-fields.stderr tweak logic of "unknown field" label 2023-11-18 00:40:11 +00:00
suggest-replacing-field-when-specifying-same-type.rs
suggest-replacing-field-when-specifying-same-type.stderr
unresolved-struct-with-fru.rs
unresolved-struct-with-fru.stderr