Skip to content

Commit 1da1399

Browse files
committed
Patch regressed tests
1 parent 32eec18 commit 1da1399

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

src/test/run-pass/modules/mod_dir_path.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,23 @@
1313
// ignore-pretty issue #37195
1414

1515
mod mod_dir_simple {
16-
#[path = "test.rs"]
16+
#[path = "mod_dir_simple/test.rs"]
1717
pub mod syrup;
1818
}
1919

2020
pub fn main() {
2121
assert_eq!(mod_dir_simple::syrup::foo(), 10);
2222

23-
#[path = "auxiliary"]
2423
mod foo {
24+
#[path = "auxiliary/two_macros_2.rs"]
2525
mod two_macros_2;
2626
}
2727

28-
#[path = "auxiliary"]
2928
mod bar {
30-
macro_rules! m { () => { mod two_macros_2; } }
29+
macro_rules! m { () => {
30+
#[path = "auxiliary/two_macros_2.rs"]
31+
mod two_macros_2;
32+
} }
3133
m!();
3234
}
3335
}

src/test/run-pass/modules/mod_dir_path2.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111
// run-pass
1212
// ignore-pretty issue #37195
1313

14-
#[path = "mod_dir_simple"]
1514
mod pancakes {
16-
#[path = "test.rs"]
15+
#[path = "mod_dir_simple/test.rs"]
1716
pub mod syrup;
1817
}
1918

src/test/run-pass/modules/mod_dir_path3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
// run-pass
1212
// ignore-pretty issue #37195
1313

14-
#[path = "mod_dir_simple"]
1514
mod pancakes {
15+
#[path = "mod_dir_simple/test.rs"]
1616
pub mod test;
1717
}
1818

src/test/run-pass/modules/mod_dir_path_multi.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
// run-pass
1212
// ignore-pretty issue #37195
1313

14-
#[path = "mod_dir_simple"]
1514
mod biscuits {
15+
#[path = "mod_dir_simple/test.rs"]
1616
pub mod test;
1717
}
1818

19-
#[path = "mod_dir_simple"]
2019
mod gravy {
20+
#[path = "mod_dir_simple/test.rs"]
2121
pub mod test;
2222
}
2323

0 commit comments

Comments
 (0)