use an incremental-fulldeps test instead of a run-make test
This commit is contained in:
parent
5415bb6e8f
commit
025d01432f
4 changed files with 15 additions and 18 deletions
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// no-prefer-dynamic
|
||||||
|
|
||||||
#![crate_type="proc-macro"]
|
#![crate_type="proc-macro"]
|
||||||
#![allow(non_snake_case)]
|
#![allow(non_snake_case)]
|
||||||
|
|
|
@ -8,9 +8,9 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![crate_type="rlib"]
|
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate macro_def;
|
extern crate issue_49482_macro_def;
|
||||||
|
|
||||||
pub use macro_def::*;
|
pub use issue_49482_macro_def::*;
|
||||||
|
|
||||||
|
pub fn foo() {}
|
|
@ -8,7 +8,12 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
extern crate reexport;
|
// aux-build:issue_49482_macro_def.rs
|
||||||
|
// aux-build:issue_49482_reexport.rs
|
||||||
|
// ignore-stage1
|
||||||
|
// revisions: rpass1
|
||||||
|
|
||||||
|
extern crate issue_49482_reexport;
|
||||||
|
|
||||||
pub trait KvStorage
|
pub trait KvStorage
|
||||||
{
|
{
|
||||||
|
@ -29,5 +34,8 @@ impl KvStorage for u32 {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
/* force issue_49482_reexport to be loaded */
|
||||||
|
issue_49482_reexport::foo();
|
||||||
|
|
||||||
Box::new(2).get();
|
Box::new(2).get();
|
||||||
}
|
}
|
|
@ -1,13 +0,0 @@
|
||||||
-include ../tools.mk
|
|
||||||
|
|
||||||
ifeq ($(findstring stage1,$(RUST_BUILD_STAGE)),stage1)
|
|
||||||
# ignore stage1
|
|
||||||
all:
|
|
||||||
|
|
||||||
else
|
|
||||||
all:
|
|
||||||
mkdir $(TMPDIR)/incremental-dir
|
|
||||||
$(RUSTC) macro_def.rs
|
|
||||||
$(RUSTC) reexport.rs
|
|
||||||
$(RUSTC) main.rs -C incremental=$(TMPDIR)/incremental-dir
|
|
||||||
endif
|
|
Loading…
Add table
Add a link
Reference in a new issue