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:
Sergio Benitez 2017-08-28 02:56:43 -07:00
parent a0c3bd2d23
commit 8be132e9d7
9 changed files with 314 additions and 1 deletions

1
src/Cargo.lock generated
View file

@ -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",
]