Mark Simulacrum
4066c8ec71
Rollup merge of #41957 - llogiq:clippy-libsyntax, r=petrochenkov
...
Fix some clippy warnings in libsyntax
This is mostly removing stray ampersands, needless returns and lifetimes. Basically a lot of small changes.
2017-05-16 17:31:50 -06:00
Andre Bogus
a9c163ebe9
Fix some clippy warnings in libsyntax
...
This is mostly removing stray ampersands, needless returns and lifetimes.
2017-05-12 20:05:39 +02:00
Oliver Schneider
644ce5e535
Address PR reviews
2017-05-11 15:26:22 +02:00
Oliver Schneider
67d762d896
Refactor suggestion diagnostic API to allow for multiple suggestions
2017-05-10 13:20:26 +02:00
bors
33535afda4
Auto merge of #40851 - oli-obk:multisugg, r=jonathandturner
...
Minimize single span suggestions into a label
changes
```
14 | println!("☃{}", tup[0]);
| ^^^^^^
|
help: to access tuple elements, use tuple indexing syntax as shown
| println!("☃{}", tup.0);
```
into
```
14 | println!("☃{}", tup[0]);
| ^^^^^^ to access tuple elements, use `tup.0`
```
Also makes suggestions explicit in the backend in preparation of adding multiple suggestions to a single diagnostic. Currently that's already possible, but results in a full help message + modified code snippet per suggestion, and has no rate limit (might show 100+ suggestions).
2017-05-02 01:04:27 +00:00
Michael Woerister
39ffea31df
Implement a file-path remapping feature in support of debuginfo and reproducible builds.
2017-04-26 15:44:02 +02:00
Oliver Schneider
0e920fde4f
Minimize single span suggestions into a note
2017-04-25 11:04:34 +02:00
Jeffrey Seyfried
ec7c0aece1
Merge ExpnId
and SyntaxContext
.
2017-03-29 00:41:10 +00:00
bors
b7ca2b9e14
Auto merge of #38955 - estebank:highlighted-diags, r=nikomatsakis
...
Teach Diagnostics to highlight text
Support styled `Diagnostic` output:
<img width="469" alt="mismatched types error with colorized types in the note" src="https://cloud.githubusercontent.com/assets/1606434/21871227/93a84198-d815-11e6-88b1-0ede3c7e28ef.png ">
Closes #37532 and #38901 .
r? @nikomatsakis CC @jonathandturner @nagisa @nrc
2017-01-20 09:33:10 +00:00
Niko Matsakis
d82d4b66f2
tolerate None
return from get_line
2017-01-17 17:56:03 -05:00
Esteban Küber
fc774e629f
Teach Diagnostics to highlight text
2017-01-17 14:28:53 -08:00
Nick Cameron
e8a4db25ac
Allow supplying an error destination via the compiler driver
...
Allows replacing stderr with a buffer from the client.
Also, some refactoring around run_compiler.
2016-09-28 16:20:30 +13:00
Jonathan Turner
a6e7239e7b
Rename emit_struct->emit
2016-07-14 07:57:46 -04:00
Jonathan Turner
55f06883b8
Remove emit from emitter, leaving emit_struct
2016-07-14 07:57:46 -04:00
Jonathan Turner
6ae3502134
Move errors from libsyntax to its own crate
2016-06-23 08:07:35 -04:00