diff options
| author | bors <bors@rust-lang.org> | 2014-10-17 20:32:22 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-10-17 20:32:22 +0000 |
| commit | 4694b9910279f5af7dd9c4616b5870c82aead7f0 (patch) | |
| tree | d437e6d99b8d5bc3910dc8026581604ff6f3cdf2 /src/rustllvm/RustWrapper.cpp | |
| parent | 97bf93e405218dbc5e5506fa38572e562a796ac4 (diff) | |
| parent | 06d9cc1d7a8582ff844c21a3fafe09dc97f22895 (diff) | |
| download | rust-4694b9910279f5af7dd9c4616b5870c82aead7f0.tar.gz rust-4694b9910279f5af7dd9c4616b5870c82aead7f0.zip | |
auto merge of #16855 : P1start/rust/help-messages, r=brson
This adds ‘help’ diagnostic messages to rustc. This is used for anything that provides help to the user, particularly the `--explain` messages that were previously integrated into the relevant error message.
They look like this:
```
match.rs:10:13: 10:14 error: unreachable pattern [E0001]
match.rs:10 1 => {},
^
match.rs:3:1: 3:38 note: in expansion of foo!
match.rs:7:5: 20:2 note: expansion site
match.rs:10:13: 10:14 help: pass `--explain E0001` to see a detailed explanation
```
(`help` is coloured cyan.) Adding these errors on a separate line stops the lines from being too long, as discussed in #16619.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
