Skip to content

Commit e46b32b

Browse files
committed
add notes clarifying introduction of warnings for a pair of run-pass tests.
1 parent b6f1f7c commit e46b32b

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/test/run-pass/hygienic-labels-in-let.rs

+8
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010

1111
// ignore-pretty: pprust doesn't print hygiene output
1212

13+
// Test that labels injected by macros do not break hygiene. This
14+
// checks cases where the macros invocations are under the rhs of a
15+
// let statement.
16+
17+
// Issue #24278: The label/lifetime shadowing checker from #24162
18+
// conservatively ignores hygiene, and thus issues warnings that are
19+
// both true- and false-positives for this test.
20+
1321
macro_rules! loop_x {
1422
($e: expr) => {
1523
// $e shouldn't be able to interact with this 'x

src/test/run-pass/hygienic-labels.rs

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// Test that labels injected by macros do not break hygiene.
12+
13+
// Issue #24278: The label/lifetime shadowing checker from #24162
14+
// conservatively ignores hygiene, and thus issues warnings that are
15+
// both true- and false-positives for this test.
1116

1217
macro_rules! loop_x {
1318
($e: expr) => {

0 commit comments

Comments
 (0)