Auto merge of #12868 - VitalikButerinEth:master, r=llogiq
chore: fix some comments fix some comments ---- changelog: none
This commit is contained in:
commit
436675b477
@ -5,6 +5,6 @@ fn main() {
|
|||||||
-x;
|
-x;
|
||||||
-(-x);
|
-(-x);
|
||||||
--x;
|
--x;
|
||||||
//~^ ERROR: `--x` could be misinterpreted as pre-decrement by C programmers, is usuall
|
//~^ ERROR: `--x` could be misinterpreted as pre-decrement by C programmers, is usually
|
||||||
//~| NOTE: `-D clippy::double-neg` implied by `-D warnings`
|
//~| NOTE: `-D clippy::double-neg` implied by `-D warnings`
|
||||||
}
|
}
|
||||||
|
@ -137,7 +137,7 @@ fn can_break_both_inner_and_outer(cond: bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn break_wrong_loop(cond: bool) {
|
fn break_wrong_loop(cond: bool) {
|
||||||
// 'inner has statement to break 'outer loop, but it was breaked early by a labeled child loop
|
// 'inner has statement to break 'outer loop, but it was broken out of early by a labeled child loop
|
||||||
'outer: loop {
|
'outer: loop {
|
||||||
loop {
|
loop {
|
||||||
//~^ ERROR: infinite loop detected
|
//~^ ERROR: infinite loop detected
|
||||||
|
@ -59,7 +59,7 @@ fn main() {
|
|||||||
let _ = x;
|
let _ = x;
|
||||||
}
|
}
|
||||||
|
|
||||||
// shouldnt fire
|
// shouldn't fire
|
||||||
for x in &vec {
|
for x in &vec {
|
||||||
let _ = x;
|
let _ = x;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user