about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-12-08 03:39:43 +0100
committerGitHub <noreply@github.com>2019-12-08 03:39:43 +0100
commit56f830e292f3af241b65fc2bc08279a0b6d9856a (patch)
tree883bd1ca3e3d53bca2f2694749b553b36208959b /src/libstd
parentde17464b14e503edca6625daa9cd4c338ffafee2 (diff)
parent34a45a5309dad66025df506a388fbdf1da9afa40 (diff)
downloadrust-56f830e292f3af241b65fc2bc08279a0b6d9856a.tar.gz
rust-56f830e292f3af241b65fc2bc08279a0b6d9856a.zip
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.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/keyword_docs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/keyword_docs.rs b/src/libstd/keyword_docs.rs
index 5b7bef930d1..de7ced332fd 100644
--- a/src/libstd/keyword_docs.rs
+++ b/src/libstd/keyword_docs.rs
@@ -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;
 ///         }