Commit graph

1795 commits

Author SHA1 Message Date
Tshepang Mbambo
2ea1935e99 Update src/building/compiler-documenting.md
Co-authored-by: Yuki Okushi <jtitor@2k36.org>
2022-07-31 07:46:57 +02:00
Tshepang Mbambo
0547c264b1 revamp doc-build chapter 2022-07-31 07:46:57 +02:00
Tshepang Mbambo
d0b31f4a90 minor fixes 2022-07-30 19:54:34 -04:00
Yuki Okushi
a9e9539c35 Prefer relative links
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-07-29 20:12:26 -04:00
Yuki Okushi
d08b61d91e Fix the link to clippy docs
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-07-29 20:12:26 -04:00
Yuki Okushi
467f08762c Fix the link to ResolverAstLowering
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-07-29 20:12:26 -04:00
Yuki Okushi
66547c803f Fix the link to ProcMacro trait
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-07-29 20:12:26 -04:00
Yuki Okushi
42ed847e84 Fix the link to Lazy<T>
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-07-29 20:12:26 -04:00
Urgau
1e0010dad0 Add instructions to fix build errors in std after adding a new target 2022-07-29 17:13:46 -04:00
bstrie
2ee5d943ef Document how to build a cross-compiler 2022-07-26 11:07:55 -04:00
ridwanabdillahi
8c2d506a15 Add documentation about Microsoft provided debuggers and CodeView/PDB… (#1406)
Co-authored-by: Yuki Okushi <jtitor@2k36.org>
Co-authored-by: Ridwan Abdilahi <riabdila@microsoft.com>
2022-07-26 07:33:58 +09:00
Amos Wenger
5325fb34a0 rust-analyzer is now a subtree
It used to be a submodule.

cf. https://github.com/rust-lang/rust/pull/99603
2022-07-25 11:40:28 +02:00
Luqman Aden
b9872232ed Debuginfo tests now also support revisions. 2022-07-21 04:48:49 +02:00
Amos Wenger
8cf6d8019d Link to rendered book directly
Co-authored-by: Yuki Okushi <jtitor@2k36.org>
2022-07-19 15:58:55 +02:00
Amos Wenger
e860ca1d70 Fix link to clippy sync docs 2022-07-19 15:58:55 +02:00
Tshepang Mbambo
11f9e8c05a remove stray markup 2022-07-19 09:56:55 +02:00
Tshepang Mbambo
08ed4b72db renamed 2022-07-19 09:56:55 +02:00
Tshepang Mbambo
3c524750b1 sync with hackmd version
See https://hackmd.io/5t8pLdJcRDmqbfN9ZXje3g
2022-07-19 09:56:55 +02:00
Tshepang Mbambo
ccf0dcbe9a replace misleading name (#1401) 2022-07-19 15:56:24 +09:00
Yuki Okushi
e85504c5d6 Remove a mention to Steve on r? example
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-07-18 07:31:14 +02:00
Tshepang Mbambo
95eaa02681 obey line length limit (part 3) 2022-07-17 23:34:12 +02:00
Tshepang Mbambo
8391544f93 obey line length limit (part 2) 2022-07-17 23:34:12 +02:00
Tshepang Mbambo
ffbe7fe9b0 obey line length limit 2022-07-17 23:34:12 +02:00
HackMD
0f778223df sync with hackmd 2022-07-17 23:34:12 +02:00
Niko Matsakis
fd17e926c4 add draft chapter 2022-07-17 23:34:12 +02:00
Niko Matsakis
d1501b5cf1 add mdbook-mermaid 2022-07-17 23:34:12 +02:00
Tshepang Mbambo
58a3a721b9 use relative links
Used the following command, followed by some manual tweaking:

  sd 'https://rustc-dev-guide.rust-lang.org/(.+).html' '$1.md' (fd)
2022-07-17 02:32:44 +02:00
Tshepang Mbambo
39f4d88d48 fix some typos (#1398) 2022-07-17 06:45:36 +09:00
davidrusu
749034f4ff typo: monomorph docs 2022-07-16 16:44:10 +02:00
5225225
7e15874ff9 Rename debugging_opts to unstable_opts, use link 2022-07-16 12:56:25 +02:00
Tshepang Mbambo
950191c7c1 address review comment
https://github.com/rust-lang/rustc-dev-guide/pull/1392#discussion_r921560851
2022-07-15 13:24:50 +02:00
Tshepang Mbambo
0506cdb667 update date reference on MIR inliner
cc #1379
2022-07-15 13:24:50 +02:00
Tshepang Mbambo
76af867e35 remove outdated info on debugging
Closes #1391

Also, do some small fixes/improvements while at it.
2022-07-15 13:24:07 +02:00
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