Skip to content

Instantly share code, notes, and snippets.

@azriel91
Created August 17, 2017 15:14
Show Gist options
  • Select an option

  • Save azriel91/d85d87000b8a7987c57d0f6475e40739 to your computer and use it in GitHub Desktop.

Select an option

Save azriel91/d85d87000b8a7987c57d0f6475e40739 to your computer and use it in GitHub Desktop.

A nice thing to have is a general purpose crate that takes in file paths, errors, line numbers and severity, and number of lines of context to highlight.

The librustc_errors crate in rustc is what emits errors. It's currently tied to rust source. The syntex crate extracts it out, but it is no longer maintained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment