2021-06-15 08:21:58 +00:00
|
|
|
error: use of deprecated function `bar::deprecated`: replaced by `replacement`
|
2022-02-16 23:48:33 +00:00
|
|
|
--> $DIR/suggestion.rs:42:10
|
2019-03-24 01:13:57 +00:00
|
|
|
|
|
2021-06-15 08:21:58 +00:00
|
|
|
LL | bar::deprecated();
|
2022-06-29 08:36:12 +00:00
|
|
|
| ^^^^^^^^^^
|
2019-03-24 01:13:57 +00:00
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2022-02-16 23:48:33 +00:00
|
|
|
--> $DIR/suggestion.rs:8:9
|
2019-03-24 01:13:57 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(deprecated)]
|
|
|
|
| ^^^^^^^^^^
|
2022-06-29 08:36:12 +00:00
|
|
|
help: replace the use of the deprecated function
|
|
|
|
|
|
|
|
|
LL | bar::replacement();
|
|
|
|
| ~~~~~~~~~~~
|
2019-03-24 01:13:57 +00:00
|
|
|
|
2023-02-21 21:11:08 +00:00
|
|
|
error: use of deprecated method `Foo::deprecated`: replaced by `replacement`
|
2022-02-16 23:48:33 +00:00
|
|
|
--> $DIR/suggestion.rs:40:9
|
2021-06-15 08:21:58 +00:00
|
|
|
|
|
|
|
|
LL | foo.deprecated();
|
2022-06-29 08:36:12 +00:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-02-21 21:11:08 +00:00
|
|
|
help: replace the use of the deprecated method
|
2022-06-29 08:36:12 +00:00
|
|
|
|
|
|
|
|
LL | foo.replacement();
|
|
|
|
| ~~~~~~~~~~~
|
2021-06-15 08:21:58 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2019-03-24 01:13:57 +00:00
|
|
|
|