Omer Tuchfeld
bda3e0b23c
Fix small `src/diagnostics.md` typo ( #1370 )
2022-06-18 19:42:08 +09:00
David Wood
c4d5a69945
diagnostics: add translation documentation
...
- Add documentation on translation infrastructure and use of
`SessionSubdiagnostic`.
- Update diagnostic examples on other pages to be translatable since
this is preferred.
Signed-off-by: David Wood <david.wood@huawei.com>
2022-06-13 10:14:40 +02:00
xFrednet
127abaa937
Add example how lints can be feature gated
2022-04-04 13:16:08 -07:00
Chayim Refael Friedman
eb90c9c25a
Fix incorrectly escaped backtick
2022-03-02 12:18:48 -08:00
xFrednet
70966e597f
Some minor adjustments to the diagnostic documentation
2021-10-29 21:51:05 -05:00
Eric Huss
9198465b6c
Clarify difference of a help vs note diagnostic.
2021-09-12 11:50:44 -05:00
Noah Lev
fa6a787cfd
Fix typo, clarify backtick wording, and use inline code
2021-08-31 12:08:01 -05:00
Ryan Levick
1a51a21243
More specifics on what future-incompatible lints are used for
2021-07-04 23:21:24 -04:00
Ryan Levick
9636fa92ab
Update information on lints particularly on future-incompatible
2021-07-04 23:21:24 -04:00
Eric Huss
12f9ede977
Describe the difference of rustc_lint vs rustc_lint_defs.
2021-05-25 21:37:21 -04:00
Camelid
5297659bb1
Fix date-check comment formatting ( #1066 )
...
I realized that the format I had been previously using for date-checks
(as of January 2021 <!-- date: 2021-01 -->)
left a space before the closing parenthesis in the rendered output,
which looks weird.
I could fix this by removing the space between `2021` and `<!-- ...`,
but that looks weird in the source. So I ended up deciding on changing
it to
(as of <!-- date: 2021-01 --> January 2021)
2021-02-20 19:24:01 -08:00
Camelid
5e57035110
Add lots of date-check annotations
...
Also added dates for things that previously said "as of now" or "as of
this writing" and cleaned up a couple of things along the way.
2021-02-03 19:29:07 -05:00
Iñaki Garay
bee2fd52ce
Add mdbook-toc, markers, and documentation ( #1028 )
...
* Add mdbook-toc to travis, book.toml and documentation
* Add toc markers
* Whitespace cleanup and some punctuation
* Addressed comments
2021-01-20 14:33:11 -03:00
Iñaki Garay
0a5bb7f5e6
Add context to dated information ( #1013 )
...
* Fixes #924 Add context to dated information
* Fixes #924 Addressed comments and some uses of 'currently'
* Update src/contributing.md
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
* Update src/salsa.md
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
* Fixes #924 Addressed comments
* Fixes #924 Fixed line lengths.
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
2021-01-10 19:23:22 -03:00
Iñaki Garay
320df682bd
rustc invocation standarized ( #992 )
...
* rustc invocation standarized
* Addressed comments
* Addressed comments
* Addressed comments
* Updated command output
2020-12-28 23:34:51 +01:00
jumbatm
459e414b3a
Use shorter [][]-style link to not pass 100 chars.
2020-12-02 22:34:16 -06:00
jumbatm
f7d7e48874
Document SessionDiagnostic
2020-12-02 22:34:16 -06:00
Camelid
5f7bd57942
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
b1af2f0c07
Explain lint renaming/removing
2020-10-22 20:41:09 -04:00
mark
9bb3872dc7
fix links and names after compiler mv to compiler/
2020-08-31 05:12:13 +02:00
Takayuki Nakata
4657fbcda7
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
e403d51932
Change `rustc::*` to `rustc_middle::*` ( #798 )
2020-07-16 11:13:49 +09:00
Andy Russell
21ee99e5af
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
e647444811
Include "Lint" in the title of the diagnostics chapter ( #742 )
2020-06-10 15:19:59 -03:00
Yuki Okushi
b381598b3f
Update lint declaration example ( #713 )
2020-05-30 08:49:25 +09:00
Eric Huss
d7067f19d2
Clarify lint vs fixed diagnostic.
2020-05-27 20:33:46 -05:00
Eric Huss
4d94eb902e
Updates from review.
2020-05-27 20:33:46 -05:00
Eric Huss
1e8a467bc2
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
39edbe59ed
Add some guidelines on diagnostics.
2020-05-27 20:33:46 -05:00
Chris Simpkins
266ab6e3a9
typo fix ( #706 )
2020-05-19 11:30:27 +09:00
Santiago Pastorino
36a06c0f25
Remove extra the
2020-04-27 15:45:00 -05:00
Santiago Pastorino
159cb7e700
Fix sub-diagnostic typo
2020-04-27 15:45:00 -05:00
Who? Me?!
a450260a5f
Typo
2020-04-19 13:08:39 -05:00
Esteban Küber
0ecf993367
review comments: move text to more relevant section
2020-04-19 13:08:39 -05:00
Santiago Pastorino
27269235d3
Update some projects locations ( #658 )
2020-04-02 18:40:15 +02:00
LeSeulArtichaut
83cd94ed2b
Rename `librustc` to `librustc_middle`
2020-03-31 15:43:14 -05:00
LeSeulArtichaut
3751350235
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?!
f0a23c81ef
Fix broken links ( #570 )
2020-02-03 14:26:13 +09:00
Yuki Okushi
702f224bf6
Fix links
2020-01-05 18:38:38 -05:00
YOUNGSUK KIM
423808fb45
minor grammar fixes
2019-12-28 17:02:38 -06:00
Christoph Schmidler
6dd78f5b15
Correct statement that wrongly claims the json emitter still lives in libsyntax crate
2019-12-17 08:35:30 -06:00
Yuki Okushi
7c56708aab
Fix links
2019-12-06 09:42:24 -06:00
Hanif Bin Ariffin
d373bca885
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
55e5a8a2fa
Fix typo
2019-11-26 17:14:05 -06:00
Mark Mansi
dcd2b0c5d7
add guidelines for future-incompat lints
2019-11-05 11:56:31 -06:00
Mark Rousskov
f668658233
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
6dc2f38cd1
Explain `rustc_on_unimplemented`
2019-10-27 15:58:58 -04:00
Tshepang Lekhonkhobe
4e87eb2fb8
fix links ( #469 )
2019-10-17 16:40:38 +09:00
Julian Wollersberger
14b243de25
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