Skip to content

Commit

Permalink
add notes clarifying introduction of warnings for a pair of run-pass …
Browse files Browse the repository at this point in the history
…tests.
  • Loading branch information
pnkfelix committed Apr 21, 2015
1 parent ccc9f5e commit 2b3cd40
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/run-pass/hygienic-labels-in-let.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions src/test/run-pass/hygienic-labels.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 2b3cd40

Please sign in to comment.