about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2015-04-21 09:58:06 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2015-04-21 18:09:46 +0200
commit2b3cd40f829e256bf54729e7fd0a3b8ceb4c2925 (patch)
tree1ae091e404bafb30ecc2d1a9d733263e4eb7e414 /src
parentccc9f5eb846aa4be48b080eed810e26d2f96bdde (diff)
downloadrust-2b3cd40f829e256bf54729e7fd0a3b8ceb4c2925.tar.gz
rust-2b3cd40f829e256bf54729e7fd0a3b8ceb4c2925.zip
add notes clarifying introduction of warnings for a pair of run-pass tests.
Diffstat (limited to 'src')
-rw-r--r--src/test/run-pass/hygienic-labels-in-let.rs8
-rw-r--r--src/test/run-pass/hygienic-labels.rs5
2 files changed, 13 insertions, 0 deletions
diff --git a/src/test/run-pass/hygienic-labels-in-let.rs b/src/test/run-pass/hygienic-labels-in-let.rs
index 589d6e1581b..5b45f1e0d39 100644
--- a/src/test/run-pass/hygienic-labels-in-let.rs
+++ b/src/test/run-pass/hygienic-labels-in-let.rs
@@ -10,6 +10,14 @@
 
 // ignore-pretty: pprust doesn't print hygiene output
 
+// Test that labels injected by macros do not break hygiene.  This
+// checks cases where the macros invocations are under the rhs of a
+// let statement.
+
+// Issue #24278: The label/lifetime shadowing checker from #24162
+// conservatively ignores hygiene, and thus issues warnings that are
+// both true- and false-positives for this test.
+
 macro_rules! loop_x {
     ($e: expr) => {
         // $e shouldn't be able to interact with this 'x
diff --git a/src/test/run-pass/hygienic-labels.rs b/src/test/run-pass/hygienic-labels.rs
index df72a5410a2..a5882f02292 100644
--- a/src/test/run-pass/hygienic-labels.rs
+++ b/src/test/run-pass/hygienic-labels.rs
@@ -8,6 +8,11 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// Test that labels injected by macros do not break hygiene.
+
+// Issue #24278: The label/lifetime shadowing checker from #24162
+// conservatively ignores hygiene, and thus issues warnings that are
+// both true- and false-positives for this test.
 
 macro_rules! loop_x {
     ($e: expr) => {