Skip to content

lu-zero/compiler_error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Triggerable custom compiler error

Crates.io LICENSE

compiler_error is a rust compiler plugin that simply triggers a compilation error on demand and prints the token it receives, it is similar to the #error directive in the C preprocessor.

It is quite useful to provide helpful error message in macros with non-trival syntaxes.

Note

From Rust 1.20 an identical macro is available directly in the standard library, please use this only for backwards compatibility.

About

Triggerable compiler errors for rustc < 1.20

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages