Commit Graph

32 Commits

Author SHA1 Message Date
Camelid c63305c6e8 Document when errors should have an associated error code (#967)
Document when errors should have an associated error code
2020-11-24 17:09:59 -08:00
Nadrieril f0cd34e615 Explain lint renaming/removing 2020-10-22 20:41:09 -04:00
mark 89f0b60ccc fix links and names after compiler mv to compiler/ 2020-08-31 05:12:13 +02:00
Takayuki Nakata 463489182d Some small fixes (#823)
* Fix some typos
* Update from `typeck_tables_of` to `typeck`
* Fix comment
2020-08-11 19:36:48 -04:00
Takayuki Nakata 973ced6951 Change `rustc::*` to `rustc_middle::*` (#798) 2020-07-16 11:13:49 +09:00
Andy Russell 20d3370db9 add suggestion style guide
The guide is based on [existing rustdoc].

[existing rustdoc]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/struct.Diagnostic.html#method.span_suggestion
2020-06-23 12:35:07 -05:00
LeSeulArtichaut 78b302c3a9 Include "Lint" in the title of the diagnostics chapter (#742) 2020-06-10 15:19:59 -03:00
Yuki Okushi 6b85d54752 Update lint declaration example (#713) 2020-05-30 08:49:25 +09:00
Eric Huss 3bb5fc53b5 Clarify lint vs fixed diagnostic. 2020-05-27 20:33:46 -05:00
Eric Huss 000f04e2f9 Updates from review. 2020-05-27 20:33:46 -05:00
Eric Huss 9befa0d9cc Apply suggestions from code review
Co-authored-by: Who? Me?! <mark-i-m@users.noreply.github.com>
Co-authored-by: Chris Simpkins <git.simpkins@gmail.com>
2020-05-27 20:33:46 -05:00
Eric Huss 5ae9e9191e Add some guidelines on diagnostics. 2020-05-27 20:33:46 -05:00
Chris Simpkins 78cf9b2ba1 typo fix (#706) 2020-05-19 11:30:27 +09:00
Santiago Pastorino abd9ddb16b Remove extra the 2020-04-27 15:45:00 -05:00
Santiago Pastorino 1bb6b0937f Fix sub-diagnostic typo 2020-04-27 15:45:00 -05:00
Who? Me?! 7f78165cb5 Typo 2020-04-19 13:08:39 -05:00
Esteban Küber 4266d9d902 review comments: move text to more relevant section 2020-04-19 13:08:39 -05:00
Santiago Pastorino 0a31a71b7d Update some projects locations (#658) 2020-04-02 18:40:15 +02:00
LeSeulArtichaut cb99cfcc1e Rename `librustc` to `librustc_middle` 2020-03-31 15:43:14 -05:00
LeSeulArtichaut 3e3f0363f5 Get rid of references to the refractored `libsyntax` crate (#598)
* Get rid of references to the refractored `libsyntax` crate

* Apply suggestions from code review

Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-03-03 04:41:41 +09:00
Who? Me?! da4be3ac20 Fix broken links (#570) 2020-02-03 14:26:13 +09:00
Yuki Okushi f5adddc924 Fix links 2020-01-05 18:38:38 -05:00
YOUNGSUK KIM 3b62664aa7 minor grammar fixes 2019-12-28 17:02:38 -06:00
Christoph Schmidler 67f7d9b52a Correct statement that wrongly claims the json emitter still lives in libsyntax crate 2019-12-17 08:35:30 -06:00
Yuki Okushi aa9c7bdc27 Fix links 2019-12-06 09:42:24 -06:00
Hanif Bin Ariffin 5306b68e05 Couple of changes to code so that its safe
Specifically, `> $1` causes it to write into the file $1 if it exist
And `> ./x.py` is particularly bad because it overwrite the script with
empty spaces...
2019-11-26 17:18:04 -06:00
Ivan Tham 885882db21 Fix typo 2019-11-26 17:14:05 -06:00
Mark Mansi 2dabf0f58d add guidelines for future-incompat lints 2019-11-05 11:56:31 -06:00
Mark Rousskov 1030eb393e Add some docs around the lint store (#476)
* Add some docs around the lint store

* Update src/diagnostics.md

Co-Authored-By: Niko Matsakis <niko@alum.mit.edu>

* restructure
2019-10-29 17:09:10 -04:00
Mazdak Farrokhzad c9db2d13b8 Explain `rustc_on_unimplemented` 2019-10-27 15:58:58 -04:00
Tshepang Lekhonkhobe 0a2e1b74df fix links (#469) 2019-10-17 16:40:38 +09:00
Julian Wollersberger 848faf9728 Renamed the file and title of the diagnostics chapter.
When I recently searched for infos in this guide on how to create
a warning, I couldn't find any. Later I found it through #14.

The reason was that I didn't know the term 'diagnostics' and that
it is the collective term for errors, warnings and lints.

Renaming the chapter to include the word 'error' should help.
I think also including 'warning' in the title shouldn't be
neccessary, because it's close enought.
2019-05-17 11:02:08 -05:00