2018-01-16 12:31:15 -06:00
|
|
|
//@ aux-build:incremental_proc_macro_aux.rs
|
|
|
|
//@ revisions: cfail1 cfail2
|
2019-07-02 16:30:28 -05:00
|
|
|
//@ build-pass (FIXME(62277): could be check-pass?)
|
2018-01-16 12:31:15 -06:00
|
|
|
|
|
|
|
// This test makes sure that we still find the proc-macro registrar function
|
|
|
|
// when we compile proc-macros incrementally (see #47292).
|
|
|
|
|
|
|
|
#![crate_type = "rlib"]
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
extern crate incremental_proc_macro_aux;
|
|
|
|
|
|
|
|
#[derive(IncrementalMacro)]
|
|
|
|
pub struct Foo {
|
|
|
|
x: u32
|
|
|
|
}
|