4315ba64b5
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.
25 lines
304 B
Rust
25 lines
304 B
Rust
// check-pass
|
|
// edition:2018
|
|
// aux-build:edition-imports-2015.rs
|
|
|
|
#[macro_use]
|
|
extern crate edition_imports_2015;
|
|
|
|
mod import {
|
|
pub struct Path;
|
|
}
|
|
mod absolute {
|
|
pub struct Path;
|
|
}
|
|
|
|
mod check {
|
|
#[derive(Derive2015)] // OK
|
|
struct S;
|
|
|
|
fn check() {
|
|
Path;
|
|
}
|
|
}
|
|
|
|
fn main() {}
|