Skip to content

Commit 617b87f

Browse files
authored
Rollup merge of rust-lang#77925 - JohnTitor:sugg-min-features, r=davidtwco,oli-obk
Suggest minimal subset features in `incomplete_features` lint This tells users that we have a minimal subset feature of it and they can fix the lint warning without allowing it. The wording improvement is helpful :) Fixes rust-lang#77913
2 parents 2476b26 + f7150be commit 617b87f

File tree

88 files changed

+95
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+95
-0
lines changed

compiler/rustc_lint/src/builtin.rs

+8
Original file line numberDiff line numberDiff line change
@@ -2288,12 +2288,20 @@ impl EarlyLintPass for IncompleteFeatures {
22882288
n, n,
22892289
));
22902290
}
2291+
if HAS_MIN_FEATURES.contains(&name) {
2292+
builder.help(&format!(
2293+
"consider using `min_{}` instead, which is more stable and complete",
2294+
name,
2295+
));
2296+
}
22912297
builder.emit();
22922298
})
22932299
});
22942300
}
22952301
}
22962302

2303+
const HAS_MIN_FEATURES: &[Symbol] = &[sym::const_generics, sym::specialization];
2304+
22972305
declare_lint! {
22982306
/// The `invalid_value` lint detects creating a value that is not valid,
22992307
/// such as a NULL reference.

src/test/ui/array-slice-vec/match_arr_unknown_len.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(const_generics)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9+
= help: consider using `min_const_generics` instead, which is more stable and complete
910

1011
error[E0308]: mismatched types
1112
--> $DIR/match_arr_unknown_len.rs:6:9

src/test/ui/associated-types/defaults-specialization.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(associated_type_defaults, specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
error[E0053]: method `make` has an incompatible type for trait
1112
--> $DIR/defaults-specialization.rs:19:18

src/test/ui/binding/const-param.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(const_generics)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9+
= help: consider using `min_const_generics` instead, which is more stable and complete
910

1011
error[E0158]: const parameters cannot be referenced in patterns
1112
--> $DIR/const-param.rs:7:9

src/test/ui/coherence/coherence-inherited-assoc-ty-cycle-err.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
error[E0391]: cycle detected when building specialization graph of trait `Trait`
1112
--> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:9:1

src/test/ui/const-generics/defaults/wrong-order.full.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ LL | #![cfg_attr(full, feature(const_generics))]
1414
|
1515
= note: `#[warn(incomplete_features)]` on by default
1616
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
17+
= help: consider using `min_const_generics` instead, which is more stable and complete
1718

1819
error: aborting due to previous error; 1 warning emitted
1920

src/test/ui/const-generics/issues/issue-56445.full.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![cfg_attr(full, feature(const_generics))]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9+
= help: consider using `min_const_generics` instead, which is more stable and complete
910

1011
error[E0771]: use of non-static lifetime `'a` in const generic
1112
--> $DIR/issue-56445.rs:9:26

src/test/ui/const-generics/issues/issue-60818-struct-constructors.full.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![cfg_attr(full, feature(const_generics))]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9+
= help: consider using `min_const_generics` instead, which is more stable and complete
910

1011
warning: 1 warning emitted
1112

src/test/ui/const-generics/issues/issue-61336-1.full.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![cfg_attr(full, feature(const_generics))]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9+
= help: consider using `min_const_generics` instead, which is more stable and complete
910

1011
warning: 1 warning emitted
1112

src/test/ui/const-generics/issues/issue-61336-2.full.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![cfg_attr(full, feature(const_generics))]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9+
= help: consider using `min_const_generics` instead, which is more stable and complete
910

1011
error[E0277]: the trait bound `T: Copy` is not satisfied
1112
--> $DIR/issue-61336-2.rs:10:5

src/test/ui/const-generics/issues/issue-61336.full.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![cfg_attr(full, feature(const_generics))]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9+
= help: consider using `min_const_generics` instead, which is more stable and complete
910

1011
error[E0277]: the trait bound `T: Copy` is not satisfied
1112
--> $DIR/issue-61336.rs:10:5

src/test/ui/const-generics/issues/issue-61422.full.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![cfg_attr(full, feature(const_generics))]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9+
= help: consider using `min_const_generics` instead, which is more stable and complete
910

1011
warning: 1 warning emitted
1112

src/test/ui/const-generics/issues/issue-61432.full.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![cfg_attr(full, feature(const_generics))]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9+
= help: consider using `min_const_generics` instead, which is more stable and complete
910

1011
warning: 1 warning emitted
1112

src/test/ui/const-generics/issues/issue-61747.full.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![cfg_attr(full, feature(const_generics))]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9+
= help: consider using `min_const_generics` instead, which is more stable and complete
910

1011
error: constant expression depends on a generic parameter
1112
--> $DIR/issue-61747.rs:8:23

src/test/ui/const-generics/occurs-check/unify-fixpoint.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(const_generics)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9+
= help: consider using `min_const_generics` instead, which is more stable and complete
910

1011
error: constant expression depends on a generic parameter
1112
--> $DIR/unify-fixpoint.rs:9:32

src/test/ui/consts/trait_specialization.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
warning: 1 warning emitted
1112

src/test/ui/error-codes/E0520.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
error[E0520]: `fly` specializes an item from a parent `impl`, but that item is not marked `default`
1112
--> $DIR/E0520.rs:17:5

src/test/ui/error-codes/E0730.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(const_generics)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9+
= help: consider using `min_const_generics` instead, which is more stable and complete
910

1011
error[E0730]: cannot pattern-match on an array without a fixed length
1112
--> $DIR/E0730.rs:6:9

src/test/ui/error-codes/E0771.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(const_generics)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9+
= help: consider using `min_const_generics` instead, which is more stable and complete
910

1011
error[E0771]: use of non-static lifetime `'a` in const generic
1112
--> $DIR/E0771.rs:4:41

src/test/ui/hygiene/generic_params.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(decl_macro, rustc_attrs, const_generics)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9+
= help: consider using `min_const_generics` instead, which is more stable and complete
910

1011
warning: 1 warning emitted
1112

src/test/ui/hygiene/issue-61574-const-parameters.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(const_generics)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9+
= help: consider using `min_const_generics` instead, which is more stable and complete
910

1011
warning: 1 warning emitted
1112

src/test/ui/impl-trait/equality-rpass.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
warning: 1 warning emitted
1112

src/test/ui/impl-trait/equality.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
error[E0308]: mismatched types
1112
--> $DIR/equality.rs:15:5

src/test/ui/impl-trait/equality2.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
error[E0308]: mismatched types
1112
--> $DIR/equality2.rs:25:18

src/test/ui/issues/issue-35376.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
warning: 1 warning emitted
1112

src/test/ui/issues/issue-55380.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
warning: 1 warning emitted
1112

src/test/ui/issues/issue-59508-1.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ LL | #![feature(const_generics)]
1212
|
1313
= note: `#[warn(incomplete_features)]` on by default
1414
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
15+
= help: consider using `min_const_generics` instead, which is more stable and complete
1516

1617
error: aborting due to previous error; 1 warning emitted
1718

src/test/ui/overlap-doesnt-conflict-with-specialization.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
warning: 1 warning emitted
1112

src/test/ui/parser/assoc-static-semantic-fail.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ LL | #![feature(specialization)]
170170
|
171171
= note: `#[warn(incomplete_features)]` on by default
172172
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
173+
= help: consider using `min_specialization` instead, which is more stable and complete
173174

174175
error: aborting due to 24 previous errors; 1 warning emitted
175176

src/test/ui/parser/default.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ LL | #![feature(specialization)]
3131
|
3232
= note: `#[warn(incomplete_features)]` on by default
3333
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
34+
= help: consider using `min_specialization` instead, which is more stable and complete
3435

3536
error[E0046]: not all trait items implemented, missing: `foo`
3637
--> $DIR/default.rs:22:1

src/test/ui/parser/trait-item-with-defaultness-fail-semantic.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ LL | #![feature(specialization)]
5454
|
5555
= note: `#[warn(incomplete_features)]` on by default
5656
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
57+
= help: consider using `min_specialization` instead, which is more stable and complete
5758

5859
error: aborting due to 6 previous errors; 1 warning emitted
5960

src/test/ui/polymorphization/const_parameters/closures.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(const_generics, rustc_attrs)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9+
= help: consider using `min_const_generics` instead, which is more stable and complete
910

1011
error: item has unused generic parameters
1112
--> $DIR/closures.rs:19:19

src/test/ui/polymorphization/const_parameters/functions.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(const_generics, rustc_attrs)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9+
= help: consider using `min_const_generics` instead, which is more stable and complete
910

1011
error: item has unused generic parameters
1112
--> $DIR/functions.rs:15:8

src/test/ui/polymorphization/generators.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(const_generics, generators, generator_trait, rustc_attrs)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9+
= help: consider using `min_const_generics` instead, which is more stable and complete
910

1011
error: item has unused generic parameters
1112
--> $DIR/generators.rs:36:5

src/test/ui/resolve/issue-65035-static-with-parent-generics.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ LL | #![feature(const_generics)]
4848
|
4949
= note: `#[warn(incomplete_features)]` on by default
5050
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
51+
= help: consider using `min_const_generics` instead, which is more stable and complete
5152

5253
error: aborting due to 5 previous errors; 1 warning emitted
5354

src/test/ui/rfc-2497-if-let-chains/disallowed-positions.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ LL | #![feature(const_generics)]
507507
|
508508
= note: `#[warn(incomplete_features)]` on by default
509509
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
510+
= help: consider using `min_const_generics` instead, which is more stable and complete
510511

511512
warning: the feature `let_chains` is incomplete and may not be safe to use and/or cause compiler crashes
512513
--> $DIR/disallowed-positions.rs:22:12

src/test/ui/specialization/assoc-ty-graph-cycle.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
warning: 1 warning emitted
1112

src/test/ui/specialization/cross-crate-defaults.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
warning: 1 warning emitted
1112

src/test/ui/specialization/deafult-associated-type-bound-1.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
error[E0277]: the trait bound `str: Clone` is not satisfied
1112
--> $DIR/deafult-associated-type-bound-1.rs:19:5

src/test/ui/specialization/deafult-associated-type-bound-2.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
error[E0277]: can't compare `&'static B` with `B`
1112
--> $DIR/deafult-associated-type-bound-2.rs:16:5

src/test/ui/specialization/deafult-generic-associated-type-bound.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
warning: the feature `generic_associated_types` is incomplete and may not be safe to use and/or cause compiler crashes
1112
--> $DIR/deafult-generic-associated-type-bound.rs:4:12

src/test/ui/specialization/defaultimpl/allowed-cross-crate.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
warning: 1 warning emitted
1112

src/test/ui/specialization/defaultimpl/out-of-order.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
warning: 1 warning emitted
1112

src/test/ui/specialization/defaultimpl/overlap-projection.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
warning: 1 warning emitted
1112

src/test/ui/specialization/defaultimpl/projection.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
warning: 1 warning emitted
1112

src/test/ui/specialization/defaultimpl/specialization-no-default.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
error[E0520]: `foo` specializes an item from a parent `impl`, but that item is not marked `default`
1112
--> $DIR/specialization-no-default.rs:20:5

src/test/ui/specialization/defaultimpl/specialization-trait-item-not-implemented-rpass.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
warning: 1 warning emitted
1112

src/test/ui/specialization/defaultimpl/specialization-trait-item-not-implemented.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | #![feature(specialization)]
66
|
77
= note: `#[warn(incomplete_features)]` on by default
88
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
= help: consider using `min_specialization` instead, which is more stable and complete
910

1011
error[E0046]: not all trait items implemented, missing: `foo_two`
1112
--> $DIR/specialization-trait-item-not-implemented.rs:18:1

0 commit comments

Comments
 (0)