rust/src/test/ui/suggestions
David Wood 7ab1bfd692
Only make suggestion when type is Copy.
This commit makes the suggestion to dereference when a type implements
`Deref` only apply if the dereference would succeed (ie. the type is
`Copy`, otherwise a borrow check error would occur).
2019-04-22 19:26:24 +01:00
..
auxiliary filter suggestions from extern prelude 2019-03-18 11:13:15 -04:00
dont-suggest-ref Update tests 2019-03-11 23:10:26 +03:00
as-ref.rs
as-ref.stderr suggestion-diagnostics: as_ref improve snippet 2019-02-13 17:52:22 +00:00
assoc-const-as-field.rs Provide suggestion when using field access instead of path 2019-03-24 19:21:54 -07:00
assoc-const-as-field.stderr Deduplicate code for path suggestion 2019-03-24 19:43:02 -07:00
attribute-typos.rs add typo suggestion to unknown attribute error 2019-01-27 21:56:50 -05:00
attribute-typos.stderr Reword tracking issue note 2019-04-11 11:42:06 -07:00
borrow-for-loop-head.nll.stderr hide --explain hint if error has no extended info 2019-04-18 13:29:28 -04:00
borrow-for-loop-head.rs When moving out of a for loop head, suggest borrowing it 2019-03-24 11:46:13 -07:00
borrow-for-loop-head.stderr hide --explain hint if error has no extended info 2019-04-18 13:29:28 -04:00
dont-suggest-deref-inside-macro-issue-58298.rs Account for fully overlapping multiline annotations 2019-03-27 19:35:30 -07:00
dont-suggest-deref-inside-macro-issue-58298.stderr Account for fully overlapping multiline annotations 2019-03-27 19:35:30 -07:00
format-borrow.rs Suggest removal of & when borrowing macro and appropriate 2019-03-02 11:25:00 -08:00
format-borrow.stderr Suggest removal of & when borrowing macro and appropriate 2019-03-02 11:25:00 -08:00
impl-trait-return-trailing-semicolon.rs On return type impl Trait for block with no expr point at last semi 2019-03-04 13:17:54 -08:00
impl-trait-return-trailing-semicolon.stderr Update tests 2019-03-11 23:10:26 +03:00
into-str.rs Add suggestion to use &*var when &str: From<String> is expected 2019-03-22 20:38:14 -07:00
into-str.stderr review comments 2019-03-22 21:54:19 -07:00
issue-51055-missing-semicolon-between-call-and-tuple.rs
issue-51055-missing-semicolon-between-call-and-tuple.stderr Update tests 2019-03-11 23:10:26 +03:00
issue-59819.fixed Only make suggestion when type is Copy. 2019-04-22 19:26:24 +01:00
issue-59819.rs Only make suggestion when type is Copy. 2019-04-22 19:26:24 +01:00
issue-59819.stderr Only make suggestion when type is Copy. 2019-04-22 19:26:24 +01:00
no-extern-crate-in-type.rs filter suggestions from extern prelude 2019-03-18 11:13:15 -04:00
no-extern-crate-in-type.stderr filter suggestions from extern prelude 2019-03-18 11:13:15 -04:00
path-by-value.rs
path-by-value.stderr
path-display.rs
path-display.stderr
recover-from-semicolon-trailing-item.rs
recover-from-semicolon-trailing-item.stderr
recover-invalid-float.rs Extend incorrect float literal recovery to account for suffixes 2019-01-20 14:25:53 -08:00
recover-invalid-float.stderr Extend incorrect float literal recovery to account for suffixes 2019-01-20 14:25:53 -08:00
return-without-lifetime.rs Suggest adding lifetime to struct field 2019-03-12 18:18:29 -07:00
return-without-lifetime.stderr Suggest adding lifetime to struct field 2019-03-12 18:18:29 -07:00
suggest-impl-trait-lifetime.fixed
suggest-impl-trait-lifetime.rs
suggest-impl-trait-lifetime.stderr
suggest-labels.rs
suggest-labels.stderr Update tests 2019-03-11 23:10:26 +03:00
suggest-methods.rs
suggest-methods.stderr improve unknown enum variant errors 2019-04-09 14:19:20 -04:00
suggest-move-lifetimes.rs
suggest-move-lifetimes.stderr Only mention const generics if enabled. 2019-03-31 00:14:21 +01:00
suggest-move-types.rs Update tests 2019-02-07 15:02:17 +01:00
suggest-move-types.stderr Update tests 2019-03-11 23:10:26 +03:00
suggest-on-bare-closure-call.rs When encountetring ||{}(), suggest the likely intended (||{})() 2019-03-08 19:08:28 -08:00
suggest-on-bare-closure-call.stderr When encountetring ||{}(), suggest the likely intended (||{})() 2019-03-08 19:08:28 -08:00
suggest-private-fields.rs
suggest-private-fields.stderr
suggest-ref-mut.rs
suggest-ref-mut.stderr hide --explain hint if error has no extended info 2019-04-18 13:29:28 -04:00
suggest-remove-refs-1.rs
suggest-remove-refs-1.stderr
suggest-remove-refs-2.rs
suggest-remove-refs-2.stderr
suggest-remove-refs-3.rs
suggest-remove-refs-3.stderr
suggest-std-when-using-type.rs Suggest appropriate path when calling associated item on bare types 2019-04-18 19:18:26 -07:00
suggest-std-when-using-type.stderr Suggest appropriate path when calling associated item on bare types 2019-04-18 19:18:26 -07:00
suggest-variants.rs improve unknown enum variant errors 2019-04-09 14:19:20 -04:00
suggest-variants.stderr improve unknown enum variant errors 2019-04-09 14:19:20 -04:00
type-ascription-instead-of-let.rs Hide "type ascription is experimental error" unless it's the only one 2019-03-22 19:50:18 -07:00
type-ascription-instead-of-let.stderr Hide "type ascription is experimental error" unless it's the only one 2019-03-22 19:50:18 -07:00
type-ascription-instead-of-method.rs Expand suggestions for type ascription parse errors 2019-03-22 19:50:18 -07:00
type-ascription-instead-of-method.stderr Expand suggestions for type ascription parse errors 2019-03-22 19:50:18 -07:00
type-ascription-instead-of-path.rs Hide "type ascription is experimental error" unless it's the only one 2019-03-22 19:50:18 -07:00
type-ascription-instead-of-path.stderr hide --explain hint if error has no extended info 2019-04-18 13:29:28 -04:00
type-ascription-instead-of-variant.rs Expand suggestions for type ascription parse errors 2019-03-22 19:50:18 -07:00
type-ascription-instead-of-variant.stderr Expand suggestions for type ascription parse errors 2019-03-22 19:50:18 -07:00
type-mismatch-struct-field-shorthand-2.rs
type-mismatch-struct-field-shorthand-2.stderr hide --explain hint if error has no extended info 2019-04-18 13:29:28 -04:00
type-mismatch-struct-field-shorthand.fixed
type-mismatch-struct-field-shorthand.rs
type-mismatch-struct-field-shorthand.stderr
unused-closure-argument.rs Suggest appropriate code for unused field when desrtucturing patttern 2019-03-02 15:16:53 -08:00
unused-closure-argument.stderr Suggest appropriate code for unused field when desrtucturing patttern 2019-03-02 15:16:53 -08:00
use-type-argument-instead-of-assoc-type.rs
use-type-argument-instead-of-assoc-type.stderr hide --explain hint if error has no extended info 2019-04-18 13:29:28 -04:00