rust-playground icon indicating copy to clipboard operation
rust-playground copied to clipboard

Link for `rustc --explain E\d+`

Open martinthomson opened this issue 5 years ago • 2 comments

The compiler helpfully provides explanations for most errors. Turning this text into a link to the relevant text would be helpful.

I don't know where this text is online; at worst, you can run rustc, but that seems wasteful.

martinthomson avatar Oct 26 '20 00:10 martinthomson

This is already present earlier in the compilation message:

image

I'd accept a PR to apply the same logic to the --explain line. It would be good to test it with multiple error types.

shepmaster avatar Oct 26 '20 01:10 shepmaster

Or we could even use cargo-explain for colors.

pickfire avatar Nov 05 '20 15:11 pickfire