diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2018-03-20 22:19:52 +0200 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2018-11-30 06:15:20 +0200 |
| commit | fcca22cb4072097fc2cd1ae78ff84c7d59aacda2 (patch) | |
| tree | ff9a90706e343251ea3b7e3f86e46f3401d089f1 /src/test/incremental/incremental_proc_macro.rs | |
| parent | d3ab4a74efad266155fcd402c8d159af9e443e3d (diff) | |
| download | rust-fcca22cb4072097fc2cd1ae78ff84c7d59aacda2.tar.gz rust-fcca22cb4072097fc2cd1ae78ff84c7d59aacda2.zip | |
tests: move all proc_macro tests from -fulldeps.
Diffstat (limited to 'src/test/incremental/incremental_proc_macro.rs')
| -rw-r--r-- | src/test/incremental/incremental_proc_macro.rs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/test/incremental/incremental_proc_macro.rs b/src/test/incremental/incremental_proc_macro.rs new file mode 100644 index 00000000000..495f4ff0ed0 --- /dev/null +++ b/src/test/incremental/incremental_proc_macro.rs @@ -0,0 +1,26 @@ +// Copyright 2018 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// aux-build:incremental_proc_macro_aux.rs +// revisions: cfail1 cfail2 +// compile-pass + +// 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 +} |
