Tshepang Mbambo
3335fc3213
small fixes to ty chapter ( #1390 )
2022-07-15 15:47:42 +09:00
Joshua Nelson
64b46a9623
Update the build instructions for the standard library
...
Since https://github.com/rust-lang/rust/pull/95503 , `library/std` means
"build just std and its dependencies"; to get the old behavior that built
`proc_macro` and `test`, you need `x build library`.
- Update `library/std` to `library`
- Remove the `-i` suggestions; `incremental = true` is already the default for most profiles, in
which case `-i` does nothing. If you don't have incremental enabled, I still think suggesting `-i`
is bad idea, because it's easy to forget once, at which point you'll end up rebuilding the whole
compiler / standard library.
- Remove a few repetitive sections and don't discuss incremental in such detail
Incremental works well enough that it should "just work" for most people;
I don't think it needs multiple paragraphs of explanation so early in the guide.
- Clarify that `test library/std` *only* tests libstd in a few places
2022-07-11 07:22:24 +02:00
Martin Nordholts
997282c43e
overview.md: Link to existing Macro Expansion and Name Resolution docs ( #1388 )
2022-07-08 12:55:38 -05:00
Yuki Okushi
4627aa9a46
Git-ignore pulls.json ( #1386 )
...
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-07-07 16:41:11 -03:00
Santiago Pastorino
b78a1e1623
Revert "Add the config needed to get rust-analyzer working on src/bootstrap ( #1381 )"
...
This reverts commit d955bab63c229c3160e3023f44496ad93a81f3ab.
2022-07-07 07:10:35 +02:00
Joshua Nelson
49728e3f77
Use x.py check instead of cargo check for build scripts ( #1384 )
...
Cargo check isn't supported and gives an error that CFG_CHANNEL is missing.
It also generates a new target dir and recompiles dependencies.
Use x.py instead, which avoids both issues.
2022-07-06 18:36:22 -03:00
Joshua Nelson
f809687956
Suggest a separate build directory for rust-analyzer ( #1378 )
2022-07-03 15:17:39 +09:00
Yutaro Ohno
b3b2266cec
Change the old filename, "src/stage0.txt" to "src/stage0.json" ( #1383 )
2022-07-03 15:10:25 +09:00
Joshua Nelson
77e91025fe
Add the config needed to get rust-analyzer working on src/bootstrap ( #1381 )
2022-07-03 15:06:54 +09:00
Daniel Xu
b35a56170b
Fix path to hir_id_validator.rs
...
It doesn't look like the old path ever existed.
2022-07-02 21:32:39 +02:00
Ralf Jung
3cb910acea
leave formatOnSave to the user ( #1380 )
2022-07-02 00:35:13 +09:00
David Wood
7bf03d61bf
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
EdwinRy
9ab4469c65
Few readability fixes
2022-06-27 02:41:09 +02:00
Alcaro
d8e5995983
humorust: Forbid pineapple on pizza ( #1374 )
2022-06-26 21:02:21 +09:00
Tshepang Mbambo
e2666525e5
not obvious what Ex is, so rather get rid ( #1372 )
2022-06-21 22:25:34 +09:00
Tshepang Mbambo
852dc6381d
small improves ( #1371 )
...
Co-authored-by: Yuki Okushi <jtitor@2k36.org>
2022-06-21 18:45:30 +09:00
Tshepang Mbambo
3252a2c0e7
make clear that other versions can work ( #1373 )
2022-06-21 13:26:19 +09:00
Omer Tuchfeld
16824a22e7
Fix small src/diagnostics.md typo ( #1370 )
2022-06-18 19:42:08 +09:00
Edwin
46a3e18d38
Add an "is" and rearange "We next" to "Next, we" ( #1369 )
2022-06-18 12:31:49 +09:00
David Wood
94eeef6ff0
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
2d77d144fe
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
Edwin Rybarczyk
62ff1bd3de
later -> latter
2022-06-13 00:17:41 +02:00
Eric Huss
dc3355540a
Remove mention of -Zborrowck=mir with Polonius. ( #1367 )
2022-06-08 19:30:43 -03:00
Eric Huss
b8ca95a47b
Remove nll compare mode. ( #1366 )
2022-06-08 14:21:15 -03:00
lcnr
c0cc3b934d
add section on user types ( #1359 )
...
* add section on user types
* line length
* review
* Update src/borrow_check/type_check.md
Co-authored-by: Yuki Okushi <jtitor@2k36.org>
2022-06-08 14:21:01 -03:00
Jonas Schievink
a335dd2d31
Make build scripts and proc macros work with the suggested rust-analyzer config ( #1365 )
2022-06-08 08:06:32 +09:00
Tshepang Mbambo
370fe5964b
improve rustc_interface examples a little ( #1362 )
2022-06-07 08:42:07 +09:00
dependabot[bot]
8cc4c20c1d
Bump regex from 1.4.3 to 1.5.5 in /ci/date-check ( #1364 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-07 08:40:42 +09:00
Andrew Dona-Couch -- GitHub drop ICE
46d48d8d72
Clarify cargo fallback behavior for rustup link ( #1273 )
2022-06-07 08:37:50 +09:00
Yuki Okushi
93771d84e0
Update rustc-driver related examples
2022-05-30 13:57:16 +02:00
Yuki Okushi
637f3f2af8
Triage some date references related to traits
2022-05-27 21:40:59 -07:00
Yuki Okushi
bdaf7e6bd6
Cleanup rustdoc-internals
2022-05-24 17:15:35 -07:00
Yuki Okushi
39497c4171
Fix some wording on the "Incremental Compilation In Detail" page
2022-05-24 16:03:20 -07:00
Yuki Okushi
c4041d22ab
Exclude tomlee.co from link-checking ( #1356 )
...
https://tomlee.co/2014/04/a-more-detailed-tour-of-the-rust-compiler/ returns 404 on CI even though it's not actually 404.
So, that doesn't return any useful result, let's ignore it.
Also, formatted the exclude list for readability.
2022-05-24 16:01:26 -07:00
Eric Huss
5fd3d1dde7
Add note about patching dependencies and warnings. ( #1354 )
2022-05-21 12:53:51 +09:00
Tshepang Lekhonkhobe
f1ad54fe58
make sentence more simple ( #1353 )
2022-05-20 21:37:01 +09:00
Yuki Okushi
ccde9c81b7
Update some links and docs ( #1340 )
2022-05-17 07:54:45 +09:00
Yuki Okushi
11b6e86ce7
Replace a broken YouTube link ( #1295 )
2022-05-16 11:36:40 -03:00
pierwill
0de3f4e668
Edit the "Compiler Source Code" chapter ( #1307 )
...
Co-authored-by: Noah Lev <camelidcamel@gmail.com>
Co-authored-by: pierwill <pierwill@users.noreply.github.com>
Co-authored-by: Yuki Okushi <jtitor@2k36.org>
2022-05-16 21:02:11 +09:00
Eric Huss
3903ae5b42
Add docs for logging of queries. ( #1350 )
2022-05-12 13:56:26 +09:00
Waffle Maybe
ac519c71d4
Fix configuration names for vscode/r-a ( #1352 )
2022-05-12 13:56:14 +09:00
Jacob Pratt
76114ad437
Update docs for deprecated attribute ( #1338 )
2022-05-12 13:53:26 +09:00
Soroush Zare
5a1aeb7a79
Update overview.md ( #1351 )
...
Fix minor typo
2022-05-10 09:45:31 -03:00
Yuki Okushi
5208de7e80
Update date references on parallel-rustc ( #1348 )
2022-05-09 08:47:50 -05:00
lcnr
4ca8504912
mention WithOptConstParam ( #1346 )
2022-05-09 09:19:43 +09:00
Yutaro Ohno
e0bb752dfe
Fix format ( #1349 )
2022-05-09 09:17:51 +09:00
Ali MJ Al-Nasrawy
3ddc6e2f85
correct type of SubstsRef ( #1347 )
2022-05-07 09:58:20 +09:00
Who? Me?!
f320bf72a1
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
pierwill
8c6f4f41ab
Edit "What the compiler does to your code" ( #1306 )
...
* Edit overview.md
* Fix lexer crate
* Edit wording
Co-authored-by: pierwill <pierwill@users.noreply.github.com>
2022-05-02 17:10:45 -03:00
Yuki Okushi
d265ea3c8f
Update some date refs
2022-04-20 13:09:19 -07:00