Skip to content

Commit 025d014

Browse files
committed
use an incremental-fulldeps test instead of a run-make test
1 parent 5415bb6 commit 025d014

File tree

4 files changed

+15
-18
lines changed

4 files changed

+15
-18
lines changed

src/test/run-make-fulldeps/issue-49482/macro_def.rs renamed to src/test/incremental-fulldeps/auxiliary/issue_49482_macro_def.rs

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

11+
// no-prefer-dynamic
12+
1113
#![crate_type="proc-macro"]
1214
#![allow(non_snake_case)]
1315

src/test/run-make-fulldeps/issue-49482/reexport.rs renamed to src/test/incremental-fulldeps/auxiliary/issue_49482_reexport.rs

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

11-
#![crate_type="rlib"]
12-
1311
#[macro_use]
14-
extern crate macro_def;
12+
extern crate issue_49482_macro_def;
13+
14+
pub use issue_49482_macro_def::*;
1515

16-
pub use macro_def::*;
16+
pub fn foo() {}

src/test/run-make-fulldeps/issue-49482/main.rs renamed to src/test/incremental-fulldeps/issue-49482.rs

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

11-
extern crate reexport;
11+
// aux-build:issue_49482_macro_def.rs
12+
// aux-build:issue_49482_reexport.rs
13+
// ignore-stage1
14+
// revisions: rpass1
15+
16+
extern crate issue_49482_reexport;
1217

1318
pub trait KvStorage
1419
{
@@ -29,5 +34,8 @@ impl KvStorage for u32 {
2934
}
3035

3136
fn main() {
37+
/* force issue_49482_reexport to be loaded */
38+
issue_49482_reexport::foo();
39+
3240
Box::new(2).get();
3341
}

src/test/run-make-fulldeps/issue-49482/Makefile

-13
This file was deleted.

0 commit comments

Comments
 (0)