Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
2a6dd252
R
Rust
项目概览
int
/
Rust
接近 1 年 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
2a6dd252
编写于
6月 04, 2021
作者:
R
Rich Kadel
提交者:
GitHub
6月 04, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "shrinking the deprecated method span"
上级
595088d6
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
131 addition
and
163 deletion
+131
-163
compiler/rustc_passes/src/stability.rs
compiler/rustc_passes/src/stability.rs
+1
-5
src/test/ui/deprecation/deprecation-lint.stderr
src/test/ui/deprecation/deprecation-lint.stderr
+54
-54
src/test/ui/deprecation/suggestion.fixed
src/test/ui/deprecation/suggestion.fixed
+3
-14
src/test/ui/deprecation/suggestion.rs
src/test/ui/deprecation/suggestion.rs
+3
-14
src/test/ui/deprecation/suggestion.stderr
src/test/ui/deprecation/suggestion.stderr
+6
-12
src/test/ui/lint/lint-stability-deprecated.stderr
src/test/ui/lint/lint-stability-deprecated.stderr
+56
-56
src/test/ui/stability-attribute/generics-default-stability.stderr
.../ui/stability-attribute/generics-default-stability.stderr
+8
-8
未找到文件。
compiler/rustc_passes/src/stability.rs
浏览文件 @
2a6dd252
...
...
@@ -828,11 +828,7 @@ fn visit_item(&mut self, item: &'tcx hir::Item<'tcx>) {
fn
visit_path
(
&
mut
self
,
path
:
&
'tcx
hir
::
Path
<
'tcx
>
,
id
:
hir
::
HirId
)
{
if
let
Some
(
def_id
)
=
path
.res
.opt_def_id
()
{
let
method_span
=
match
path
.segments
{
[
..
,
_
,
last
]
=>
Some
(
last
.ident.span
),
_
=>
None
,
};
self
.tcx
.check_stability
(
def_id
,
Some
(
id
),
path
.span
,
method_span
)
self
.tcx
.check_stability
(
def_id
,
Some
(
id
),
path
.span
,
None
)
}
intravisit
::
walk_path
(
self
,
path
)
}
...
...
src/test/ui/deprecation/deprecation-lint.stderr
浏览文件 @
2a6dd252
...
...
@@ -11,16 +11,16 @@ LL | #![deny(deprecated)]
| ^^^^^^^^^^
error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated`: text
--> $DIR/deprecation-lint.rs:21:
16
--> $DIR/deprecation-lint.rs:21:
9
|
LL | Trait::trait_deprecated(&foo);
|
^^^^^^^^^^^^^^^^
|
^^^^^^^
^^^^^^^^^^^^^^^^
error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated`: text
--> $DIR/deprecation-lint.rs:23:
25
--> $DIR/deprecation-lint.rs:23:
9
|
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:
16
--> $DIR/deprecation-lint.rs:30:
9
|
LL | ... Trait::trait_deprecated_text(&foo);
|
^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^
^^^^^^^^^^^^^^^^^^^^^
error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated_text`: text
--> $DIR/deprecation-lint.rs:32:
25
--> $DIR/deprecation-lint.rs:32:
9
|
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:
23
--> $DIR/deprecation-lint.rs:40:
17
|
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:
25
--> $DIR/deprecation-lint.rs:44:
17
|
LL | let _ = nested::DeprecatedStruct {
|
^^^^^^^^^^^^^^^^
|
^^^^^^^^
^^^^^^^^^^^^^^^^
error: use of deprecated struct `deprecation_lint::nested::DeprecatedUnitStruct`: text
--> $DIR/deprecation-lint.rs:48:
25
--> $DIR/deprecation-lint.rs:48:
17
|
LL | let _ = nested::DeprecatedUnitStruct;
|
^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^
^^^^^^^^^^^^^^^^^^^^
error: use of deprecated variant `deprecation_lint::nested::Enum::DeprecatedVariant`: text
--> $DIR/deprecation-lint.rs:50:
31
--> $DIR/deprecation-lint.rs:50:
17
|
LL | ... let _ = nested::Enum::DeprecatedVariant;
|
^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^
error: use of deprecated struct `deprecation_lint::nested::DeprecatedTupleStruct`: text
--> $DIR/deprecation-lint.rs:52:
25
--> $DIR/deprecation-lint.rs:52:
17
|
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:
16
--> $DIR/deprecation-lint.rs:65:
9
|
LL | Trait::trait_deprecated(&foo);
|
^^^^^^^^^^^^^^^^
|
^^^^^^^
^^^^^^^^^^^^^^^^
error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated`: text
--> $DIR/deprecation-lint.rs:67:
25
--> $DIR/deprecation-lint.rs:67:
9
|
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:
16
--> $DIR/deprecation-lint.rs:69:
9
|
LL | ... Trait::trait_deprecated_text(&foo);
|
^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^
^^^^^^^^^^^^^^^^^^^^^
error: use of deprecated associated function `deprecation_lint::Trait::trait_deprecated_text`: text
--> $DIR/deprecation-lint.rs:71:
25
--> $DIR/deprecation-lint.rs:71:
9
|
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:
25
--> $DIR/deprecation-lint.rs:162:
9
|
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:
16
--> $DIR/deprecation-lint.rs:250:
9
|
LL | Trait::trait_deprecated(&foo);
|
^^^^^^^^^^^^^^^^
|
^^^^^^^
^^^^^^^^^^^^^^^^
error: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
--> $DIR/deprecation-lint.rs:252:
25
--> $DIR/deprecation-lint.rs:252:
9
|
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:
16
--> $DIR/deprecation-lint.rs:259:
9
|
LL | Trait::trait_deprecated_text(&foo);
|
^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^
^^^^^^^^^^^^^^^^^^^^^
error: use of deprecated associated function `this_crate::Trait::trait_deprecated_text`: text
--> $DIR/deprecation-lint.rs:261:
25
--> $DIR/deprecation-lint.rs:261:
9
|
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:
23
--> $DIR/deprecation-lint.rs:274:
17
|
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:
25
--> $DIR/deprecation-lint.rs:278:
17
|
LL | let _ = nested::DeprecatedStruct {
|
^^^^^^^^^^^^^^^^
|
^^^^^^^^
^^^^^^^^^^^^^^^^
error: use of deprecated unit struct `this_crate::nested::DeprecatedUnitStruct`: text
--> $DIR/deprecation-lint.rs:283:
25
--> $DIR/deprecation-lint.rs:283:
17
|
LL | let _ = nested::DeprecatedUnitStruct;
|
^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^
^^^^^^^^^^^^^^^^^^^^
error: use of deprecated unit variant `this_crate::nested::Enum::DeprecatedVariant`: text
--> $DIR/deprecation-lint.rs:285:
31
--> $DIR/deprecation-lint.rs:285:
17
|
LL | ... let _ = nested::Enum::DeprecatedVariant;
|
^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^
error: use of deprecated tuple struct `this_crate::nested::DeprecatedTupleStruct`: text
--> $DIR/deprecation-lint.rs:287:
25
--> $DIR/deprecation-lint.rs:287:
17
|
LL | ... let _ = nested::DeprecatedTupleStruct (1);
|
^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^
error: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
--> $DIR/deprecation-lint.rs:292:
16
--> $DIR/deprecation-lint.rs:292:
9
|
LL | Trait::trait_deprecated(&foo);
|
^^^^^^^^^^^^^^^^
|
^^^^^^^
^^^^^^^^^^^^^^^^
error: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
--> $DIR/deprecation-lint.rs:294:
25
--> $DIR/deprecation-lint.rs:294:
9
|
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:
16
--> $DIR/deprecation-lint.rs:296:
9
|
LL | Trait::trait_deprecated_text(&foo);
|
^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^
^^^^^^^^^^^^^^^^^^^^^
error: use of deprecated associated function `this_crate::Trait::trait_deprecated_text`: text
--> $DIR/deprecation-lint.rs:298:
25
--> $DIR/deprecation-lint.rs:298:
9
|
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
...
...
src/test/ui/deprecation/suggestion.fixed
浏览文件 @
2a6dd252
// run-rustfix
#![feature(staged_api)]
#![stable(since = "1.0.0", feature = "test")]
#![deny(deprecated)]
#![allow(dead_code)]
...
...
@@ -19,21 +21,8 @@ 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
foo.
replacement(); //~ ERROR use of deprecated
}
src/test/ui/deprecation/suggestion.rs
浏览文件 @
2a6dd252
// run-rustfix
#![feature(staged_api)]
#![stable(since
=
"1.0.0"
,
feature
=
"test"
)]
#![deny(deprecated)]
#![allow(dead_code)]
...
...
@@ -19,21 +21,8 @@ fn deprecated(&self) {}
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
foo
.
deprecated
();
//~ ERROR use of deprecated
}
src/test/ui/deprecation/suggestion.stderr
浏览文件 @
2a6dd252
error: use of deprecated
function `bar
::deprecated`: replaced by `replacement`
--> $DIR/suggestion.rs:
38:10
error: use of deprecated
associated function `Foo
::deprecated`: replaced by `replacement`
--> $DIR/suggestion.rs:
27:9
|
LL |
bar::
deprecated();
|
^^^^^^^^^^ help: replace the use of the deprec
ated function: `replacement`
LL |
foo.
deprecated();
|
^^^^^^^^^^ help: replace the use of the deprecated associ
ated function: `replacement`
|
note: the lint level is defined here
--> $DIR/suggestion.rs:
5
:9
--> $DIR/suggestion.rs:
7
:9
|
LL | #![deny(deprecated)]
| ^^^^^^^^^^
error: use of deprecated associated function `Foo::deprecated`: replaced by `replacement`
--> $DIR/suggestion.rs:36:9
|
LL | foo.deprecated();
| ^^^^^^^^^^ help: replace the use of the deprecated associated function: `replacement`
error: aborting due to 2 previous errors
error: aborting due to previous error
src/test/ui/lint/lint-stability-deprecated.stderr
浏览文件 @
2a6dd252
...
...
@@ -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:
16
--> $DIR/lint-stability-deprecated.rs:29:
9
|
LL | Trait::trait_deprecated(&foo);
|
^^^^^^^^^^^^^^^^
|
^^^^^^^
^^^^^^^^^^^^^^^^
warning: use of deprecated associated function `lint_stability::Trait::trait_deprecated`: text
--> $DIR/lint-stability-deprecated.rs:31:
25
--> $DIR/lint-stability-deprecated.rs:31:
9
|
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:
16
--> $DIR/lint-stability-deprecated.rs:38:
9
|
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:
25
--> $DIR/lint-stability-deprecated.rs:40:
9
|
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:
16
--> $DIR/lint-stability-deprecated.rs:47:
9
|
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:
25
--> $DIR/lint-stability-deprecated.rs:49:
9
|
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:
16
--> $DIR/lint-stability-deprecated.rs:56:
9
|
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:
25
--> $DIR/lint-stability-deprecated.rs:58:
9
|
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:
23
--> $DIR/lint-stability-deprecated.rs:123:
17
|
LL | let _ = Enum::DeprecatedVariant;
|
^^^^^^^^^^^^^^^^^
|
^^^^^^
^^^^^^^^^^^^^^^^^
warning: use of deprecated variant `lint_stability::Enum::DeprecatedUnstableVariant`: text
--> $DIR/lint-stability-deprecated.rs:124:
23
--> $DIR/lint-stability-deprecated.rs:124:
17
|
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:
16
--> $DIR/lint-stability-deprecated.rs:145:
9
|
LL | Trait::trait_deprecated(&foo);
|
^^^^^^^^^^^^^^^^
|
^^^^^^^
^^^^^^^^^^^^^^^^
warning: use of deprecated associated function `lint_stability::Trait::trait_deprecated`: text
--> $DIR/lint-stability-deprecated.rs:147:
25
--> $DIR/lint-stability-deprecated.rs:147:
9
|
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:
16
--> $DIR/lint-stability-deprecated.rs:149:
9
|
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:
25
--> $DIR/lint-stability-deprecated.rs:151:
9
|
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:
16
--> $DIR/lint-stability-deprecated.rs:153:
9
|
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:
25
--> $DIR/lint-stability-deprecated.rs:155:
9
|
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:
16
--> $DIR/lint-stability-deprecated.rs:157:
9
|
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:
25
--> $DIR/lint-stability-deprecated.rs:159:
9
|
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:
23
--> $DIR/lint-stability-deprecated.rs:208:
9
|
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:
16
--> $DIR/lint-stability-deprecated.rs:335:
9
|
LL | Trait::trait_deprecated(&foo);
|
^^^^^^^^^^^^^^^^
|
^^^^^^^
^^^^^^^^^^^^^^^^
warning: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
--> $DIR/lint-stability-deprecated.rs:337:
25
--> $DIR/lint-stability-deprecated.rs:337:
9
|
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:
16
--> $DIR/lint-stability-deprecated.rs:344:
9
|
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:
25
--> $DIR/lint-stability-deprecated.rs:346:
9
|
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:
23
--> $DIR/lint-stability-deprecated.rs:395:
17
|
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:
16
--> $DIR/lint-stability-deprecated.rs:406:
9
|
LL | Trait::trait_deprecated(&foo);
|
^^^^^^^^^^^^^^^^
|
^^^^^^^
^^^^^^^^^^^^^^^^
warning: use of deprecated associated function `this_crate::Trait::trait_deprecated`: text
--> $DIR/lint-stability-deprecated.rs:408:
25
--> $DIR/lint-stability-deprecated.rs:408:
9
|
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:
16
--> $DIR/lint-stability-deprecated.rs:410:
9
|
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:
25
--> $DIR/lint-stability-deprecated.rs:412:
9
|
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
...
...
src/test/ui/stability-attribute/generics-default-stability.stderr
浏览文件 @
2a6dd252
...
...
@@ -169,10 +169,10 @@ LL | let _: Alias5<isize> = Alias5::Some(0);
| ^^^^^^^^^^^^^
warning: use of deprecated variant `unstable_generic_param::Enum4::Some`: test
--> $DIR/generics-default-stability.rs:231:
34
--> $DIR/generics-default-stability.rs:231:
27
|
LL | let _: Enum4<isize> = Enum4::Some(1);
|
^^^^
|
^^^^^^^
^^^^
warning: use of deprecated enum `unstable_generic_param::Enum4`: test
--> $DIR/generics-default-stability.rs:231:12
...
...
@@ -193,10 +193,10 @@ LL | let _: Enum4<usize> = ENUM4;
| ^^^^^^^^^^^^
warning: use of deprecated variant `unstable_generic_param::Enum4::Some`: test
--> $DIR/generics-default-stability.rs:237:
34
--> $DIR/generics-default-stability.rs:237:
27
|
LL | let _: Enum4<isize> = Enum4::Some(0);
|
^^^^
|
^^^^^^^
^^^^
warning: use of deprecated enum `unstable_generic_param::Enum4`: test
--> $DIR/generics-default-stability.rs:237:12
...
...
@@ -205,10 +205,10 @@ LL | let _: Enum4<isize> = Enum4::Some(0);
| ^^^^^^^^^^^^
warning: use of deprecated variant `unstable_generic_param::Enum5::Some`: test
--> $DIR/generics-default-stability.rs:242:
34
--> $DIR/generics-default-stability.rs:242:
27
|
LL | let _: Enum5<isize> = Enum5::Some(1);
|
^^^^
|
^^^^^^^
^^^^
warning: use of deprecated enum `unstable_generic_param::Enum5`: test
--> $DIR/generics-default-stability.rs:242:12
...
...
@@ -229,10 +229,10 @@ LL | let _: Enum5<usize> = ENUM5;
| ^^^^^^^^^^^^
warning: use of deprecated variant `unstable_generic_param::Enum5::Some`: test
--> $DIR/generics-default-stability.rs:249:
34
--> $DIR/generics-default-stability.rs:249:
27
|
LL | let _: Enum5<isize> = Enum5::Some(0);
|
^^^^
|
^^^^^^^
^^^^
warning: use of deprecated enum `unstable_generic_param::Enum5`: test
--> $DIR/generics-default-stability.rs:249:12
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录