Initial diagnostic API for proc-macros.
This commit introduces the ability to create and emit `Diagnostic` structures from proc-macros, allowing for proc-macro authors to emit warning, error, note, and help messages just like the compiler does.
This commit is contained in:
parent
a0c3bd2d23
commit
8be132e9d7
9 changed files with 314 additions and 1 deletions
1
src/Cargo.lock
generated
1
src/Cargo.lock
generated
|
|
@ -1038,6 +1038,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||
name = "proc_macro"
|
||||
version = "0.0.0"
|
||||
dependencies = [
|
||||
"rustc_errors 0.0.0",
|
||||
"syntax 0.0.0",
|
||||
"syntax_pos 0.0.0",
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue