Rollup merge of #66325 - BartMassey:master, r=joshtriplett
Change unused_labels from allow to warn Fixes #66324, making the unused_labels lint warn instead of allow by default. I'm told @rust-lang/lang will need to review this, and perhaps will want to do a crater run.
This commit is contained in:
commit
56f830e292
13 changed files with 68 additions and 65 deletions
|
@ -57,7 +57,7 @@ mod as_keyword { }
|
|||
/// 'outer: for i in 1..=5 {
|
||||
/// println!("outer iteration (i): {}", i);
|
||||
///
|
||||
/// 'inner: for j in 1..=200 {
|
||||
/// '_inner: for j in 1..=200 {
|
||||
/// println!(" inner iteration (j): {}", j);
|
||||
/// if j >= 3 {
|
||||
/// // breaks from inner loop, let's outer loop continue.
|
||||
|
@ -178,7 +178,7 @@ mod const_keyword { }
|
|||
///```rust
|
||||
/// // Print Odd numbers under 30 with unit <= 5
|
||||
/// 'tens: for ten in 0..3 {
|
||||
/// 'units: for unit in 0..=9 {
|
||||
/// '_units: for unit in 0..=9 {
|
||||
/// if unit % 2 == 0 {
|
||||
/// continue;
|
||||
/// }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue