rust/src/test/ui/suggestions
bors 753e569c9c Auto merge of #90207 - BoxyUwU:stabilise_cg_defaults, r=lcnr
Stabilise `feature(const_generics_defaults)`

`feature(const_generics_defaults)` is complete implementation wise and has a pretty extensive test suite so I think is ready for stabilisation.

needs stabilisation report and maybe an RFC 😅

r? `@lcnr`
cc `@rust-lang/project-const-generics`
2021-12-12 14:24:23 +00:00
..
auxiliary
dont-suggest-ref
lifetimes Tweak wording 2021-12-10 03:08:25 +00:00
adt-param-with-implicit-sized-bound.rs
adt-param-with-implicit-sized-bound.stderr
as-ref-2.fixed
as-ref-2.rs
as-ref-2.stderr
as-ref.rs
as-ref.stderr
assoc-const-as-field.rs
assoc-const-as-field.stderr
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 Update .stderr files 2021-12-02 16:12:25 -08:00
attribute-typos.rs
attribute-typos.stderr
borrow-for-loop-head.rs
borrow-for-loop-head.stderr
bound-suggestions.fixed
bound-suggestions.rs
bound-suggestions.stderr
box-future-wrong-output.rs
box-future-wrong-output.stderr
boxed-variant-field.rs Update test output. 2021-11-16 19:57:12 +01:00
boxed-variant-field.stderr Update test output. 2021-11-16 19:57:12 +01:00
chain-method-call-mutation-in-place.rs
chain-method-call-mutation-in-place.stderr
const-in-struct-pat.rs
const-in-struct-pat.stderr
const-no-type.rs
const-no-type.stderr
const-pat-non-exaustive-let-new-var.rs
const-pat-non-exaustive-let-new-var.stderr
constrain-trait.fixed
constrain-trait.rs
constrain-trait.stderr
core-std-import-order-issue-83564.rs
core-std-import-order-issue-83564.stderr
count2len.rs Recommend fix count() -> len() on slices 2021-12-06 20:33:23 -07:00
count2len.stderr Recommend fix count() -> len() on slices 2021-12-06 20:33:23 -07:00
crate-or-module-typo.rs
crate-or-module-typo.stderr
derive-macro-missing-bounds.rs Keep spans for generics in #[derive(_)] desugaring 2021-12-03 18:41:39 +00:00
derive-macro-missing-bounds.stderr Modify bounds_span to ignore bounds coming from a derive macro 2021-12-03 18:41:39 +00:00
derive-trait-for-method-call.rs
derive-trait-for-method-call.stderr
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
dont-suggest-try_into-in-macros.rs
dont-suggest-try_into-in-macros.stderr
expected-boxed-future-isnt-pinned.rs
expected-boxed-future-isnt-pinned.stderr Update test outputs 2021-11-23 10:34:17 -08:00
field-access.fixed
field-access.rs
field-access.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 Update test outputs 2021-11-23 10:34:17 -08:00
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
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
if-let-typo.rs
if-let-typo.stderr On type mismatch caused by assignment, point at assignee 2021-11-25 18:04:33 +00: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
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.nll.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 Tweak wording 2021-12-10 03:08:25 +00:00
impl-on-dyn-trait-with-implicit-static-bound.fixed
impl-on-dyn-trait-with-implicit-static-bound.nll.stderr
impl-on-dyn-trait-with-implicit-static-bound.rs
impl-on-dyn-trait-with-implicit-static-bound.stderr Tweak wording 2021-12-10 03:08:25 +00:00
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
into-str.rs
into-str.stderr
invalid-bin-op.rs
invalid-bin-op.stderr
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.rs
issue-52820.stderr
issue-57672.rs
issue-59819.fixed
issue-59819.rs
issue-59819.stderr
issue-61226.fixed
issue-61226.rs
issue-61226.stderr
issue-61963.rs
issue-61963.stderr
issue-62843.rs
issue-62843.stderr Point at source of trait bound obligations in more places 2021-11-20 18:54:31 +00:00
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 Do not mention associated items when they introduce an obligation 2021-11-20 19:19:31 +00:00
issue-72766.rs
issue-72766.stderr Do not mention associated items when they introduce an obligation 2021-11-20 19:19:31 +00:00
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 Print output ty for opaque future ty 2021-11-18 13:19:18 -08: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
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
issue-84973-negative.rs
issue-84973-negative.stderr
issue-84973.rs
issue-84973.stderr Point at source of trait bound obligations in more places 2021-11-20 18:54:31 +00:00
issue-85347.rs
issue-85347.stderr
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 Tweak assoc type obligation spans 2021-12-11 02:32:15 +00:00
issue-85945-check-where-clause-before-suggesting-unsized.stderr
issue-86100-tuple-paren-comma.rs
issue-86100-tuple-paren-comma.stderr
issue-86667.rs
issue-86667.stderr
issue-88730.rs
issue-88730.stderr
issue-89333.rs
issue-89333.stderr
issue-90213-expected-boxfuture-self-ice.rs
issue-90213-expected-boxfuture-self-ice.stderr
issue-90974.rs Avoid suggesting literal formatting that turns into member access 2021-11-17 17:23:15 -07:00
issue-90974.stderr Avoid suggesting literal formatting that turns into member access 2021-11-17 17:23:15 -07: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
let-binding-init-expr-as-ty.rs
let-binding-init-expr-as-ty.stderr
match-ergonomics.rs
match-ergonomics.stderr
match-needing-semi.rs
match-needing-semi.stderr
match-prev-arm-needing-semi.rs Print output ty for opaque future ty 2021-11-18 13:19:18 -08:00
match-prev-arm-needing-semi.stderr Print output ty for opaque future ty 2021-11-18 13:19:18 -08:00
match-with-different-arm-types-as-stmt-instead-of-expr.rs
match-with-different-arm-types-as-stmt-instead-of-expr.stderr
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-lifetime-in-assoc-const-type.rs
missing-lifetime-in-assoc-const-type.stderr
missing-lifetime-specifier.rs
missing-lifetime-specifier.stderr
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
multibyte-escapes.rs
multibyte-escapes.stderr
mut-borrow-needed-by-trait.rs
mut-borrow-needed-by-trait.stderr Point at source of trait bound obligations in more places 2021-11-20 18:54:31 +00:00
mut-ref-reassignment.rs
mut-ref-reassignment.stderr On type mismatch caused by assignment, point at assignee 2021-11-25 18:04:33 +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
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 Print output ty for opaque future ty 2021-11-18 13:19:18 -08:00
option-content-move2.rs
option-content-move2.stderr
option-content-move.fixed
option-content-move.rs
option-content-move.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
raw-byte-string-prefix.rs
raw-byte-string-prefix.stderr
raw-name-use-suggestion.rs
raw-name-use-suggestion.stderr
recover-from-semicolon-trailing-item.rs
recover-from-semicolon-trailing-item.stderr
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
remove-as_str.rs
remove-as_str.stderr
restrict-type-argument.rs
restrict-type-argument.stderr
return-elided-lifetime.rs
return-elided-lifetime.stderr
return-without-lifetime.rs
return-without-lifetime.stderr
slice-issue-87994.rs
slice-issue-87994.stderr Do not mention associated items when they introduce an obligation 2021-11-20 19:19:31 +00:00
struct-initializer-comma.fixed
struct-initializer-comma.rs
struct-initializer-comma.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.rs
suggest-assoc-fn-call-with-turbofish.stderr
suggest-box.fixed
suggest-box.rs
suggest-box.stderr
suggest-change-mut.rs
suggest-change-mut.stderr Point at source of trait bound obligations in more places 2021-11-20 18:54:31 +00:00
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-full-enum-variant-for-local-module.rs
suggest-full-enum-variant-for-local-module.stderr
suggest-imm-mut-trait-implementations.rs
suggest-imm-mut-trait-implementations.stderr
suggest-impl-trait-lifetime.fixed
suggest-impl-trait-lifetime.nll.stderr
suggest-impl-trait-lifetime.rs
suggest-impl-trait-lifetime.stderr
suggest-labels.rs
suggest-labels.stderr
suggest-methods.rs
suggest-methods.stderr
suggest-move-lifetimes.rs
suggest-move-lifetimes.stderr bless tests 2021-12-10 19:21:25 +00:00
suggest-move-types.rs
suggest-move-types.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-private-fields.rs
suggest-private-fields.stderr
suggest-ref-macro.rs
suggest-ref-macro.stderr
suggest-ref-mut.rs
suggest-ref-mut.stderr
suggest-remove-refs-1.fixed
suggest-remove-refs-1.rs
suggest-remove-refs-1.stderr Do not mention associated items when they introduce an obligation 2021-11-20 19:19:31 +00:00
suggest-remove-refs-2.fixed
suggest-remove-refs-2.rs
suggest-remove-refs-2.stderr Do not mention associated items when they introduce an obligation 2021-11-20 19:19:31 +00:00
suggest-remove-refs-3.fixed
suggest-remove-refs-3.rs
suggest-remove-refs-3.stderr Do not mention associated items when they introduce an obligation 2021-11-20 19:19:31 +00:00
suggest-semicolon-for-fn-in-extern-block.fixed Expect extern fn with no body when parsing 2021-12-06 11:16:46 -07:00
suggest-semicolon-for-fn-in-extern-block.rs Expect extern fn with no body when parsing 2021-12-06 11:16:46 -07:00
suggest-semicolon-for-fn-in-extern-block.stderr Expect extern fn with no body when parsing 2021-12-06 11:16:46 -07:00
suggest-split-at-mut.rs
suggest-split-at-mut.stderr
suggest-std-when-using-type.rs
suggest-std-when-using-type.stderr
suggest-trait-items.rs
suggest-trait-items.stderr
suggest-tryinto-edition-change.rs
suggest-tryinto-edition-change.stderr
suggest-variants.rs
suggest-variants.stderr
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
try-operator-dont-suggest-semicolon.rs
try-operator-dont-suggest-semicolon.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.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-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
undeclared-module-alloc.rs
undeclared-module-alloc.stderr
unnamable-types.rs
unnamable-types.stderr
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
use-placement-typeck.fixed
use-placement-typeck.rs
use-placement-typeck.stderr
use-type-argument-instead-of-assoc-type.rs
use-type-argument-instead-of-assoc-type.stderr