mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
Update tests with new casing
This commit is contained in:
parent
81da9b48aa
commit
896898ed43
@ -4,7 +4,7 @@ warning: hidden lifetime parameters in types are deprecated
|
||||
LL | fn foo(x: &Foo) {}
|
||||
| ^^^- help: indicate the anonymous lifetime: `<'_>`
|
||||
|
|
||||
= note: Warning forced by `force-warns` commandline option
|
||||
= note: warning forced by `force-warns` commandline option
|
||||
|
||||
warning: 1 warning emitted
|
||||
|
||||
|
@ -6,7 +6,7 @@ LL | const C: i32 = 1 / 0;
|
||||
| |
|
||||
| attempt to divide `1_i32` by zero
|
||||
|
|
||||
= note: Warning forced by `force-warns` commandline option
|
||||
= note: warning forced by `force-warns` commandline option
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
|
||||
|
||||
|
@ -4,7 +4,7 @@ warning: function is never used: `dead_function`
|
||||
LL | fn dead_function() {}
|
||||
| ^^^^^^^^^^^^^
|
||||
|
|
||||
= note: Warning forced by `force-warns` commandline option
|
||||
= note: warning forced by `force-warns` commandline option
|
||||
|
||||
warning: 1 warning emitted
|
||||
|
||||
|
@ -6,7 +6,7 @@ LL | const C: i32 = 1 / 0;
|
||||
| |
|
||||
| attempt to divide `1_i32` by zero
|
||||
|
|
||||
= note: Warning forced by `force-warns` commandline option
|
||||
= note: warning forced by `force-warns` commandline option
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
|
||||
|
||||
|
@ -4,7 +4,7 @@ warning: function is never used: `dead_function`
|
||||
LL | fn dead_function() {}
|
||||
| ^^^^^^^^^^^^^
|
||||
|
|
||||
= note: Warning forced by `force-warns` commandline option
|
||||
= note: warning forced by `force-warns` commandline option
|
||||
|
||||
warning: 1 warning emitted
|
||||
|
||||
|
@ -4,7 +4,7 @@ warning: function `FUNCTION` should have a snake case name
|
||||
LL | pub fn FUNCTION() {}
|
||||
| ^^^^^^^^ help: convert the identifier to snake case: `function`
|
||||
|
|
||||
= note: Warning forced by `force-warns` commandline option
|
||||
= note: warning forced by `force-warns` commandline option
|
||||
|
||||
warning: 1 warning emitted
|
||||
|
||||
|
@ -4,7 +4,7 @@ warning: trait objects without an explicit `dyn` are deprecated
|
||||
LL | pub fn function(_x: Box<SomeTrait>) {}
|
||||
| ^^^^^^^^^ help: use `dyn`: `dyn SomeTrait`
|
||||
|
|
||||
= note: Warning forced by `force-warns` commandline option
|
||||
= note: warning forced by `force-warns` commandline option
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
|
||||
= note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
|
||||
|
||||
|
@ -4,7 +4,7 @@ warning: trait objects without an explicit `dyn` are deprecated
|
||||
LL | pub fn function(_x: Box<SomeTrait>) {}
|
||||
| ^^^^^^^^^ help: use `dyn`: `dyn SomeTrait`
|
||||
|
|
||||
= note: Warning forced by `force-warns` commandline option
|
||||
= note: warning forced by `force-warns` commandline option
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
|
||||
= note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
|
||||
|
||||
|
@ -4,7 +4,7 @@ warning: trait objects without an explicit `dyn` are deprecated
|
||||
LL | pub fn function(_x: Box<SomeTrait>) {}
|
||||
| ^^^^^^^^^ help: use `dyn`: `dyn SomeTrait`
|
||||
|
|
||||
= note: Warning forced by `force-warns` commandline option
|
||||
= note: warning forced by `force-warns` commandline option
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
|
||||
= note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user