]> git.lizzy.rs Git - rust.git/commit
Initial diagnostic API for proc-macros.
authorSergio Benitez <sb@sergio.bz>
Mon, 28 Aug 2017 09:56:43 +0000 (02:56 -0700)
committerSergio Benitez <sb@sergio.bz>
Mon, 28 Aug 2017 09:58:22 +0000 (02:58 -0700)
commit8be132e9d76232feb2376de9edcbb34fe3ac99ac
treee1cdbc4e0e9e64151a896c49af2d52fae00d48a8
parenta0c3bd2d23f6d08ecf9b4191ee4fff5866a120d1
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.
src/Cargo.lock
src/libproc_macro/Cargo.toml
src/libproc_macro/diagnostic.rs [new file with mode: 0644]
src/libproc_macro/lib.rs
src/librustc_errors/diagnostic.rs
src/librustc_errors/diagnostic_builder.rs
src/test/ui-fulldeps/proc-macro/auxiliary/three-equals.rs [new file with mode: 0644]
src/test/ui-fulldeps/proc-macro/three-equals.rs [new file with mode: 0644]
src/test/ui-fulldeps/proc-macro/three-equals.stderr [new file with mode: 0644]