rust/tests/ui/proc-macro/helper-attr-blocked-by-import.rs
Martin Nordholts 4315ba64b5 tests/ui/proc-macro/*: Migrate FIXMEs to check-pass
proc-macros are processed early in the compiler pipeline. There is no
need to involve codegen. So change to check-pass.

I have also looked through each changed test and to me it is
sufficiently clear that codegen is not needed for the purpose of the
test.

I skipped changing tests/ui/proc-macro/no-missing-docs.rs in this commit
because it was not clear to me that it can be changed to check-pass.
2023-07-27 10:37:31 +02:00

29 lines
347 B
Rust

// check-pass
// aux-build:test-macros.rs
#[macro_use(Empty)]
extern crate test_macros;
use self::one::*;
use self::two::*;
mod empty_helper {}
mod one {
use empty_helper;
#[derive(Empty)]
#[empty_helper]
struct One;
}
mod two {
use empty_helper;
#[derive(Empty)]
#[empty_helper]
struct Two;
}
fn main() {}