mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
Auto merge of #86320 - hi-rustin:rustin-patch-fix-span, r=estebank
shrinking the deprecated span ref: https://github.com/rust-lang/rust/pull/85617#issuecomment-854947988 part of #85403 r? `@estebank` The reason is that if we use method_span directly, it will cause the in_derive_expansion judgment to fail.
This commit is contained in:
commit
955b9c0d4c
@ -226,18 +226,19 @@ fn late_report_deprecation(
|
||||
suggestion: Option<Symbol>,
|
||||
lint: &'static Lint,
|
||||
span: Span,
|
||||
method_span: Option<Span>,
|
||||
hir_id: HirId,
|
||||
def_id: DefId,
|
||||
) {
|
||||
if span.in_derive_expansion() {
|
||||
return;
|
||||
}
|
||||
|
||||
tcx.struct_span_lint_hir(lint, hir_id, span, |lint| {
|
||||
let method_span = method_span.unwrap_or(span);
|
||||
tcx.struct_span_lint_hir(lint, hir_id, method_span, |lint| {
|
||||
let mut diag = lint.build(message);
|
||||
if let hir::Node::Expr(_) = tcx.hir().get(hir_id) {
|
||||
let kind = tcx.def_kind(def_id).descr(def_id);
|
||||
deprecation_suggestion(&mut diag, kind, suggestion, span);
|
||||
deprecation_suggestion(&mut diag, kind, suggestion, method_span);
|
||||
}
|
||||
diag.emit()
|
||||
});
|
||||
@ -306,13 +307,13 @@ impl<'tcx> TyCtxt<'tcx> {
|
||||
let path = &with_no_trimmed_paths(|| self.def_path_str(def_id));
|
||||
let kind = self.def_kind(def_id).descr(def_id);
|
||||
let (message, lint) = deprecation_message(&depr_entry.attr, kind, path);
|
||||
let span = method_span.unwrap_or(span);
|
||||
late_report_deprecation(
|
||||
self,
|
||||
&message,
|
||||
depr_entry.attr.suggestion,
|
||||
lint,
|
||||
span,
|
||||
method_span,
|
||||
id,
|
||||
def_id,
|
||||
);
|
||||
|
@ -875,7 +875,8 @@ impl Visitor<'tcx> for Checker<'tcx> {
|
||||
|
||||
fn visit_path(&mut self, path: &'tcx hir::Path<'tcx>, id: hir::HirId) {
|
||||
if let Some(def_id) = path.res.opt_def_id() {
|
||||
self.tcx.check_stability(def_id, Some(id), path.span, None)
|
||||
let method_span = path.segments.last().map(|s| s.ident.span);
|
||||
self.tcx.check_stability(def_id, Some(id), path.span, method_span)
|
||||
}
|
||||
intravisit::walk_path(self, path)
|
||||
}
|
||||
|
@ -1,15 +1,14 @@
|
||||
error: use of deprecated function `deprecation_lint::deprecated_text`: text
|
||||
--> $DIR/deprecation-lint-3.rs:13:5
|
||||
--> $DIR/deprecation-lint-3.rs:13:28
|
||||
|
|
||||
LL | macro_test_arg_nested!(deprecated_text);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/deprecation-lint-3.rs:4:9
|
||||
|
|
||||
LL | #![deny(deprecated)]
|
||||
| ^^^^^^^^^^
|
||||
= note: this error originates in the macro `macro_test_arg_nested` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -11,16 +11,16 @@ LL | #![deny(deprecated)]
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated`: text
|
||||
--> $DIR/deprecation-lint.rs:21:9
|
||||
--> $DIR/deprecation-lint.rs:21:16
|
||||
|
|
||||
LL | Trait::trait_deprecated(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated`: text
|
||||
--> $DIR/deprecation-lint.rs:23:9
|
||||
--> $DIR/deprecation-lint.rs:23:25
|
||||
|
|
||||
LL | <Foo as Trait>::trait_deprecated(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated function `deprecation_lint::deprecated_text`: text
|
||||
--> $DIR/deprecation-lint.rs:25:9
|
||||
@ -29,16 +29,16 @@ LL | deprecated_text();
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/deprecation-lint.rs:30:9
|
||||
--> $DIR/deprecation-lint.rs:30:16
|
||||
|
|
||||
LL | ... Trait::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/deprecation-lint.rs:32:9
|
||||
--> $DIR/deprecation-lint.rs:32:25
|
||||
|
|
||||
LL | ... <Foo as Trait>::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated struct `deprecation_lint::DeprecatedStruct`: text
|
||||
--> $DIR/deprecation-lint.rs:34:17
|
||||
@ -53,10 +53,10 @@ LL | let _ = DeprecatedUnitStruct;
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated variant `deprecation_lint::Enum::DeprecatedVariant`: text
|
||||
--> $DIR/deprecation-lint.rs:40:17
|
||||
--> $DIR/deprecation-lint.rs:40:23
|
||||
|
|
||||
LL | let _ = Enum::DeprecatedVariant;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated struct `deprecation_lint::DeprecatedTupleStruct`: text
|
||||
--> $DIR/deprecation-lint.rs:42:17
|
||||
@ -65,28 +65,28 @@ LL | let _ = DeprecatedTupleStruct (1);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated struct `deprecation_lint::nested::DeprecatedStruct`: text
|
||||
--> $DIR/deprecation-lint.rs:44:17
|
||||
--> $DIR/deprecation-lint.rs:44:25
|
||||
|
|
||||
LL | let _ = nested::DeprecatedStruct {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated struct `deprecation_lint::nested::DeprecatedUnitStruct`: text
|
||||
--> $DIR/deprecation-lint.rs:48:17
|
||||
--> $DIR/deprecation-lint.rs:48:25
|
||||
|
|
||||
LL | let _ = nested::DeprecatedUnitStruct;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated variant `deprecation_lint::nested::Enum::DeprecatedVariant`: text
|
||||
--> $DIR/deprecation-lint.rs:50:17
|
||||
--> $DIR/deprecation-lint.rs:50:31
|
||||
|
|
||||
LL | ... let _ = nested::Enum::DeprecatedVariant;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated struct `deprecation_lint::nested::DeprecatedTupleStruct`: text
|
||||
--> $DIR/deprecation-lint.rs:52:17
|
||||
--> $DIR/deprecation-lint.rs:52:25
|
||||
|
|
||||
LL | ... let _ = nested::DeprecatedTupleStruct (1);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated function `deprecation_lint::deprecated_text`: text
|
||||
--> $DIR/deprecation-lint.rs:59:25
|
||||
@ -101,28 +101,28 @@ LL | macro_test_arg!(macro_test_arg!(deprecated_text()));
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated`: text
|
||||
--> $DIR/deprecation-lint.rs:65:9
|
||||
--> $DIR/deprecation-lint.rs:65:16
|
||||
|
|
||||
LL | Trait::trait_deprecated(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated`: text
|
||||
--> $DIR/deprecation-lint.rs:67:9
|
||||
--> $DIR/deprecation-lint.rs:67:25
|
||||
|
|
||||
LL | <Foo as Trait>::trait_deprecated(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/deprecation-lint.rs:69:9
|
||||
--> $DIR/deprecation-lint.rs:69:16
|
||||
|
|
||||
LL | ... Trait::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/deprecation-lint.rs:71:9
|
||||
--> $DIR/deprecation-lint.rs:71:25
|
||||
|
|
||||
LL | ... <Foo as Trait>::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated trait `deprecation_lint::DeprecatedTrait`: text
|
||||
--> $DIR/deprecation-lint.rs:81:10
|
||||
@ -173,10 +173,10 @@ LL | let Deprecated2
|
||||
| ^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated function `deprecation_lint::deprecated_mod::deprecated`: text
|
||||
--> $DIR/deprecation-lint.rs:162:9
|
||||
--> $DIR/deprecation-lint.rs:162:25
|
||||
|
|
||||
LL | deprecated_mod::deprecated();
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error: use of deprecated function `this_crate::deprecated`: text
|
||||
--> $DIR/deprecation-lint.rs:245:9
|
||||
@ -185,16 +185,16 @@ LL | deprecated();
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
|
||||
--> $DIR/deprecation-lint.rs:250:9
|
||||
--> $DIR/deprecation-lint.rs:250:16
|
||||
|
|
||||
LL | Trait::trait_deprecated(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
|
||||
--> $DIR/deprecation-lint.rs:252:9
|
||||
--> $DIR/deprecation-lint.rs:252:25
|
||||
|
|
||||
LL | <Foo as Trait>::trait_deprecated(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated function `this_crate::deprecated_text`: text
|
||||
--> $DIR/deprecation-lint.rs:254:9
|
||||
@ -203,16 +203,16 @@ LL | deprecated_text();
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated associated function `this_crate::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/deprecation-lint.rs:259:9
|
||||
--> $DIR/deprecation-lint.rs:259:16
|
||||
|
|
||||
LL | Trait::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated associated function `this_crate::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/deprecation-lint.rs:261:9
|
||||
--> $DIR/deprecation-lint.rs:261:25
|
||||
|
|
||||
LL | ... <Foo as Trait>::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated function `this_crate::deprecated_future`: text
|
||||
--> $DIR/deprecation-lint.rs:264:9
|
||||
@ -239,10 +239,10 @@ LL | let _ = DeprecatedUnitStruct;
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated unit variant `this_crate::Enum::DeprecatedVariant`: text
|
||||
--> $DIR/deprecation-lint.rs:274:17
|
||||
--> $DIR/deprecation-lint.rs:274:23
|
||||
|
|
||||
LL | let _ = Enum::DeprecatedVariant;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated tuple struct `this_crate::DeprecatedTupleStruct`: text
|
||||
--> $DIR/deprecation-lint.rs:276:17
|
||||
@ -251,52 +251,52 @@ LL | let _ = DeprecatedTupleStruct (1);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated struct `this_crate::nested::DeprecatedStruct`: text
|
||||
--> $DIR/deprecation-lint.rs:278:17
|
||||
--> $DIR/deprecation-lint.rs:278:25
|
||||
|
|
||||
LL | let _ = nested::DeprecatedStruct {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated unit struct `this_crate::nested::DeprecatedUnitStruct`: text
|
||||
--> $DIR/deprecation-lint.rs:283:17
|
||||
--> $DIR/deprecation-lint.rs:283:25
|
||||
|
|
||||
LL | let _ = nested::DeprecatedUnitStruct;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated unit variant `this_crate::nested::Enum::DeprecatedVariant`: text
|
||||
--> $DIR/deprecation-lint.rs:285:17
|
||||
--> $DIR/deprecation-lint.rs:285:31
|
||||
|
|
||||
LL | ... let _ = nested::Enum::DeprecatedVariant;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated tuple struct `this_crate::nested::DeprecatedTupleStruct`: text
|
||||
--> $DIR/deprecation-lint.rs:287:17
|
||||
--> $DIR/deprecation-lint.rs:287:25
|
||||
|
|
||||
LL | ... let _ = nested::DeprecatedTupleStruct (1);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
|
||||
--> $DIR/deprecation-lint.rs:292:9
|
||||
--> $DIR/deprecation-lint.rs:292:16
|
||||
|
|
||||
LL | Trait::trait_deprecated(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
|
||||
--> $DIR/deprecation-lint.rs:294:9
|
||||
--> $DIR/deprecation-lint.rs:294:25
|
||||
|
|
||||
LL | <Foo as Trait>::trait_deprecated(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated associated function `this_crate::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/deprecation-lint.rs:296:9
|
||||
--> $DIR/deprecation-lint.rs:296:16
|
||||
|
|
||||
LL | Trait::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated associated function `this_crate::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/deprecation-lint.rs:298:9
|
||||
--> $DIR/deprecation-lint.rs:298:25
|
||||
|
|
||||
LL | ... <Foo as Trait>::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: use of deprecated function `this_crate::test_fn_closure_body::{closure#0}::bar`
|
||||
--> $DIR/deprecation-lint.rs:316:13
|
||||
|
@ -21,8 +21,22 @@ impl Foo {
|
||||
fn replacement(&self) {}
|
||||
}
|
||||
|
||||
mod bar {
|
||||
#[rustc_deprecated(
|
||||
since = "1.0.0",
|
||||
reason = "replaced by `replacement`",
|
||||
suggestion = "replacement",
|
||||
)]
|
||||
#[stable(since = "1.0.0", feature = "test")]
|
||||
pub fn deprecated() {}
|
||||
|
||||
pub fn replacement() {}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let foo = Foo;
|
||||
|
||||
foo.replacement(); //~ ERROR use of deprecated
|
||||
|
||||
bar::replacement(); //~ ERROR use of deprecated
|
||||
}
|
||||
|
@ -21,8 +21,22 @@ impl Foo {
|
||||
fn replacement(&self) {}
|
||||
}
|
||||
|
||||
mod bar {
|
||||
#[rustc_deprecated(
|
||||
since = "1.0.0",
|
||||
reason = "replaced by `replacement`",
|
||||
suggestion = "replacement",
|
||||
)]
|
||||
#[stable(since = "1.0.0", feature = "test")]
|
||||
pub fn deprecated() {}
|
||||
|
||||
pub fn replacement() {}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let foo = Foo;
|
||||
|
||||
foo.deprecated(); //~ ERROR use of deprecated
|
||||
|
||||
bar::deprecated(); //~ ERROR use of deprecated
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
error: use of deprecated associated function `Foo::deprecated`: replaced by `replacement`
|
||||
--> $DIR/suggestion.rs:27:9
|
||||
error: use of deprecated function `bar::deprecated`: replaced by `replacement`
|
||||
--> $DIR/suggestion.rs:41:10
|
||||
|
|
||||
LL | foo.deprecated();
|
||||
| ^^^^^^^^^^ help: replace the use of the deprecated associated function: `replacement`
|
||||
LL | bar::deprecated();
|
||||
| ^^^^^^^^^^ help: replace the use of the deprecated function: `replacement`
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/suggestion.rs:7:9
|
||||
@ -10,5 +10,11 @@ note: the lint level is defined here
|
||||
LL | #![deny(deprecated)]
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
error: use of deprecated associated function `Foo::deprecated`: replaced by `replacement`
|
||||
--> $DIR/suggestion.rs:39:9
|
||||
|
|
||||
LL | foo.deprecated();
|
||||
| ^^^^^^^^^^ help: replace the use of the deprecated associated function: `replacement`
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
@ -11,16 +11,16 @@ LL | #![warn(deprecated)]
|
||||
| ^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `lint_stability::Trait::trait_deprecated`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:29:9
|
||||
--> $DIR/lint-stability-deprecated.rs:29:16
|
||||
|
|
||||
LL | Trait::trait_deprecated(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `lint_stability::Trait::trait_deprecated`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:31:9
|
||||
--> $DIR/lint-stability-deprecated.rs:31:25
|
||||
|
|
||||
LL | <Foo as Trait>::trait_deprecated(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated function `lint_stability::deprecated_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:33:9
|
||||
@ -29,16 +29,16 @@ LL | deprecated_text();
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `lint_stability::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:38:9
|
||||
--> $DIR/lint-stability-deprecated.rs:38:16
|
||||
|
|
||||
LL | ... Trait::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `lint_stability::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:40:9
|
||||
--> $DIR/lint-stability-deprecated.rs:40:25
|
||||
|
|
||||
LL | ... <Foo as Trait>::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated function `lint_stability::deprecated_unstable`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:42:9
|
||||
@ -47,16 +47,16 @@ LL | deprecated_unstable();
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `lint_stability::Trait::trait_deprecated_unstable`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:47:9
|
||||
--> $DIR/lint-stability-deprecated.rs:47:16
|
||||
|
|
||||
LL | ... Trait::trait_deprecated_unstable(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `lint_stability::Trait::trait_deprecated_unstable`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:49:9
|
||||
--> $DIR/lint-stability-deprecated.rs:49:25
|
||||
|
|
||||
LL | ... <Foo as Trait>::trait_deprecated_unstable(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated function `lint_stability::deprecated_unstable_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:51:9
|
||||
@ -65,16 +65,16 @@ LL | deprecated_unstable_text();
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `lint_stability::Trait::trait_deprecated_unstable_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:56:9
|
||||
--> $DIR/lint-stability-deprecated.rs:56:16
|
||||
|
|
||||
LL | ... Trait::trait_deprecated_unstable_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `lint_stability::Trait::trait_deprecated_unstable_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:58:9
|
||||
--> $DIR/lint-stability-deprecated.rs:58:25
|
||||
|
|
||||
LL | ... <Foo as Trait>::trait_deprecated_unstable_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated struct `lint_stability::DeprecatedStruct`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:108:17
|
||||
@ -101,16 +101,16 @@ LL | let _ = DeprecatedUnstableUnitStruct;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated variant `lint_stability::Enum::DeprecatedVariant`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:123:17
|
||||
--> $DIR/lint-stability-deprecated.rs:123:23
|
||||
|
|
||||
LL | let _ = Enum::DeprecatedVariant;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated variant `lint_stability::Enum::DeprecatedUnstableVariant`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:124:17
|
||||
--> $DIR/lint-stability-deprecated.rs:124:23
|
||||
|
|
||||
LL | let _ = Enum::DeprecatedUnstableVariant;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated struct `lint_stability::DeprecatedTupleStruct`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:128:17
|
||||
@ -143,52 +143,52 @@ LL | macro_test_arg!(macro_test_arg!(deprecated_text()));
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `lint_stability::Trait::trait_deprecated`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:145:9
|
||||
--> $DIR/lint-stability-deprecated.rs:145:16
|
||||
|
|
||||
LL | Trait::trait_deprecated(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `lint_stability::Trait::trait_deprecated`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:147:9
|
||||
--> $DIR/lint-stability-deprecated.rs:147:25
|
||||
|
|
||||
LL | <Foo as Trait>::trait_deprecated(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `lint_stability::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:149:9
|
||||
--> $DIR/lint-stability-deprecated.rs:149:16
|
||||
|
|
||||
LL | ... Trait::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `lint_stability::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:151:9
|
||||
--> $DIR/lint-stability-deprecated.rs:151:25
|
||||
|
|
||||
LL | ... <Foo as Trait>::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `lint_stability::Trait::trait_deprecated_unstable`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:153:9
|
||||
--> $DIR/lint-stability-deprecated.rs:153:16
|
||||
|
|
||||
LL | ... Trait::trait_deprecated_unstable(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `lint_stability::Trait::trait_deprecated_unstable`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:155:9
|
||||
--> $DIR/lint-stability-deprecated.rs:155:25
|
||||
|
|
||||
LL | ... <Foo as Trait>::trait_deprecated_unstable(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `lint_stability::Trait::trait_deprecated_unstable_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:157:9
|
||||
--> $DIR/lint-stability-deprecated.rs:157:16
|
||||
|
|
||||
LL | ... Trait::trait_deprecated_unstable_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `lint_stability::Trait::trait_deprecated_unstable_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:159:9
|
||||
--> $DIR/lint-stability-deprecated.rs:159:25
|
||||
|
|
||||
LL | ... <Foo as Trait>::trait_deprecated_unstable_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated trait `lint_stability::DeprecatedTrait`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:187:10
|
||||
@ -203,10 +203,10 @@ LL | trait LocalTrait2 : DeprecatedTrait { }
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated function `inheritance::inherited_stability::unstable_mod::deprecated`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:208:9
|
||||
--> $DIR/lint-stability-deprecated.rs:208:23
|
||||
|
|
||||
LL | unstable_mod::deprecated();
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated function `this_crate::deprecated`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:330:9
|
||||
@ -215,16 +215,16 @@ LL | deprecated();
|
||||
| ^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:335:9
|
||||
--> $DIR/lint-stability-deprecated.rs:335:16
|
||||
|
|
||||
LL | Trait::trait_deprecated(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:337:9
|
||||
--> $DIR/lint-stability-deprecated.rs:337:25
|
||||
|
|
||||
LL | <Foo as Trait>::trait_deprecated(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated function `this_crate::deprecated_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:339:9
|
||||
@ -233,16 +233,16 @@ LL | deprecated_text();
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `this_crate::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:344:9
|
||||
--> $DIR/lint-stability-deprecated.rs:344:16
|
||||
|
|
||||
LL | Trait::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `this_crate::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:346:9
|
||||
--> $DIR/lint-stability-deprecated.rs:346:25
|
||||
|
|
||||
LL | ... <Foo as Trait>::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated struct `this_crate::DeprecatedStruct`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:384:17
|
||||
@ -257,10 +257,10 @@ LL | let _ = DeprecatedUnitStruct;
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated unit variant `this_crate::Enum::DeprecatedVariant`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:395:17
|
||||
--> $DIR/lint-stability-deprecated.rs:395:23
|
||||
|
|
||||
LL | let _ = Enum::DeprecatedVariant;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated tuple struct `this_crate::DeprecatedTupleStruct`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:399:17
|
||||
@ -269,28 +269,28 @@ LL | let _ = DeprecatedTupleStruct (1);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:406:9
|
||||
--> $DIR/lint-stability-deprecated.rs:406:16
|
||||
|
|
||||
LL | Trait::trait_deprecated(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:408:9
|
||||
--> $DIR/lint-stability-deprecated.rs:408:25
|
||||
|
|
||||
LL | <Foo as Trait>::trait_deprecated(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `this_crate::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:410:9
|
||||
--> $DIR/lint-stability-deprecated.rs:410:16
|
||||
|
|
||||
LL | Trait::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated associated function `this_crate::Trait::trait_deprecated_text`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:412:9
|
||||
--> $DIR/lint-stability-deprecated.rs:412:25
|
||||
|
|
||||
LL | ... <Foo as Trait>::trait_deprecated_text(&foo);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: use of deprecated function `this_crate::test_fn_body::fn_in_body`: text
|
||||
--> $DIR/lint-stability-deprecated.rs:439:9
|
||||
|
@ -1,15 +1,14 @@
|
||||
error: use of deprecated function `lint_stability::deprecated_text`: text
|
||||
--> $DIR/lint-stability3.rs:13:5
|
||||
--> $DIR/lint-stability3.rs:13:28
|
||||
|
|
||||
LL | macro_test_arg_nested!(deprecated_text);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/lint-stability3.rs:4:9
|
||||
|
|
||||
LL | #![deny(deprecated)]
|
||||
| ^^^^^^^^^^
|
||||
= note: this error originates in the macro `macro_test_arg_nested` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -34,7 +34,7 @@ warning: use of deprecated struct `unstable_generic_param::Struct4`: test
|
||||
--> $DIR/generics-default-stability.rs:83:12
|
||||
|
|
||||
LL | let _: Struct4<isize> = Struct4 { field: 1 };
|
||||
| ^^^^^^^^^^^^^^
|
||||
| ^^^^^^^
|
||||
|
||||
warning: use of deprecated struct `unstable_generic_param::Struct4`: test
|
||||
--> $DIR/generics-default-stability.rs:88:12
|
||||
@ -46,7 +46,7 @@ warning: use of deprecated struct `unstable_generic_param::Struct4`: test
|
||||
--> $DIR/generics-default-stability.rs:89:12
|
||||
|
|
||||
LL | let _: Struct4<usize> = STRUCT4;
|
||||
| ^^^^^^^^^^^^^^
|
||||
| ^^^^^^^
|
||||
|
||||
warning: use of deprecated struct `unstable_generic_param::Struct4`: test
|
||||
--> $DIR/generics-default-stability.rs:90:29
|
||||
@ -58,7 +58,7 @@ warning: use of deprecated struct `unstable_generic_param::Struct4`: test
|
||||
--> $DIR/generics-default-stability.rs:90:12
|
||||
|
|
||||
LL | let _: Struct4<isize> = Struct4 { field: 0 };
|
||||
| ^^^^^^^^^^^^^^
|
||||
| ^^^^^^^
|
||||
|
||||
warning: use of deprecated struct `unstable_generic_param::Struct5`: test
|
||||
--> $DIR/generics-default-stability.rs:96:29
|
||||
@ -70,7 +70,7 @@ warning: use of deprecated struct `unstable_generic_param::Struct5`: test
|
||||
--> $DIR/generics-default-stability.rs:96:12
|
||||
|
|
||||
LL | let _: Struct5<isize> = Struct5 { field: 1 };
|
||||
| ^^^^^^^^^^^^^^
|
||||
| ^^^^^^^
|
||||
|
||||
warning: use of deprecated struct `unstable_generic_param::Struct5`: test
|
||||
--> $DIR/generics-default-stability.rs:101:12
|
||||
@ -82,7 +82,7 @@ warning: use of deprecated struct `unstable_generic_param::Struct5`: test
|
||||
--> $DIR/generics-default-stability.rs:102:12
|
||||
|
|
||||
LL | let _: Struct5<usize> = STRUCT5;
|
||||
| ^^^^^^^^^^^^^^
|
||||
| ^^^^^^^
|
||||
|
||||
warning: use of deprecated struct `unstable_generic_param::Struct5`: test
|
||||
--> $DIR/generics-default-stability.rs:104:29
|
||||
@ -94,7 +94,7 @@ warning: use of deprecated struct `unstable_generic_param::Struct5`: test
|
||||
--> $DIR/generics-default-stability.rs:104:12
|
||||
|
|
||||
LL | let _: Struct5<isize> = Struct5 { field: 0 };
|
||||
| ^^^^^^^^^^^^^^
|
||||
| ^^^^^^^
|
||||
|
||||
warning: use of deprecated type alias `unstable_generic_param::Alias4`: test
|
||||
--> $DIR/generics-default-stability.rs:159:28
|
||||
@ -106,7 +106,7 @@ warning: use of deprecated type alias `unstable_generic_param::Alias4`: test
|
||||
--> $DIR/generics-default-stability.rs:159:12
|
||||
|
|
||||
LL | let _: Alias4<isize> = Alias4::Some(1);
|
||||
| ^^^^^^^^^^^^^
|
||||
| ^^^^^^
|
||||
|
||||
warning: use of deprecated type alias `unstable_generic_param::Alias4`: test
|
||||
--> $DIR/generics-default-stability.rs:163:12
|
||||
@ -118,7 +118,7 @@ warning: use of deprecated type alias `unstable_generic_param::Alias4`: test
|
||||
--> $DIR/generics-default-stability.rs:164:12
|
||||
|
|
||||
LL | let _: Alias4<usize> = ALIAS4;
|
||||
| ^^^^^^^^^^^^^
|
||||
| ^^^^^^
|
||||
|
||||
warning: use of deprecated type alias `unstable_generic_param::Alias4`: test
|
||||
--> $DIR/generics-default-stability.rs:165:28
|
||||
@ -130,7 +130,7 @@ warning: use of deprecated type alias `unstable_generic_param::Alias4`: test
|
||||
--> $DIR/generics-default-stability.rs:165:12
|
||||
|
|
||||
LL | let _: Alias4<isize> = Alias4::Some(0);
|
||||
| ^^^^^^^^^^^^^
|
||||
| ^^^^^^
|
||||
|
||||
warning: use of deprecated type alias `unstable_generic_param::Alias5`: test
|
||||
--> $DIR/generics-default-stability.rs:170:28
|
||||
@ -142,7 +142,7 @@ warning: use of deprecated type alias `unstable_generic_param::Alias5`: test
|
||||
--> $DIR/generics-default-stability.rs:170:12
|
||||
|
|
||||
LL | let _: Alias5<isize> = Alias5::Some(1);
|
||||
| ^^^^^^^^^^^^^
|
||||
| ^^^^^^
|
||||
|
||||
warning: use of deprecated type alias `unstable_generic_param::Alias5`: test
|
||||
--> $DIR/generics-default-stability.rs:174:12
|
||||
@ -154,7 +154,7 @@ warning: use of deprecated type alias `unstable_generic_param::Alias5`: test
|
||||
--> $DIR/generics-default-stability.rs:175:12
|
||||
|
|
||||
LL | let _: Alias5<usize> = ALIAS5;
|
||||
| ^^^^^^^^^^^^^
|
||||
| ^^^^^^
|
||||
|
||||
warning: use of deprecated type alias `unstable_generic_param::Alias5`: test
|
||||
--> $DIR/generics-default-stability.rs:177:28
|
||||
@ -166,19 +166,19 @@ warning: use of deprecated type alias `unstable_generic_param::Alias5`: test
|
||||
--> $DIR/generics-default-stability.rs:177:12
|
||||
|
|
||||
LL | let _: Alias5<isize> = Alias5::Some(0);
|
||||
| ^^^^^^^^^^^^^
|
||||
| ^^^^^^
|
||||
|
||||
warning: use of deprecated variant `unstable_generic_param::Enum4::Some`: test
|
||||
--> $DIR/generics-default-stability.rs:231:27
|
||||
--> $DIR/generics-default-stability.rs:231:34
|
||||
|
|
||||
LL | let _: Enum4<isize> = Enum4::Some(1);
|
||||
| ^^^^^^^^^^^
|
||||
| ^^^^
|
||||
|
||||
warning: use of deprecated enum `unstable_generic_param::Enum4`: test
|
||||
--> $DIR/generics-default-stability.rs:231:12
|
||||
|
|
||||
LL | let _: Enum4<isize> = Enum4::Some(1);
|
||||
| ^^^^^^^^^^^^
|
||||
| ^^^^^
|
||||
|
||||
warning: use of deprecated enum `unstable_generic_param::Enum4`: test
|
||||
--> $DIR/generics-default-stability.rs:235:12
|
||||
@ -190,31 +190,31 @@ warning: use of deprecated enum `unstable_generic_param::Enum4`: test
|
||||
--> $DIR/generics-default-stability.rs:236:12
|
||||
|
|
||||
LL | let _: Enum4<usize> = ENUM4;
|
||||
| ^^^^^^^^^^^^
|
||||
| ^^^^^
|
||||
|
||||
warning: use of deprecated variant `unstable_generic_param::Enum4::Some`: test
|
||||
--> $DIR/generics-default-stability.rs:237:27
|
||||
--> $DIR/generics-default-stability.rs:237:34
|
||||
|
|
||||
LL | let _: Enum4<isize> = Enum4::Some(0);
|
||||
| ^^^^^^^^^^^
|
||||
| ^^^^
|
||||
|
||||
warning: use of deprecated enum `unstable_generic_param::Enum4`: test
|
||||
--> $DIR/generics-default-stability.rs:237:12
|
||||
|
|
||||
LL | let _: Enum4<isize> = Enum4::Some(0);
|
||||
| ^^^^^^^^^^^^
|
||||
| ^^^^^
|
||||
|
||||
warning: use of deprecated variant `unstable_generic_param::Enum5::Some`: test
|
||||
--> $DIR/generics-default-stability.rs:242:27
|
||||
--> $DIR/generics-default-stability.rs:242:34
|
||||
|
|
||||
LL | let _: Enum5<isize> = Enum5::Some(1);
|
||||
| ^^^^^^^^^^^
|
||||
| ^^^^
|
||||
|
||||
warning: use of deprecated enum `unstable_generic_param::Enum5`: test
|
||||
--> $DIR/generics-default-stability.rs:242:12
|
||||
|
|
||||
LL | let _: Enum5<isize> = Enum5::Some(1);
|
||||
| ^^^^^^^^^^^^
|
||||
| ^^^^^
|
||||
|
||||
warning: use of deprecated enum `unstable_generic_param::Enum5`: test
|
||||
--> $DIR/generics-default-stability.rs:246:12
|
||||
@ -226,19 +226,19 @@ warning: use of deprecated enum `unstable_generic_param::Enum5`: test
|
||||
--> $DIR/generics-default-stability.rs:247:12
|
||||
|
|
||||
LL | let _: Enum5<usize> = ENUM5;
|
||||
| ^^^^^^^^^^^^
|
||||
| ^^^^^
|
||||
|
||||
warning: use of deprecated variant `unstable_generic_param::Enum5::Some`: test
|
||||
--> $DIR/generics-default-stability.rs:249:27
|
||||
--> $DIR/generics-default-stability.rs:249:34
|
||||
|
|
||||
LL | let _: Enum5<isize> = Enum5::Some(0);
|
||||
| ^^^^^^^^^^^
|
||||
| ^^^^
|
||||
|
||||
warning: use of deprecated enum `unstable_generic_param::Enum5`: test
|
||||
--> $DIR/generics-default-stability.rs:249:12
|
||||
|
|
||||
LL | let _: Enum5<isize> = Enum5::Some(0);
|
||||
| ^^^^^^^^^^^^
|
||||
| ^^^^^
|
||||
|
||||
error[E0658]: use of unstable library feature 'unstable_default'
|
||||
--> $DIR/generics-default-stability.rs:35:20
|
||||
|
Loading…
Reference in New Issue
Block a user