rust/tests/ui/suggestions
Matthias Krüger e413c2e770
Rollup merge of #110259 - ndrewxie:issue-109964-fix-gitstuff, r=cjgillot
Added diagnostic for pin! macro in addition to Box::pin if Unpin isn't implemented

I made a PR earlier, but accidentally renamed a branch and that deleted the PR... sorry for the duplicate

Currently, if an operation on `Pin<T>` is performed that requires `T` to implement `Unpin`, the diagnostic suggestion is to use `Box::pin` ("note: consider using `Box::pin`").

This PR suggests pin! as well, as that's another valid way of pinning a value, and avoids a heap allocation. Appropriate diagnostic suggestions were included to highlight the difference in semantics (local pinning for pin! vs non-local for Box::pin).

Fixes #109964
2023-04-13 21:58:37 +02:00
..
auxiliary
dont-suggest-doc-hidden-variant-for-enum Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
dont-suggest-ref
lifetimes Label opaque type for 'captures lifetime' error message 2023-03-03 05:02:34 +00:00
abi-typo.fixed
abi-typo.rs
abi-typo.stderr
adt-param-with-implicit-sized-bound.rs
adt-param-with-implicit-sized-bound.stderr
args-instead-of-tuple-errors.rs
args-instead-of-tuple-errors.stderr Re-add replacement logic and add comment explaining it 2023-02-14 20:22:10 +00:00
args-instead-of-tuple.fixed
args-instead-of-tuple.rs
args-instead-of-tuple.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
as-ref-2.rs
as-ref-2.stderr
as-ref.rs
as-ref.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
assoc_fn_without_self.rs
assoc_fn_without_self.stderr
assoc-const-as-field.rs
assoc-const-as-field.stderr
assoc-const-as-fn.rs
assoc-const-as-fn.stderr
assoc-const-without-self.rs suggest qualifying bare associated constants 2023-01-25 08:58:27 -05:00
assoc-const-without-self.stderr suggest qualifying bare associated constants 2023-01-25 08:58:27 -05:00
assoc-ct-for-assoc-method.rs
assoc-ct-for-assoc-method.stderr diagnostics: update test cases to refer to assoc fn with self as method 2023-02-22 08:40:47 -07:00
assoc-type-in-method-return.rs
assoc-type-in-method-return.stderr
async-fn-ctor-passed-as-arg-where-it-should-have-been-called.rs
async-fn-ctor-passed-as-arg-where-it-should-have-been-called.stderr
attribute-typos.rs
attribute-typos.stderr
bad-hex-float-lit.rs
bad-hex-float-lit.stderr
bad-infer-in-trait-impl.rs Fix index out of bounds in suggest_trait_fn_ty_for_impl_fn_infer 2023-03-16 04:02:56 +00:00
bad-infer-in-trait-impl.stderr Fix index out of bounds in suggest_trait_fn_ty_for_impl_fn_infer 2023-03-16 04:02:56 +00:00
bool_typo_err_suggest.rs
bool_typo_err_suggest.stderr
borrow-for-loop-head.rs
borrow-for-loop-head.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
bound-suggestions.fixed
bound-suggestions.rs
bound-suggestions.stderr
box-future-wrong-output.rs
box-future-wrong-output.stderr
boxed-variant-field.rs
boxed-variant-field.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
call-boxed.rs
call-boxed.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
call-on-missing.rs
call-on-missing.stderr
call-on-unimplemented-ctor.rs
call-on-unimplemented-ctor.stderr
call-on-unimplemented-fn-ptr.rs
call-on-unimplemented-fn-ptr.stderr
call-on-unimplemented-with-autoderef.rs Consolidate two almost duplicated fn info extraction routines 2023-01-13 22:43:17 +00:00
call-on-unimplemented-with-autoderef.stderr Consolidate two almost duplicated fn info extraction routines 2023-01-13 22:43:17 +00:00
chain-method-call-mutation-in-place.rs Emit "modifies receiver" diagnostic when no method is found 2023-03-14 16:39:45 +01:00
chain-method-call-mutation-in-place.stderr Emit "modifies receiver" diagnostic when no method is found 2023-03-14 16:39:45 +01:00
clone-on-unconstrained-borrowed-type-param.fixed
clone-on-unconstrained-borrowed-type-param.rs
clone-on-unconstrained-borrowed-type-param.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
const-in-struct-pat.rs
const-in-struct-pat.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
const-no-type.rs
const-no-type.stderr
const-pat-non-exaustive-let-new-var.rs Reinstate confusion note. 2023-04-03 15:59:21 +00:00
const-pat-non-exaustive-let-new-var.stderr Reinstate confusion note. 2023-04-03 15:59:21 +00:00
constrain-suggest-ice.rs Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
constrain-suggest-ice.stderr Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
constrain-trait.fixed
constrain-trait.rs
constrain-trait.stderr
copied-and-cloned.fixed
copied-and-cloned.rs
copied-and-cloned.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
core-std-import-order-issue-83564.rs
core-std-import-order-issue-83564.stderr Special-case item attributes in the suggestion output 2023-04-12 22:50:10 +00:00
correct-binder-for-arbitrary-bound-sugg.rs Place binder correctly for arbitrary trait bound suggestion 2023-03-06 16:37:34 +00:00
correct-binder-for-arbitrary-bound-sugg.stderr Place binder correctly for arbitrary trait bound suggestion 2023-03-06 16:37:34 +00:00
count2len.rs
count2len.stderr
crate-or-module-typo.rs
crate-or-module-typo.stderr
deref-path-method.rs
deref-path-method.stderr
derive-clone-for-eq.fixed
derive-clone-for-eq.rs
derive-clone-for-eq.stderr Note predicate span on ImplDerivedObligation 2023-01-11 19:46:45 +00:00
derive-macro-missing-bounds.rs
derive-macro-missing-bounds.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
derive-trait-for-method-call.rs
derive-trait-for-method-call.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
do-not-attempt-to-add-suggestions-with-no-changes.rs
do-not-attempt-to-add-suggestions-with-no-changes.stderr
dont-suggest-deref-inside-macro-issue-58298.rs
dont-suggest-deref-inside-macro-issue-58298.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
dont-suggest-pin-array-dot-set.rs
dont-suggest-pin-array-dot-set.stderr
dont-suggest-try_into-in-macros.rs
dont-suggest-try_into-in-macros.stderr
dont-suggest-ufcs-for-const.rs
dont-suggest-ufcs-for-const.stderr
dont-try-removing-the-field.rs
dont-try-removing-the-field.stderr
dont-wrap-ambiguous-receivers.rs
dont-wrap-ambiguous-receivers.stderr Special-case item attributes in the suggestion output 2023-04-12 22:50:10 +00:00
enum-method-probe.fixed
enum-method-probe.rs
enum-method-probe.stderr
enum-variant-arg-mismatch.rs
enum-variant-arg-mismatch.stderr
expected-boxed-future-isnt-pinned.rs
expected-boxed-future-isnt-pinned.stderr Added diagnostic for pin! macro in addition to Box::pin if Unpin isn't implemented 2023-04-12 18:03:11 -04:00
field-access-considering-privacy.rs
field-access-considering-privacy.stderr
field-access.fixed
field-access.rs
field-access.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
field-has-method.rs
field-has-method.stderr
fn-ctor-passed-as-arg-where-it-should-have-been-called.rs
fn-ctor-passed-as-arg-where-it-should-have-been-called.stderr
fn-missing-lifetime-in-item.rs
fn-missing-lifetime-in-item.stderr
fn-needing-specified-return-type-param.rs
fn-needing-specified-return-type-param.stderr
fn-or-tuple-struct-with-underscore-args.rs
fn-or-tuple-struct-with-underscore-args.stderr
fn-or-tuple-struct-without-args.rs
fn-or-tuple-struct-without-args.stderr diagnostics: update test cases to refer to assoc fn with self as method 2023-02-22 08:40:47 -07:00
fn-to-method-deeply-nested.rs
fn-to-method-deeply-nested.stderr
fn-to-method.rs
fn-to-method.stderr
fn-trait-notation.fixed
fn-trait-notation.rs
fn-trait-notation.stderr
for-i-in-vec.fixed
for-i-in-vec.rs
for-i-in-vec.stderr
format-borrow.rs
format-borrow.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
if-let-typo.rs
if-let-typo.stderr
if-then-neeing-semi.rs fix: improve the suggestion on future not awaited 2023-02-13 16:23:23 +01:00
if-then-neeing-semi.stderr fix: improve the suggestion on future not awaited 2023-02-13 16:23:23 +01:00
ignore-nested-field-binding.fixed
ignore-nested-field-binding.rs
ignore-nested-field-binding.stderr
imm-ref-trait-object-literal-bound-regions.rs
imm-ref-trait-object-literal-bound-regions.stderr Specify what 'this' actually is 2023-02-21 05:21:07 +00:00
imm-ref-trait-object-literal.rs
imm-ref-trait-object-literal.stderr
imm-ref-trait-object.rs
imm-ref-trait-object.stderr
impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.rs
impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.stderr
impl-on-dyn-trait-with-implicit-static-bound.rs
impl-on-dyn-trait-with-implicit-static-bound.stderr Match end user facing unmatched backticks in compiler/ 2023-03-03 08:39:36 +01:00
impl-trait-missing-lifetime-gated.rs
impl-trait-missing-lifetime-gated.stderr
impl-trait-missing-lifetime.rs
impl-trait-missing-lifetime.stderr
impl-trait-return-trailing-semicolon.rs
impl-trait-return-trailing-semicolon.stderr
impl-trait-with-missing-bounds.rs
impl-trait-with-missing-bounds.stderr
impl-trait-with-missing-trait-bounds-in-arg.fixed
impl-trait-with-missing-trait-bounds-in-arg.rs
impl-trait-with-missing-trait-bounds-in-arg.stderr
import-trait-for-method-call.rs
import-trait-for-method-call.stderr Special-case item attributes in the suggestion output 2023-04-12 22:50:10 +00:00
inner_type2.rs
inner_type2.stderr
inner_type.fixed
inner_type.rs
inner_type.stderr
into-convert.rs
into-convert.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
into-str.rs
into-str.stderr
invalid-bin-op.rs
invalid-bin-op.stderr Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
issue-21673.rs
issue-21673.stderr
issue-51055-missing-semicolon-between-call-and-tuple.rs
issue-51055-missing-semicolon-between-call-and-tuple.stderr
issue-52820.fixed
issue-52820.rs
issue-52820.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
issue-53692.fixed
issue-53692.rs
issue-53692.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
issue-57672.rs
issue-59819.fixed
issue-59819.rs
issue-59819.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
issue-61226.fixed
issue-61226.rs
issue-61226.stderr
issue-61963.rs
issue-61963.stderr
issue-62843.rs
issue-62843.stderr
issue-64252-self-type.rs
issue-64252-self-type.stderr
issue-66968-suggest-sorted-words.rs
issue-66968-suggest-sorted-words.stderr
issue-68049-1.rs
issue-68049-1.stderr
issue-68049-2.rs
issue-68049-2.stderr
issue-71394-no-from-impl.rs
issue-71394-no-from-impl.stderr
issue-72766.rs
issue-72766.stderr
issue-79843-impl-trait-with-missing-bounds-on-async-fn.rs
issue-79843-impl-trait-with-missing-bounds-on-async-fn.stderr
issue-81098.rs
issue-81098.stderr
issue-81839.rs
issue-81839.stderr fix: improve the suggestion on future not awaited 2023-02-13 16:23:23 +01:00
issue-82361.fixed
issue-82361.rs
issue-82361.stderr
issue-82566-1.rs
issue-82566-1.stderr
issue-82566-2.rs
issue-82566-2.stderr
issue-83892.fixed
issue-83892.rs
issue-83892.stderr
issue-83943.fixed
issue-83943.rs
issue-83943.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
issue-84592.rs
issue-84592.stderr
issue-84700.rs
issue-84700.stderr
issue-84973-2.rs
issue-84973-2.stderr
issue-84973-blacklist.rs
issue-84973-blacklist.stderr Rollup merge of #110259 - ndrewxie:issue-109964-fix-gitstuff, r=cjgillot 2023-04-13 21:58:37 +02:00
issue-84973-negative.rs
issue-84973-negative.stderr
issue-84973.rs
issue-84973.stderr Specify what 'this' actually is 2023-02-21 05:21:07 +00:00
issue-85347.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
issue-85347.stderr diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
issue-85943-no-suggest-unsized-indirection-in-where-clause.rs
issue-85943-no-suggest-unsized-indirection-in-where-clause.stderr
issue-85945-check-where-clause-before-suggesting-unsized.rs
issue-85945-check-where-clause-before-suggesting-unsized.stderr
issue-86100-tuple-paren-comma.rs
issue-86100-tuple-paren-comma.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
issue-86667.rs
issue-86667.stderr
issue-88730.rs Change bindings_with_variant_name to deny-by-default 2023-01-20 02:26:12 -05:00
issue-88730.stderr Change bindings_with_variant_name to deny-by-default 2023-01-20 02:26:12 -05:00
issue-89064.rs
issue-89064.stderr diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
issue-89333.rs
issue-89333.stderr
issue-90213-expected-boxfuture-self-ice.rs
issue-90213-expected-boxfuture-self-ice.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
issue-90974.rs
issue-90974.stderr
issue-96223.rs
issue-96223.stderr Note predicate span on ImplDerivedObligation 2023-01-11 19:46:45 +00:00
issue-96555.rs
issue-96555.stderr
issue-97677.fixed
issue-97677.rs
issue-97677.stderr
issue-97704.fixed
issue-97704.rs
issue-97704.stderr
issue-97760.rs
issue-97760.stderr Bless UI tests. 2023-03-27 14:56:59 +02:00
issue-98500.rs
issue-98500.stderr
issue-99080.rs
issue-99080.stderr
issue-99240-2.rs
issue-99240-2.stderr
issue-99240.rs
issue-99240.stderr
issue-101065.fixed
issue-101065.rs
issue-101065.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
issue-101421.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
issue-101421.stderr diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
issue-101465.rs
issue-101465.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
issue-101623.rs
issue-101623.stderr
issue-101984.rs
issue-101984.stderr Do not mention lifetime names in force trimmed paths 2023-01-30 20:12:21 +00:00
issue-102354.rs
issue-102354.stderr
issue-102892.rs
issue-102892.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
issue-103112.rs
issue-103112.stderr
issue-104086-suggest-let.rs
issue-104086-suggest-let.stderr
issue-104287.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
issue-104287.stderr diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
issue-104327.rs
issue-104327.stderr
issue-104328.rs
issue-104328.stderr
issue-104961.fixed fix #104961, Add parentheses properly for borrowing suggestion 2023-02-09 02:38:55 +00:00
issue-104961.rs fix #104961, Add parentheses properly for borrowing suggestion 2023-02-09 02:38:55 +00:00
issue-104961.stderr fix #104961, Add parentheses properly for borrowing suggestion 2023-02-09 02:38:55 +00:00
issue-105226.rs
issue-105226.stderr
issue-105494.rs
issue-105494.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
issue-105645.rs
issue-105645.stderr
issue-105761-suggest-self-for-closure.fixed Provide help on closures capturing self causing borrow checker errors 2023-01-12 20:17:25 +08:00
issue-105761-suggest-self-for-closure.rs Provide help on closures capturing self causing borrow checker errors 2023-01-12 20:17:25 +08:00
issue-105761-suggest-self-for-closure.stderr Provide help on closures capturing self causing borrow checker errors 2023-01-12 20:17:25 +08:00
issue-106443-sugg-clone-for-arg.rs
issue-106443-sugg-clone-for-arg.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
issue-106443-sugg-clone-for-bound.rs
issue-106443-sugg-clone-for-bound.stderr
issue-107860.rs Use the correct bound vars in return type suggestion. 2023-03-05 16:08:06 +00:00
issue-107860.stderr Use the correct bound vars in return type suggestion. 2023-03-05 16:08:06 +00:00
issue-108470.fixed Fix bad suggestion for clone/is_some in field init shorthand 2023-03-24 19:52:34 +08:00
issue-108470.rs Fix bad suggestion for clone/is_some in field init shorthand 2023-03-24 19:52:34 +08:00
issue-108470.stderr Fix bad suggestion for clone/is_some in field init shorthand 2023-03-24 19:52:34 +08:00
issue-109291.rs Fix issue when there are multiple candidates for edit_distance_with_substrings 2023-03-20 22:48:26 +08:00
issue-109291.stderr Fix issue when there are multiple candidates for edit_distance_with_substrings 2023-03-20 22:48:26 +08:00
issue-109396.rs Avoid ICE of attempt to add with overflow in emitter 2023-03-21 01:23:28 +08:00
issue-109396.stderr Don't leave a comma at the start of argument list when removing arguments 2023-03-30 17:26:12 +00:00
issue-109436.rs Fixes #109436: add parentheses properly 2023-03-22 13:52:24 +08:00
issue-109436.stderr Fixes #109436: add parentheses properly 2023-03-22 13:52:24 +08:00
js-style-comparison-op-separate-eq-token.rs
js-style-comparison-op-separate-eq-token.stderr
js-style-comparison-op.fixed
js-style-comparison-op.rs
js-style-comparison-op.stderr
late-bound-in-borrow-closure-sugg.rs Liberate late-bound regions correctly 2023-01-25 19:26:53 +00:00
late-bound-in-borrow-closure-sugg.stderr Suggest mutable borrows correctly 2023-01-25 19:37:10 +00:00
let-binding-init-expr-as-ty.rs
let-binding-init-expr-as-ty.stderr When suggesting writing a fully qualified path probe for appropriate types 2023-01-11 21:30:10 +00:00
many-type-ascription.rs
many-type-ascription.stderr
match-ergonomics.rs
match-ergonomics.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
match-needing-semi.rs
match-needing-semi.stderr
match-prev-arm-needing-semi.rs fix: improve the suggestion on future not awaited 2023-02-13 16:23:23 +01:00
match-prev-arm-needing-semi.stderr fix: improve the suggestion on future not awaited 2023-02-13 16:23:23 +01:00
match-with-different-arm-types-as-stmt-instead-of-expr.rs
match-with-different-arm-types-as-stmt-instead-of-expr.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
method-access-to-range-literal-typo.fixed
method-access-to-range-literal-typo.rs
method-access-to-range-literal-typo.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
method-missing-parentheses.rs
method-missing-parentheses.stderr
mismatched-types-numeric-from.rs
mismatched-types-numeric-from.stderr
missing-assoc-fn-applicable-suggestions.fixed
missing-assoc-fn-applicable-suggestions.rs
missing-assoc-fn-applicable-suggestions.stderr
missing-assoc-fn.rs
missing-assoc-fn.stderr
missing-assoc-type-bound-restriction.rs
missing-bound-in-derive-copy-impl-2.fixed
missing-bound-in-derive-copy-impl-2.rs
missing-bound-in-derive-copy-impl-2.stderr
missing-bound-in-derive-copy-impl-3.fixed may not => cannot 2023-03-08 00:00:18 +00:00
missing-bound-in-derive-copy-impl-3.rs may not => cannot 2023-03-08 00:00:18 +00:00
missing-bound-in-derive-copy-impl-3.stderr Dedup copy field errors for identical types 2023-03-08 00:00:19 +00:00
missing-bound-in-derive-copy-impl.rs may not => cannot 2023-03-08 00:00:18 +00:00
missing-bound-in-derive-copy-impl.stderr Dedup copy field errors for identical types 2023-03-08 00:00:19 +00:00
missing-bound-in-manual-copy-impl-2.fixed may not => cannot 2023-03-08 00:00:18 +00:00
missing-bound-in-manual-copy-impl-2.rs may not => cannot 2023-03-08 00:00:18 +00:00
missing-bound-in-manual-copy-impl-2.stderr may not => cannot 2023-03-08 00:00:18 +00:00
missing-bound-in-manual-copy-impl.fixed may not => cannot 2023-03-08 00:00:18 +00:00
missing-bound-in-manual-copy-impl.rs may not => cannot 2023-03-08 00:00:18 +00:00
missing-bound-in-manual-copy-impl.stderr may not => cannot 2023-03-08 00:00:18 +00:00
missing-lifetime-in-assoc-const-type.rs
missing-lifetime-in-assoc-const-type.stderr
missing-lifetime-specifier.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
missing-lifetime-specifier.stderr diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
missing-lt-for-hrtb.rs
missing-lt-for-hrtb.stderr
missing-trait-item.fixed
missing-trait-item.rs
missing-trait-item.stderr
missing-type-param-used-in-param.fixed
missing-type-param-used-in-param.rs
missing-type-param-used-in-param.stderr diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
move-generic-to-trait-in-method-with-params.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
move-generic-to-trait-in-method-with-params.stderr diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
multibyte-escapes.rs
multibyte-escapes.stderr
multiline-multipart-suggestion.rs Properly colorize multi-part suggestions in the same line 2023-03-04 00:29:52 +00:00
multiline-multipart-suggestion.stderr Properly colorize multi-part suggestions in the same line 2023-03-04 00:29:52 +00:00
mut-borrow-needed-by-trait.rs
mut-borrow-needed-by-trait.stderr check for write macro and write_fmt with err msg 2023-03-27 21:01:23 -04:00
mut-ref-reassignment.rs
mut-ref-reassignment.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
negative-literal-index.fixed
negative-literal-index.rs
negative-literal-index.stderr
nested-non-tuple-tuple-struct.rs
nested-non-tuple-tuple-struct.stderr
no-extern-crate-in-type.rs
no-extern-crate-in-type.stderr Special-case item attributes in the suggestion output 2023-04-12 22:50:10 +00:00
non-existent-field-present-in-subfield-recursion-limit.rs
non-existent-field-present-in-subfield-recursion-limit.stderr
non-existent-field-present-in-subfield.fixed
non-existent-field-present-in-subfield.rs
non-existent-field-present-in-subfield.stderr
object-unsafe-trait-references-self.rs
object-unsafe-trait-references-self.stderr
object-unsafe-trait-should-use-self.rs
object-unsafe-trait-should-use-self.stderr
object-unsafe-trait-should-use-where-sized.fixed
object-unsafe-trait-should-use-where-sized.rs
object-unsafe-trait-should-use-where-sized.stderr
opaque-type-error.rs
opaque-type-error.stderr fix: improve the suggestion on future not awaited 2023-02-13 16:23:23 +01:00
option-content-move2.rs
option-content-move2.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
option-content-move-from-tuple-match.rs
option-content-move-from-tuple-match.stderr
option-content-move.rs
option-content-move.stderr
option-to-bool.rs
option-to-bool.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
parenthesized-deref-suggestion.rs
parenthesized-deref-suggestion.stderr
path-by-value.rs
path-by-value.stderr
path-display.rs
path-display.stderr
pattern-slice-vec.fixed
pattern-slice-vec.rs
pattern-slice-vec.stderr
pattern-struct-with-slice-vec-field.rs
pattern-struct-with-slice-vec-field.stderr
private-field.rs
private-field.stderr
raw-byte-string-prefix.rs
raw-byte-string-prefix.stderr
raw-name-use-suggestion.rs
raw-name-use-suggestion.stderr Special-case item attributes in the suggestion output 2023-04-12 22:50:10 +00:00
recover-from-semicolon-trailing-item.rs
recover-from-semicolon-trailing-item.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
recover-invalid-float-invalid.rs Fix invalid float literal suggestions when recovering an integer 2023-01-30 13:39:25 -08:00
recover-invalid-float-invalid.stderr Fix invalid float literal suggestions when recovering an integer 2023-01-30 13:39:25 -08:00
recover-invalid-float.fixed
recover-invalid-float.rs
recover-invalid-float.stderr
recover-missing-turbofish-surrounding-angle-braket.rs
recover-missing-turbofish-surrounding-angle-braket.stderr
ref-pattern-binding.fixed
ref-pattern-binding.rs
ref-pattern-binding.stderr Shrink binding span. 2023-04-03 15:59:21 +00:00
removal-of-multiline-trait-bound-in-where-clause.rs
removal-of-multiline-trait-bound-in-where-clause.stderr
remove-as_str.rs
remove-as_str.stderr Tweak use of trimmed paths 2023-01-30 20:12:21 +00:00
restrict-existing-type-bounds.rs Modify existing bounds if they exist 2023-02-06 11:26:36 -08:00
restrict-existing-type-bounds.stderr Modify existing bounds if they exist 2023-02-06 11:26:36 -08:00
restrict-type-argument.rs
restrict-type-argument.stderr
restrict-type-not-param.rs
restrict-type-not-param.stderr
return-bindings-multi.rs
return-bindings-multi.stderr
return-bindings.rs
return-bindings.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
return-closures.rs
return-closures.stderr
return-cycle-2.rs
return-cycle-2.stderr
return-cycle.rs
return-cycle.stderr
return-elided-lifetime.rs
return-elided-lifetime.stderr
return-without-lifetime.rs
return-without-lifetime.stderr
shadowed-lplace-method-2.rs
shadowed-lplace-method-2.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
shadowed-lplace-method.fixed
shadowed-lplace-method.rs
shadowed-lplace-method.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
slice-issue-87994.rs
slice-issue-87994.stderr
struct-field-type-including-single-colon.rs
struct-field-type-including-single-colon.stderr
struct-initializer-comma.fixed
struct-initializer-comma.rs
struct-initializer-comma.stderr
sugg_with_positional_args_and_debug_fmt.rs
sugg_with_positional_args_and_debug_fmt.stderr
sugg-else-for-closure.fixed
sugg-else-for-closure.rs
sugg-else-for-closure.stderr diagnostics: update test cases to refer to assoc fn with self as method 2023-02-22 08:40:47 -07:00
suggest_print_over_printf.rs
suggest_print_over_printf.stderr
suggest-add-self.rs
suggest-add-self.stderr
suggest-adding-reference-to-trait-assoc-item.fixed
suggest-adding-reference-to-trait-assoc-item.rs
suggest-adding-reference-to-trait-assoc-item.stderr
suggest-assoc-fn-call-deref.fixed
suggest-assoc-fn-call-deref.rs
suggest-assoc-fn-call-deref.stderr
suggest-assoc-fn-call-with-turbofish-placeholder.rs
suggest-assoc-fn-call-with-turbofish-placeholder.stderr
suggest-assoc-fn-call-with-turbofish-through-deref.rs
suggest-assoc-fn-call-with-turbofish-through-deref.stderr
suggest-assoc-fn-call-with-turbofish.fixed
suggest-assoc-fn-call-with-turbofish.rs
suggest-assoc-fn-call-with-turbofish.stderr
suggest-blanket-impl-local-trait.rs
suggest-blanket-impl-local-trait.stderr
suggest-borrow-to-dyn-object.rs
suggest-borrow-to-dyn-object.stderr
suggest-box.fixed
suggest-box.rs
suggest-box.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
suggest-call-on-pat-mismatch.rs Suggest fn call on pattern type mismatch 2023-02-10 18:18:08 +00:00
suggest-call-on-pat-mismatch.stderr Suggest fn call on pattern type mismatch 2023-02-10 18:18:08 +00:00
suggest-change-mut.rs
suggest-change-mut.stderr
suggest-closure-return-type-1.rs
suggest-closure-return-type-1.stderr
suggest-closure-return-type-2.rs
suggest-closure-return-type-2.stderr
suggest-closure-return-type-3.rs
suggest-closure-return-type-3.stderr
suggest-dereferencing-index.fixed
suggest-dereferencing-index.rs
suggest-dereferencing-index.stderr
suggest-fn-ptr-for-fn-item-in-fn-ret.fixed Make const/fn return params more suggestable 2023-02-03 21:37:41 +00:00
suggest-fn-ptr-for-fn-item-in-fn-ret.rs Make const/fn return params more suggestable 2023-02-03 21:37:41 +00:00
suggest-fn-ptr-for-fn-item-in-fn-ret.stderr Make const/fn return params more suggestable 2023-02-03 21:37:41 +00:00
suggest-full-enum-variant-for-local-module.rs
suggest-full-enum-variant-for-local-module.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
suggest-imm-mut-trait-implementations.rs
suggest-imm-mut-trait-implementations.stderr
suggest-impl-trait-lifetime.fixed
suggest-impl-trait-lifetime.rs
suggest-impl-trait-lifetime.stderr
suggest-labels.rs
suggest-labels.stderr
suggest-let-for-assignment.fixed
suggest-let-for-assignment.rs
suggest-let-for-assignment.stderr
suggest-methods.rs
suggest-methods.stderr
suggest-move-lifetimes.rs
suggest-move-lifetimes.stderr
suggest-move-types.rs
suggest-move-types.stderr
suggest-mut-method-for-loop-hashmap.fixed
suggest-mut-method-for-loop-hashmap.rs
suggest-mut-method-for-loop-hashmap.stderr
suggest-mut-method-for-loop.rs
suggest-mut-method-for-loop.stderr
suggest-on-bare-closure-call.rs
suggest-on-bare-closure-call.stderr
suggest-pin-macro.rs Added diagnostic for pin! macro in addition to Box::pin if Unpin isn't implemented 2023-04-12 18:03:11 -04:00
suggest-pin-macro.stderr Added diagnostic for pin! macro in addition to Box::pin if Unpin isn't implemented 2023-04-12 18:03:11 -04:00
suggest-ref-macro.rs
suggest-ref-macro.stderr
suggest-ref-mut.rs
suggest-ref-mut.stderr
suggest-remove-deref.fixed Fix #106496, suggest remove deref for type mismatch 2023-01-23 00:42:20 +08:00
suggest-remove-deref.rs Fix #106496, suggest remove deref for type mismatch 2023-01-23 00:42:20 +08:00
suggest-remove-deref.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
suggest-remove-refs-1.fixed
suggest-remove-refs-1.rs
suggest-remove-refs-1.stderr Make &-removal suggestion verbose 2023-01-11 21:38:54 +00:00
suggest-remove-refs-2.fixed
suggest-remove-refs-2.rs
suggest-remove-refs-2.stderr Make &-removal suggestion verbose 2023-01-11 21:38:54 +00:00
suggest-remove-refs-3.fixed
suggest-remove-refs-3.rs
suggest-remove-refs-3.stderr Make &-removal suggestion verbose 2023-01-11 21:38:54 +00:00
suggest-remove-refs-4.fixed Make &-removal suggestion verbose 2023-01-11 21:38:54 +00:00
suggest-remove-refs-4.rs Make &-removal suggestion verbose 2023-01-11 21:38:54 +00:00
suggest-remove-refs-4.stderr Make &-removal suggestion verbose 2023-01-11 21:38:54 +00:00
suggest-remove-refs-5.fixed Use the root trait predicate to determine whether to remove references 2023-01-11 21:39:07 +00:00
suggest-remove-refs-5.rs Use the root trait predicate to determine whether to remove references 2023-01-11 21:39:07 +00:00
suggest-remove-refs-5.stderr Use the root trait predicate to determine whether to remove references 2023-01-11 21:39:07 +00:00
suggest-ret-on-async-w-late.rs Pass the right HIR back from get_fn_decl 2023-03-17 15:39:05 +00:00
suggest-ret-on-async-w-late.stderr Pass the right HIR back from get_fn_decl 2023-03-17 15:39:05 +00:00
suggest-semicolon-for-fn-in-extern-block.fixed
suggest-semicolon-for-fn-in-extern-block.rs
suggest-semicolon-for-fn-in-extern-block.stderr
suggest-split-at-mut.rs
suggest-split-at-mut.stderr
suggest-std-when-using-type.fixed
suggest-std-when-using-type.rs
suggest-std-when-using-type.stderr
suggest-swapping-self-ty-and-trait-edition-2021.rs
suggest-swapping-self-ty-and-trait-edition-2021.stderr
suggest-swapping-self-ty-and-trait.rs
suggest-swapping-self-ty-and-trait.stderr
suggest-trait-in-ufcs-in-hrtb.rs Erase **all** regions when probing for associated types in astconv 2023-02-28 17:29:46 +00:00
suggest-trait-in-ufcs-in-hrtb.stderr Erase **all** regions when probing for associated types in astconv 2023-02-28 17:29:46 +00:00
suggest-trait-items.rs
suggest-trait-items.stderr
suggest-tryinto-edition-change.rs
suggest-tryinto-edition-change.stderr Special-case item attributes in the suggestion output 2023-04-12 22:50:10 +00:00
suggest-using-chars.rs Tweak use of trimmed paths 2023-01-30 20:12:21 +00:00
suggest-using-chars.stderr Tweak use of trimmed paths 2023-01-30 20:12:21 +00:00
suggest-variants.rs
suggest-variants.stderr
too-many-field-suggestions.rs
too-many-field-suggestions.stderr
trait-hidden-method.rs Don't suggest #[doc(hidden)] methods 2023-02-15 12:31:38 +00:00
trait-hidden-method.stderr Don't suggest #[doc(hidden)] methods 2023-02-15 12:31:38 +00:00
trait-with-missing-associated-type-restriction-fixable.fixed
trait-with-missing-associated-type-restriction-fixable.rs
trait-with-missing-associated-type-restriction-fixable.stderr
trait-with-missing-associated-type-restriction.rs
trait-with-missing-associated-type-restriction.stderr diagnostics: update test cases to refer to assoc fn with self as method 2023-02-22 08:40:47 -07:00
try-operator-dont-suggest-semicolon.rs
try-operator-dont-suggest-semicolon.stderr
try-removing-the-field.rs
try-removing-the-field.stderr
type-ascription-and-other-error.rs
type-ascription-and-other-error.stderr
type-ascription-instead-of-let.rs
type-ascription-instead-of-let.stderr
type-ascription-instead-of-method.fixed
type-ascription-instead-of-method.rs
type-ascription-instead-of-method.stderr
type-ascription-instead-of-path-2.fixed
type-ascription-instead-of-path-2.rs
type-ascription-instead-of-path-2.stderr
type-ascription-instead-of-path-in-type.rs
type-ascription-instead-of-path-in-type.stderr diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
type-ascription-instead-of-path.rs
type-ascription-instead-of-path.stderr
type-ascription-instead-of-variant.fixed
type-ascription-instead-of-variant.rs
type-ascription-instead-of-variant.stderr
type-mismatch-byte-literal.rs Fix problem noticed in PR106859 with char -> u8 suggestion 2023-02-06 21:48:10 +00:00
type-mismatch-byte-literal.stderr Fix problem noticed in PR106859 with char -> u8 suggestion 2023-02-06 21:48:10 +00:00
type-mismatch-struct-field-shorthand-2.rs
type-mismatch-struct-field-shorthand-2.stderr
type-mismatch-struct-field-shorthand.fixed
type-mismatch-struct-field-shorthand.rs
type-mismatch-struct-field-shorthand.stderr
type-not-found-in-adt-field.rs
type-not-found-in-adt-field.stderr Render missing generics suggestion verbosely 2023-01-12 22:04:30 +00:00
undeclared-module-alloc.rs
undeclared-module-alloc.stderr
unnamable-types.rs
unnamable-types.stderr
unnecessary_dot_for_floating_point_literal.rs
unnecessary_dot_for_floating_point_literal.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
unsized-function-parameter.fixed
unsized-function-parameter.rs
unsized-function-parameter.stderr
unused-closure-argument.rs
unused-closure-argument.stderr
use-placement-resolve.fixed
use-placement-resolve.rs
use-placement-resolve.stderr Special-case item attributes in the suggestion output 2023-04-12 22:50:10 +00:00
use-placement-typeck.fixed
use-placement-typeck.rs
use-placement-typeck.stderr Special-case item attributes in the suggestion output 2023-04-12 22:50:10 +00:00
use-type-argument-instead-of-assoc-type.rs diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
use-type-argument-instead-of-assoc-type.stderr diagnostics: remove inconsistent English article "this" from E0107 2023-02-23 10:27:06 -07:00
while-let-typo.rs
while-let-typo.stderr