Askar Safin
9f683c9070
tree-wide: parallel: Fully removed all `Lrc`, replaced with `Arc`
2025-02-03 13:25:57 +03:00
Taylor Cramer
6ea822df54
Add instructions to test error code docs ( #2145 )
2024-11-21 10:58:56 -08:00
许杰友 Jieyou Xu (Joe)
d4b49fd93f
Update current status of diagnostics translation infra ( #2105 )
2024-10-28 17:37:50 +08:00
trevyn
4040f38175
Fix `is_diagnostic_item()` example
2024-09-24 19:56:37 +02:00
Martin Liška
9a13c75f11
linkcheck: fix reported broken links (part 2) ( #2024 )
...
* linkcheck: fix reported broken links (part 2)
* Apply suggestions from code review
Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
* Fix mir::Constant link target
* Fix borked links
* Fix one more link name
* Exclude 2 links from checking
* Fix exclude patterns in book.toml
* Fix comment
* Fix rmake-tests URL
* Apply suggestions from code review
Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
---------
Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
2024-07-27 14:45:57 +02:00
Nicholas Nethercote
af8bfec148
More updates for recent diagnostics changes.
...
A sequel to #1883 , this covers diagnostic naming changes from
rust-lang/rust/pull/121489, rust-lang/rust/pull/121780, and
rust-lang/rust/pull/122132.
2024-03-12 02:12:31 +01:00
Yuki Okushi
e0a9ace640
Fix more links ( #1884 )
2024-02-21 12:17:28 -03:00
Nicholas Nethercote
164f24ff6d
Some updates for recent diagnostics changes.
2024-02-10 04:48:19 +02:00
Gurinder Singh
c540dbae9b
Rename occurrences of 'delay_span_bug' to 'span_delayed_bug'
...
since this method has been renamed in rustc.
Also remove a link to documentation in error-guaranteed.md because it was unused
2024-02-08 20:16:06 +02:00
Tshepang Mbambo
9ad9d15da9
update some of the diagnostic translations info ( #1711 )
2024-01-20 20:47:06 +09:00
Eric Huss
b7765e5a04
Remove mentions of plugin lints ( #1833 )
2023-12-06 10:48:33 -03:00
Nicky Lim
30969cbcee
Improve clarity about attribute applicability
2023-08-08 09:16:43 +02:00
Nicky Lim
484ba2cd60
Update to new warning attribute
2023-08-08 09:16:43 +02:00
sslime336
a04ad82e3c
Change `./x.py` into `./x`
2023-06-30 23:11:14 +02:00
Eric Huss
c242e5719c
Reword `messages.ftl` example.
2023-06-29 06:43:19 +02:00
Eric Huss
1b6f93987d
Fix some links
2023-06-29 06:43:19 +02:00
Ezra Shaw
25b0c633d5
update error code docs to reflect recent changes ( #1625 )
2023-03-03 20:12:51 +09:00
Tshepang Mbambo
052fe68fb2
this remains true ( #1620 )
2023-02-21 23:12:14 +09:00
Tshepang Mbambo
ec33573db8
typo ( #1616 )
2023-02-21 22:57:16 +09:00
Tshepang Mbambo
c7256e75c0
typo ( #1617 )
2023-02-21 22:56:16 +09:00
Tshepang Mbambo
c0342ec589
there are still no locale bundles ( #1567 )
2023-01-27 07:52:25 +09:00
Anirudh S
ab9ea18b59
Remove duplicate paragraph ( #1523 )
2022-12-04 08:09:24 +09:00
Xiretza
f541555701
Document multiple alternative suggestions on diagnostic structs ( #1486 )
2022-11-09 06:35:38 +09:00
Jhonny Bill Mena
43e20eff99
UPDATE - mention of Diagnostic derive on enums
...
Updated Diagnostic text to use the same language used in Subdiagnostic
2022-11-01 15:13:38 +00:00
Nilstrieb
015da9686e
Update diagnostics to flat fluent message paths
...
As implemented in rust-lang/rust#103345
2022-10-25 14:36:52 +01:00
David Wood
a613d5b9e1
diagnostic structs: derive on enum ( #1477 )
2022-10-05 20:22:46 +09:00
Bruno Kolenbrander
c86cf1dd7c
Rename typeck to hir_analysis ( #1475 )
...
Co-authored-by: mejrs <>
2022-10-04 21:22:00 +09:00
Jhonny Bill Mena
d8eb01ae15
UPDATE - Diagnostic docs to reflect renamed traits and macros in rustc PR#101558
2022-09-22 10:29:32 +01:00
Xiretza
5f7f3e491b
Document multipart_suggestion derive on SessionSubdiagnostic
2022-09-05 10:59:20 +01:00
Tshepang Mbambo
22863fbc4b
Refine the lintstore section ( #1429 )
2022-08-27 14:59:56 +09:00
Xiretza
391f3bdd9e
Document changes introduced by kind-less SessionDiagnostics
2022-08-21 08:49:30 -07:00
David Wood
6eaa13346d
diagnostics: fix outdated use of string slugs ( #1436 )
2022-08-19 10:47:58 +01:00
Nathan Stocks
8b298d3cdc
Add missing lifetime ( #1439 )
...
* fix incorrect #[note] syntax
* more syntax fixes
* add missing lifetime
2022-08-18 17:53:51 -07:00
Nathan Stocks
7536ff8e9a
more syntax fixes
2022-08-18 22:41:51 +00:00
Nathan Stocks
499cc7afe2
fix incorrect #[note] syntax
2022-08-18 22:11:03 +00:00
est31
7c8bf03e3d
Update slug style to use _ instead of - ( #1426 )
2022-08-17 23:16:44 +01:00
Tshepang Mbambo
6116278158
Improve the "Diagnostic items" chapter ( #1427 )
2022-08-13 10:00:38 +09:00
Tshepang Mbambo
8194045511
make date-check more lightweight ( #1394 )
...
* make date-check lightweight
This avoids having to write the date twice when updating date-check.
Before "As of <-- 2022-07 --> July 2022"
After "As of July 2022"
* please clippy
* update date-check docs
* accept review suggestion
Co-authored-by: Noah Lev <camelidcamel@gmail.com>
* address review comment
https://github.com/rust-lang/rustc-dev-guide/pull/1394#pullrequestreview-1042163557
* accept review suggestion
Co-authored-by: Noah Lev <camelidcamel@gmail.com>
* address review comment
https://github.com/rust-lang/rustc-dev-guide/pull/1394#pullrequestreview-1042167261
* address review comment
https://github.com/rust-lang/rustc-dev-guide/pull/1394#issuecomment-1189105017
* this breaks markdown
* address review comment
https://github.com/rust-lang/rustc-dev-guide/pull/1394#discussion_r934018268
This led to a more robust regex, though making the tool more picky.
It also found a wrong date format that was missed.
* address review comment
https://github.com/rust-lang/rustc-dev-guide/pull/1394#discussion_r934018419
* address review comment
https://github.com/rust-lang/rustc-dev-guide/pull/1394#discussion_r934018816
* accept review suggestion
This was reverted by mistake
Co-authored-by: Noah Lev <camelidcamel@gmail.com>
* address review comment
https://github.com/rust-lang/rustc-dev-guide/pull/1394#discussion_r934019395
* use a more simple fn
* address review comment
https://github.com/rust-lang/rustc-dev-guide/pull/1394#discussion_r934018981
Much more clean
* nit
* accept review suggestion
Co-authored-by: Noah Lev <camelidcamel@gmail.com>
* avoid a failed regex
Also, test new shape
* adjust to new regex (which uses named groups)
New regex was introduced by 456008cc35
Co-authored-by: Noah Lev <camelidcamel@gmail.com>
2022-08-02 13:50:32 -07:00
Yuki Okushi
77d9ec9476
Fix the link to clippy docs
...
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-07-29 20:12:26 -04:00
David Wood
a2aee4c319
diagnostics: structs with new slug syntax ( #1377 )
...
Update the documentation for diagnostic structs to use the new typed
identifier syntax for referring to slugs.
Signed-off-by: David Wood <david.wood@huawei.com>
2022-06-28 13:17:15 -03:00
David Wood
17edb681ff
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
David Wood
2273fee776
diagnostics: line wrapping/heading changes
...
Minor stylistic changes to some of the diagnostic documentation: adding
line wrapping to the Markdown source and changing the capitalization of
the headings to be consistent with other pages.
Signed-off-by: David Wood <david.wood@huawei.com>
2022-06-13 10:14:40 +02:00
Who? Me?!
081e290a26
Document ErrorGuaranteed ( #1316 )
...
* document ErrorGuaranteed
* Fix typos
Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>
* Clarify Niko comment
Co-authored-by: Niko Matsakis <niko@alum.mit.edu>
Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>
Co-authored-by: Niko Matsakis <niko@alum.mit.edu>
2022-05-03 11:28:26 -03:00
David Wood
8b363fba6d
sessiondiagnostic: translation ( #1333 )
2022-04-14 14:57:32 +09:00
Yuki Okushi
3e67d8ee9a
Triage some date references ( #1293 )
2022-02-10 17:34:23 -03:00
Georgiy Komarov
e3da6331dd
Spelling: Rename `rust` to `Rust` ( #1288 )
2022-01-18 11:09:37 -03:00
Ken Matsui
d4f300263e
Fix an invalid link on Diagnostic Items ( #1261 )
2021-11-16 10:45:40 -03:00
Lucas Kent
363f6ce09c
Spelling fixes
2021-11-15 08:23:01 -06:00
Fridtjof Stoldt
46fa9e7283
Documenting diagnostic items with their usage and naming conventions ( #1192 )
...
* Documenting diagnostic items with their usage and naming conventions
* Fixed typos in diagnostic items documentation
Co-authored-by: Camelid <camelidcamel@gmail.com>
Co-authored-by: Camelid <camelidcamel@gmail.com>
2021-09-01 11:26:58 -07:00
Ryan Levick
7cfaceec67
Fix line lens
2021-07-04 23:21:24 -04:00