Cleaned up unused labels
Deleted unused labels from compiler and fixed or allowed unused labels in tests. This patch removes some gratuitous unused labels and turns off the warning for unused labels that are a necessary part of tests. This will permit setting the `unused_labels` lint to `warn`.
This commit is contained in:
parent
1bd30ce2aa
commit
ed56f86781
12 changed files with 67 additions and 64 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