Rustc errors with hyperlinks?

Would it be acceptable to add an hyper-link to the web rendered version of Rust error index?

When the terminal supports it:

For more information about this error, try rustc --explain E0277 (online version).

1 Like

How would you detect if the terminal supported hyperlinks?

Good question, I haven't looked into the details. That might not be possible. At least we can check if the output is TTY, and various environment variables such as TERM.