Skip to content

Commit fe0159f

Browse files
committed
[hermes] More aggressively test hidden item rejection
gherrit-pr-id: Gmkf32xtwlqyoky63oeo4l5id2hqup3os
1 parent 4c305c9 commit fe0159f

File tree

1 file changed

+6
-4
lines changed
  • tools/hermes/tests/fixtures/nested_out_of_line_mod/source/src

1 file changed

+6
-4
lines changed

tools/hermes/tests/fixtures/nested_out_of_line_mod/source/src/lib.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
pub fn outer_logic() {
2-
// This module declaration is hidden inside a function.
3-
// Hermes must NOT load `hidden.rs`.
4-
#[path = "hidden.rs"]
5-
mod hidden;
2+
mod inner {
3+
// Despite living in `mod inner`, `inner` itself is hidden inside a
4+
// function. Hermes must reject all annotated items inside `mod hidden`.
5+
#[path = "hidden.rs"]
6+
mod hidden;
7+
}
68
}
79

810
/// ```lean

0 commit comments

Comments
 (0)