Introduce the #[diagnostic]
attribute namespace
Co-authored-by: est31 <est31@users.noreply.github.com> Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com> Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com>
This commit is contained in:
parent
d150dbb067
commit
5b576665e5
15 changed files with 202 additions and 4 deletions
12
tests/ui/diagnostic_namespace/auxiliary/proc-macro-helper.rs
Normal file
12
tests/ui/diagnostic_namespace/auxiliary/proc-macro-helper.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
// force-host
|
||||
// no-prefer-dynamic
|
||||
#![crate_type = "proc-macro"]
|
||||
|
||||
extern crate proc_macro;
|
||||
|
||||
use proc_macro::TokenStream;
|
||||
|
||||
#[proc_macro_attribute]
|
||||
pub fn diagnostic(i: TokenStream, _: TokenStream) -> TokenStream {
|
||||
i
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue