Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn rustc-dev-guide into a Josh subtree #134907

Merged
merged 2,577 commits into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2577 commits
Select commit Hold shift + click to select a range
ac4e810
Replace -Zno-parallel-llvm with -Zno-parallel-backend
TimNN Apr 3, 2024
62ad597
Fix some broken links under bootstrapping. (#1958)
pmundkur Apr 6, 2024
0b431ac
Add needs-threads header command (#1943)
ehuss Apr 6, 2024
00f1929
Add basic docs for the new `aux-bin` header (#1942)
Enselic Apr 6, 2024
308ee1b
Add docs for sharded descriptions
notriddle Apr 6, 2024
66ed31e
Explicitly mention compiletest directives are supported in rmake.rs (…
jieyouxu Apr 6, 2024
c1e4735
compiletest: specify which special env var and which particular CI jo…
jieyouxu Apr 8, 2024
af302d2
chore: fix some typos in conments
needsure Apr 9, 2024
245b140
compiletest: clarify that headers must be one header per line
jieyouxu Apr 10, 2024
da5bc8f
Add a note about checks with multiple revisions (#1963)
tgross35 Apr 13, 2024
531ad66
typo traige->triage
correabuscar Apr 28, 2024
c76addd
Rename `-Z verbose` to `-Z verbose-internals`
ohno418 Apr 30, 2024
456ac6d
Update CI documentation to avoid mentioning `expand-yaml-anchors`
Kobzol Apr 30, 2024
98b188f
Add an example how to add a job to PR CI
Kobzol May 2, 2024
3e90528
Add Apple notification group (#1964)
madsmtm May 5, 2024
eef30e6
Add documentation for check-cfg by-default in UI tests
Urgau Apr 24, 2024
7126c78
Improve FALSE sentence
Urgau Apr 25, 2024
95fef28
Edit `Parameter Environments`'s url as it has been edited in #1953
surechen May 9, 2024
417afb2
Update the rustc_interface examples for current rustc (#1974)
mattheww May 10, 2024
bcb6af3
Link to lint L-* labels
jieyouxu May 13, 2024
904caf2
Toc here is overkill
dev-ardi May 14, 2024
fb40adf
Add note about how to pick up abandoned PRs
Kobzol May 14, 2024
142acaf
Fix broken link
gstjepan2 May 15, 2024
ddd2553
Fix broken link to "Lowering"
DavidArchibald May 16, 2024
8c1f651
add a high level explanation, and remove a disclaimer (#1982)
BoxyUwU May 17, 2024
bcf5158
fix some typos
surechen May 21, 2024
30943bb
Add Rust for Linux notification group entry
Kobzol May 21, 2024
2b77e6a
sync the stage0 filename
onur-ozkan May 15, 2024
de61e2c
Introduce chapter for defining generic parameters
BoxyUwU May 27, 2024
78b0cfa
Rewrite the "representing types" section to be more comprehensive
BoxyUwU May 27, 2024
244bbab
Reviews
BoxyUwU May 31, 2024
a92a91b
should use `&` to load completions for PowerShell (#1978)
hycinth22 Jun 4, 2024
fe90400
Fix dead links (#1988)
hycinth22 Jun 4, 2024
fd44bc7
Document the `//@ unused-revision-names:` test header (#1991)
Zalathar Jun 8, 2024
4daa8ec
Add run-make port initiative to the Recurring work section (#1992)
Kobzol Jun 9, 2024
25c93ae
Mention `COMPILETEST_REQUIRE_ALL_LLVM_COMPONENTS` in `needs-llvm-comp…
erikdesjardins Jun 10, 2024
fb65180
run-make: add tip about quick-compile with stage0 rustc
jieyouxu Jun 10, 2024
3059388
Add {{target}} to header substitutions
Veykril Jun 12, 2024
502eab5
Compiletest docs for recently-added features (#1994)
Zalathar Jun 12, 2024
97b4c5b
Rewrite CI documentation
Kobzol May 6, 2024
1193249
tell about `STAGE0_MISSING_TARGETS` for new targets
onur-ozkan Jun 15, 2024
a9586ed
docs: mention RUSTC_ICE=0 to suppress ICE file
jieyouxu Jun 18, 2024
d560048
Fix note about compiletest header `rustfix-only-machine-applicable` (…
fmease Jun 18, 2024
8e9224a
docs: document hard-resetting submodules
jieyouxu Jun 19, 2024
61fb0c6
Document inert vs active attributes (#1110)
Aaron1011 Jun 23, 2024
b1633a8
Rename `wasm32-wasi` to `wasm32-wasip1`
yoshuawuyts Apr 21, 2023
ef22f39
tests/headers: document `needs-symlink` (#2001)
jieyouxu Jun 24, 2024
ddfa50d
tests: document how to run `run-make` on Windows (#2002)
jieyouxu Jun 24, 2024
13ecd00
provide `libstdc++.so.6` through `LD_LIBRARY_PATH`
DianQK Jun 19, 2024
1d3f9d4
Add docs for building Fuchsia locally and in CI (#1989)
tmandry Jun 28, 2024
348374b
Add Rust for Linux integration tests documentation
Kobzol Jun 30, 2024
3ce0a38
Add link to integration tests list
Kobzol Jun 30, 2024
1d34d89
Update new target check-cfg instructions
Urgau Jul 1, 2024
72d6a3c
Update name of Fuchsia builder (#2008)
tmandry Jul 1, 2024
985fe2d
Fix grammar issue in optimize-build.md (#2009)
arjunUpatel Jul 2, 2024
f67b83e
use "bootstrap" instead of "rustbuild"
onur-ozkan Jul 6, 2024
46cdd51
Fix typo: lists -> lints (#2011)
camelid Jul 8, 2024
b565e17
Bump chrono
camelid Jul 8, 2024
b1ab88c
Fix chrono deprecations
camelid Jul 8, 2024
8f603fb
Bump all other deps
camelid Jul 8, 2024
c62dd21
Improve doc of MIR queries & passes
Jaic1 Aug 16, 2022
96bbce3
Typo in src/mir/passes.md
Jaic1 Aug 22, 2022
47549c3
refine mir passes doc
Jaic1 Jun 30, 2024
3feb973
Update adding.md (#2016)
10takla Jul 19, 2024
61f29ae
MIR docs: fix borked links and update style
marxin Jul 23, 2024
30f52b2
fix link
lcnr Jul 24, 2024
33485ba
linkcheck: fix reported broken links (part 1) (#2022)
marxin Jul 24, 2024
c27774e
Fix invalid link to toolstate documentation (#2021)
Kobzol Jul 24, 2024
05f6d55
Fix broken links in `llvm-coverage-instrumentation.md` (#2027)
Zalathar Jul 26, 2024
b410e03
typo (#2029)
tshepang Jul 26, 2024
15a9dd1
linkcheck: fix reported broken links (part 2) (#2024)
marxin Jul 27, 2024
551ad75
chore: fix some comments
riyueguang Jul 26, 2024
557ec47
linkcheck: fix filtering of the source files (#2019)
marxin Aug 3, 2024
ee84180
Correct rust code block in *Dataflow Analysis*
xFrednet Aug 5, 2024
297ebf2
Review comments <3
xFrednet Aug 6, 2024
e45d7ef
Disable linkcheck in PRs until bugs are fixed
camelid Aug 6, 2024
14a90e2
Added 'the' in chapter "Running test" subtitle "Run unit tests on the…
GabrieleC07 Aug 8, 2024
b07ea24
Update LLVM docs (#2039)
nikic Aug 12, 2024
7d61151
fix typo (#2043)
FlashWhite Aug 19, 2024
f6bd91c
Replace direct http links to rustc-dev-guide.rust-lang.org to relativ…
pmundkur Aug 21, 2024
801e551
missing char (#2047)
tshepang Aug 22, 2024
e7eee49
Explain the internal `#[rustc_*]` TEST attributes used for debugging …
fmease Aug 23, 2024
81e3fe2
Update `stabilization_guide.md` (#2034)
folkertdev Aug 23, 2024
894ceda
Fix x.py reference
dkm Aug 26, 2024
dcdf1b5
clarify the role of rustc_const_unstable
RalfJung Aug 22, 2024
85521a0
add section on overlap checks (#2042)
jdonszelmann Sep 6, 2024
2c72dcf
improve query system documentation (#2041)
jdonszelmann Sep 6, 2024
3f732f5
fix typo maker -> marker (thanks @lholten)
jdonszelmann Sep 8, 2024
4761904
fixed the typo (#2058)
ibilalkayy Sep 8, 2024
d4b0a4c
fix/improve rdg contributing howto (#2056)
tshepang Sep 8, 2024
544c1d4
link to additional LLVM update PRs (#2055)
tshepang Sep 8, 2024
f14d97e
Fix a link and create an implied internal link (#2051)
pmundkur Sep 8, 2024
caa8f81
fix some comments (#2059)
cuishuang Sep 9, 2024
9036518
Fix Typo and Remove Outdated Line About C Variadics
veera-sivarajan Sep 10, 2024
0f780e0
we standardized on this more reliable command (#2061)
tshepang Sep 10, 2024
1712b7d
Reflect `x.py test`'s `--rustc-args` option being renamed to `--compi…
dianne Sep 12, 2024
4274847
Add docs for JS tests
notriddle Aug 23, 2024
59ed72b
Minor wording improvements
notriddle Aug 23, 2024
da8d17f
Clean up misleading language
notriddle Aug 23, 2024
3e1754d
Update src/rustdoc-internals/search.md
notriddle Aug 23, 2024
3195e48
Specify, more explicitly, the default behavior
notriddle Aug 23, 2024
1f5fe06
Further clarification
notriddle Aug 24, 2024
4e35ad7
update proof tree chapter (#2054)
lcnr Sep 17, 2024
7af786c
Fix conditions lowering text for enums with no fields (#2066)
spastorino Sep 18, 2024
41b0e66
Remove chalk is owned by WG-traits
spastorino Sep 18, 2024
0e87ca1
Emphasize how to run a single tool test (#2070)
adwinwhite Sep 20, 2024
05b68b1
Edit a sentence for clarity (#2071)
joculatrix Sep 23, 2024
06343bb
Add advice about submitting potentially hard-to-review PRs (#2036)
jieyouxu Sep 23, 2024
5779d91
fix broken links (#2063)
max-heller Sep 23, 2024
f5f679e
Add remark on required free disk space (#2073)
jieyouxu Sep 23, 2024
a203e39
chore: add missing `.` (#2074)
MarcoIeni Sep 23, 2024
96805d6
Note lldb debuginfo requires `python310.dll` to be present in `PATH`
jieyouxu Sep 24, 2024
e1ff877
Describe `.git-blame-ignore-rev`
jieyouxu Sep 23, 2024
9080dfe
Document `#[rustc_default_body_unstable]`
dianne Sep 17, 2024
5e73e70
Fix getting diagnostics example
Sep 18, 2024
7b71d58
Document `crashes` test suite
jieyouxu Sep 24, 2024
922b453
Update src/tests/compiletest.md
Noratrieb Sep 24, 2024
c5d31c8
Revise wording to not imply *only* Python 3.10 can be installed
jieyouxu Sep 24, 2024
847b896
Fix `is_diagnostic_item()` example
trevyn Jul 13, 2024
940340d
mention rustc's stable-through-unstable bug being fixed
dianne Sep 17, 2024
2abc142
feat: Add section about partial clones with `git clone --filter='blob…
futile Aug 4, 2024
2cbeeff
Update name-resolution.md
Tbkhi Mar 11, 2024
9a448fe
Update name-resolution.md
Tbkhi Mar 12, 2024
df325c1
Minor edits
Noratrieb Sep 24, 2024
e16f3f9
Move example code block to paragraph referencing it
camelid May 29, 2024
d2302b3
Use 2021 edition for example code playground link
camelid May 29, 2024
f3f699f
Update macro-expansion.md
Tbkhi Mar 10, 2024
9fb1258
Update macro-expansion.md
Tbkhi Mar 11, 2024
2161a22
additional changes to links and some text
Tbkhi Mar 11, 2024
6858305
Update macro-expansion.md
Tbkhi Mar 11, 2024
650a6c5
Update macro-expansion.md
Tbkhi Mar 12, 2024
895588c
Minor edits
Noratrieb Sep 24, 2024
d22610d
Update the-parser.md
Tbkhi Mar 10, 2024
f285933
Update the-parser.md
Tbkhi Mar 12, 2024
789b4e3
minor edits
Noratrieb Sep 24, 2024
8371c22
Update syntax-intro.md
Tbkhi Mar 10, 2024
cbdbbd7
minor edits
Noratrieb Sep 24, 2024
3d88add
improve rustc-driver.md
Tbkhi Mar 10, 2024
6594ab6
Update serialization.md
Tbkhi Feb 26, 2024
bc55af3
updates documentation
Tbkhi Mar 5, 2024
a860cc8
minor edits
Noratrieb Sep 24, 2024
e38c470
Update memory.md
Tbkhi Feb 25, 2024
3696efe
Update salsa.md
Feb 25, 2024
03e0395
doc edits
Tbkhi Mar 5, 2024
9887084
minor edits
Noratrieb Sep 24, 2024
199df8f
Update rustdoc build instructions
fmease Feb 28, 2024
e72b7f3
Update compiler-src.md
Feb 24, 2024
a689a55
Clarify how to disable warnings in deps
nyurik Jul 18, 2024
80c9479
Apply suggestions from code review
nyurik Sep 23, 2024
ee42d07
elaborate on warnings
Noratrieb Sep 24, 2024
c60bcf5
Fix file paths to section 35.1 & 35.2 example code (#2078)
CBSpeir Sep 25, 2024
cb9a38d
building/suggested: Add instructions for Emacs & Helix (#2080)
mrkajetanp Sep 28, 2024
7daa462
Add documentation for `{{rust-src-base}}` (#2079)
Urgau Sep 29, 2024
f437db0
fixups (#2082)
fmease Oct 3, 2024
b69eb63
Rename "object safe" to "dyn compatible" (#2083)
fmease Oct 3, 2024
9dab40e
update `x install` documentation (#2084)
onur-ozkan Oct 3, 2024
6588263
Fixed links to rust-analyzer configs for Emacs and Helix (#2087)
YohDeadfall Oct 6, 2024
aa142c6
[Testing 1/2] Revise testing chapters excluding the directives chapte…
jieyouxu Oct 7, 2024
b0f9e62
[Testing 2/2] Revise revisions docs (#2089)
jieyouxu Oct 7, 2024
eb59ed7
building: Update instructions for ./x setup editor
mrkajetanp Oct 5, 2024
8c06db0
Document `bootstrap` integration with `rustc-perf` (#2005)
Kobzol Oct 7, 2024
43b743c
Revise test naming advice to discourage using issue numbers alone
jieyouxu Oct 7, 2024
0680d6b
rustdoc: docs for search deduplication (#1850)
notriddle Oct 7, 2024
40add10
Purge `run-pass-valgrind` mentions
jieyouxu Oct 7, 2024
2232116
Document compiletest directives `ignore-coverage-map` and `ignore-cov…
Zalathar Oct 9, 2024
05bd447
Rename `needs-profiler-support` to `needs-profiler-runtime` (#2095)
Zalathar Oct 9, 2024
2cf74e2
Update bootstrapping.md (#1900)
Tbkhi Oct 13, 2024
dd35c1b
Add the WASM | WASI | Emscripten notification groups (#2100)
juntyr Oct 21, 2024
13bbf49
Update compiler-src.md (#2102)
lolbinarycat Oct 24, 2024
ad474b6
Advice on auto-formatting C++ code (#2104)
Zalathar Oct 25, 2024
aa3bec2
update const stability docs (#2098)
RalfJung Oct 26, 2024
066bad1
Update current status of diagnostics translation infra (#2105)
jieyouxu Oct 28, 2024
1f86f05
Describe why and how to use a separate build directory for rust-analy…
Zalathar Oct 29, 2024
a877dab
Fix internal and incomplete links (#2107)
thomasnyman Oct 31, 2024
0f1af93
update rfl ci job policy (#2108)
davidtwco Oct 31, 2024
e2434f7
Async closures chapter
compiler-errors Nov 2, 2024
04756d6
fix permalinks
compiler-errors Nov 2, 2024
1cb0416
Fix rustc-related links that are 404 right now (#2112)
marxin Nov 2, 2024
8f6438b
Try to fix footnotes
compiler-errors Nov 2, 2024
36e11e3
Ok now linkify
compiler-errors Nov 2, 2024
abb9884
Describe how to revert a PR (#2118)
DianQK Nov 3, 2024
15013da
Fix borked links (#2119)
marxin Nov 3, 2024
066191e
Add redirects for integration-testing and headers (#2092)
jieyouxu Nov 4, 2024
76d63c8
Fix and update docs for `needs-force-clang-based-tests` (#2085)
jieyouxu Nov 4, 2024
442e8f7
Describe `minicore` test auxiliary and directive (#2097)
jieyouxu Nov 4, 2024
f66032c
Update for recent dataflow simplifications. (#2121)
nnethercote Nov 4, 2024
0557ec5
Fix minicore.rs link (#2122)
marxin Nov 4, 2024
45754f3
Fix broken links (#2123)
marxin Nov 4, 2024
125109e
Remove an mdbook workaround (#2124)
fmease Nov 4, 2024
4fa7f73
Slightly fix up the glossary (#2127)
fmease Nov 4, 2024
27985c7
Add a link for the `reference` compiletest header (#2096)
ehuss Nov 4, 2024
f86fe29
diagnostics: lists should use the Oxford comma
Oct 8, 2024
d441ae5
update const stability docs (#2111)
RalfJung Nov 5, 2024
c5ef723
Rename `{ignore,only}-debug` -> `{ignore,needs}-{rustc,std}-debug-ass…
jieyouxu Nov 8, 2024
3c069ea
Update parallel-rustc.md (#1926)
Tbkhi Nov 8, 2024
b82e209
add valid date-check marker
tshepang Nov 9, 2024
e534ff1
typo (#2132)
tshepang Nov 10, 2024
a552571
still accurate (#2133)
tshepang Nov 10, 2024
b911dfc
Note Rustfmt for separate rust-analyzer directory (#2134)
samestep Nov 13, 2024
44b0176
Document `exact-llvm-major-version` directive (#2135)
jieyouxu Nov 14, 2024
3264a46
Document `max-llvm-major-version` directive (#2129)
jieyouxu Nov 14, 2024
e91942c
Document how to acquire `cdb.exe` (#2137)
jieyouxu Nov 16, 2024
79301d6
Mention `RUSTC_BOOTSTRAP` for misc testing (#2136)
jieyouxu Nov 18, 2024
7ebb3d5
update for rustc_intrinsic_const_stable_indirect (#2138)
RalfJung Nov 18, 2024
836e361
Make `Diag` a clickable link in Suggestion section (#2140)
ohno418 Nov 20, 2024
f6841a6
Reorganize the "Source Code Representation" chapters (#2142)
BoxyUwU Nov 21, 2024
dd819cf
Add instructions to test error code docs (#2145)
cramertj Nov 21, 2024
202ec79
Flatten generic parameter defs section
BoxyUwU Nov 22, 2024
546d868
Remove constants section as it is outdated
BoxyUwU Nov 22, 2024
3ee45cd
Remove -Zfuel. (#2032)
cjgillot Nov 27, 2024
bfce8b4
Fix trivial typo
kw217 Nov 27, 2024
d8f1ca8
Remove `pretty-expanded` as it no longer exists (#2147)
jieyouxu Nov 28, 2024
718d435
Update `//@ proc-macro` aux build directive docs (#2149)
jieyouxu Nov 29, 2024
c207d2f
Explain how to deal with exploded git submodules (#2152)
jieyouxu Dec 2, 2024
e124246
Spell out `git submodule deinit -f --all` (#2153)
jieyouxu Dec 2, 2024
edafc28
Document `needs-target-has-atomic` directive (#2154)
jieyouxu Dec 5, 2024
144bbc7
Remove `//@ compare-output-lines-by-subset` directive (#2151)
jieyouxu Dec 5, 2024
f96f76a
closure constraints (#2155)
lcnr Dec 5, 2024
7c85a99
update section even more (#2156)
lcnr Dec 5, 2024
8dcdd1c
squashing: recommend --keep-base when squashing without a conflict (#…
RalfJung Dec 6, 2024
93aa2c2
remove polymorphization
Dec 10, 2024
6edc770
functionality removed from codebase (#2159)
tshepang Dec 10, 2024
4b0160f
functionality removed from codebase (part 2) (#2160)
tshepang Dec 10, 2024
5c88daa
specify what a CGU is (#2163)
connortsui20 Dec 16, 2024
1fbf039
Add suggestion for `--keep-stage 0` (#2164)
ehuss Dec 17, 2024
8d14c44
Fix some typos
rmehri01 Dec 18, 2024
95782ed
typo, pause
tshepang Dec 18, 2024
7460210
Fix trivial typo of "query-fied"
cbloodsworth Dec 17, 2024
a09ba61
document the public ci dashboard (#2167)
MarcoIeni Dec 18, 2024
444d0d7
Document the `--debugger` flag (#2170)
clubby789 Dec 23, 2024
edd2a9b
region-outlives propagation (#2169)
lcnr Dec 23, 2024
e425e8a
completions: Zsh is now supported (#2173)
clubby789 Dec 27, 2024
d2e8f12
Document `forbid-output` for UI tests (#2171)
clubby789 Dec 27, 2024
1289e54
Rework the driver docs (#2162)
bjorn3 Dec 27, 2024
dec978f
Remove the `-test` suffix from normalize directives (#2172)
Zalathar Dec 28, 2024
1a99d3b
Document `x test --no-capture` (#2174)
clubby789 Dec 28, 2024
e19542f
Start using mdbook-linkcheck2 (#2103)
marxin Dec 28, 2024
8f3ffa3
Fix 403 received for HEAD request (#2176)
marxin Dec 29, 2024
7ab1ca0
Add missing link for [Node] (#2177)
marxin Dec 29, 2024
bb3f3d8
Add a couple of linkcheck exceptions: (#2120)
marxin Dec 29, 2024
a4e9826
Remove properly tracked config file from .gitignore & add support for…
marxin Dec 29, 2024
6a8c200
Remove stale implementation details of coverage instrumentation (#2179)
Zalathar Dec 30, 2024
cc9a6fa
Opt into, rather than out of, linkcheck (#2180)
camelid Dec 30, 2024
17d512a
Use `id` attribute for `<a>` tags instead of deprecated `name` attrib…
max-heller Dec 31, 2024
ccee38a
Removed `rustc-dev-guide` as a submodule
Kobzol Jan 1, 2025
8decc04
Add rustc-dev-guide as a josh subtree
Kobzol Jan 1, 2025
59d5328
Fix source code path in comment
Kobzol Dec 9, 2024
5c0c0f4
Remove obsolete `RustcGuide` bootstrap step
Kobzol Jan 1, 2025
1820e61
Modify rustc-dev-guide triagebot ping list
Kobzol Jan 1, 2025
47e2baa
Remove mention of rustc-dev-guide from toolstate
Kobzol Dec 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
path = library/stdarch
url = https://github.com/rust-lang/stdarch.git
shallow = true
[submodule "src/doc/rustc-dev-guide"]
path = src/doc/rustc-dev-guide
url = https://github.com/rust-lang/rustc-dev-guide.git
shallow = true
[submodule "src/doc/edition-guide"]
path = src/doc/edition-guide
url = https://github.com/rust-lang/edition-guide.git
Expand Down
2 changes: 1 addition & 1 deletion src/bootstrap/src/core/build_steps/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ macro_rules! book {
}

// NOTE: When adding a book here, make sure to ALSO build the book by
// adding a build step in `src/bootstrap/builder.rs`!
// adding a build step in `src/bootstrap/code/builder/mod.rs`!
// NOTE: Make sure to add the corresponding submodule when adding a new book.
// FIXME: Make checking for a submodule automatic somehow (maybe by having a list of all submodules
// and checking against it?).
Expand Down
29 changes: 0 additions & 29 deletions src/bootstrap/src/core/build_steps/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2525,35 +2525,6 @@ fn markdown_test(builder: &Builder<'_>, compiler: Compiler, markdown: &Path) ->
}
}

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct RustcGuide;

impl Step for RustcGuide {
type Output = ();
const DEFAULT: bool = false;
const ONLY_HOSTS: bool = true;

fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
run.path("src/doc/rustc-dev-guide")
}

fn make_run(run: RunConfig<'_>) {
run.builder.ensure(RustcGuide);
}

fn run(self, builder: &Builder<'_>) {
let relative_path = "src/doc/rustc-dev-guide";
builder.require_submodule(relative_path, None);

let src = builder.src.join(relative_path);
let mut rustbook_cmd = builder.tool_cmd(Tool::Rustbook).delay_failure();
rustbook_cmd.arg("linkcheck").arg(&src);
let toolstate =
if rustbook_cmd.run(builder) { ToolState::TestPass } else { ToolState::TestFail };
builder.save_toolstate("rustc-dev-guide", toolstate);
}
}

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct CrateLibrustc {
compiler: Compiler,
Expand Down
5 changes: 1 addition & 4 deletions src/bootstrap/src/core/build_steps/toolstate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ static STABLE_TOOLS: &[(&str, &str)] = &[
// We do require that we checked whether they build or not on the tools builder,
// though, as otherwise we will be unable to file an issue if they start
// failing.
static NIGHTLY_TOOLS: &[(&str, &str)] = &[
("embedded-book", "src/doc/embedded-book"),
// ("rustc-dev-guide", "src/doc/rustc-dev-guide"),
];
static NIGHTLY_TOOLS: &[(&str, &str)] = &[("embedded-book", "src/doc/embedded-book")];

fn print_error(tool: &str, submodule: &str) {
eprintln!();
Expand Down
1 change: 0 additions & 1 deletion src/bootstrap/src/core/builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,6 @@ impl<'a> Builder<'a> {
test::UnstableBook,
test::RustcBook,
test::LintDocs,
test::RustcGuide,
test::EmbeddedBook,
test::EditionGuide,
test::Rustfmt,
Expand Down
1 change: 0 additions & 1 deletion src/doc/rustc-dev-guide
Submodule rustc-dev-guide deleted from ad93c5
10 changes: 10 additions & 0 deletions src/doc/rustc-dev-guide/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[src/*]
end_of_line = lf
insert_final_newline = true
max_line_length = 100

[ci/*.sh]
indent_style = space
indent_size = 2
10 changes: 10 additions & 0 deletions src/doc/rustc-dev-guide/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto eol=lf

# git grep shouldn't match entries in huge minified javascript
*.min.js binary

# Older git versions try to fix line endings on images, this prevents it.
*.png binary
*.jpg binary
*.ico binary
74 changes: 74 additions & 0 deletions src/doc/rustc-dev-guide/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: CI

on:
push:
branches:
- master
pull_request:
schedule:
# Run at 18:00 UTC every day
- cron: '0 18 * * *'

jobs:
ci:
if: github.repository == 'rust-lang/rustc-dev-guide'
runs-on: ubuntu-latest
env:
MDBOOK_VERSION: 0.4.21
MDBOOK_LINKCHECK2_VERSION: 0.8.1
MDBOOK_MERMAID_VERSION: 0.12.6
MDBOOK_TOC_VERSION: 0.11.2
DEPLOY_DIR: book/html
BASE_SHA: ${{ github.event.pull_request.base.sha }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
# linkcheck needs the base commit.
fetch-depth: 0

- name: Cache binaries
id: mdbook-cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin
key: ${{ runner.os }}-${{ env.MDBOOK_VERSION }}--${{ env.MDBOOK_LINKCHECK2_VERSION }}--${{ env.MDBOOK_TOC_VERSION }}--${{ env.MDBOOK_MERMAID_VERSION }}

- name: Cache linkcheck
uses: actions/cache@v4
with:
path: |
~/book/linkcheck
key: ${{ runner.os }}-${{ hashFiles('./book/linkcheck') }}

- name: Install latest nightly Rust toolchain
if: steps.mdbook-cache.outputs.cache-hit != 'true'
run: |
rustup update nightly
rustup override set nightly

- name: Install Dependencies
if: steps.mdbook-cache.outputs.cache-hit != 'true'
run: |
cargo install mdbook --version ${{ env.MDBOOK_VERSION }}
cargo install mdbook-linkcheck2 --version ${{ env.MDBOOK_LINKCHECK2_VERSION }}
cargo install mdbook-toc --version ${{ env.MDBOOK_TOC_VERSION }}
cargo install mdbook-mermaid --version ${{ env.MDBOOK_MERMAID_VERSION }}

- name: Check build
run: ENABLE_LINKCHECK=1 mdbook build

- name: Deploy to gh-pages
if: github.event_name == 'push'
run: |
touch "${{ env.DEPLOY_DIR }}/.nojekyll"
cp CNAME "${{ env.DEPLOY_DIR }}"
cd "${{ env.DEPLOY_DIR }}"
rm -rf .git
git init
git config user.name "Deploy from CI"
git config user.email ""
git add .
git commit -m "Deploy ${GITHUB_SHA} to gh-pages"
git push --quiet -f "https://x-token:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}" HEAD:gh-pages
48 changes: 48 additions & 0 deletions src/doc/rustc-dev-guide/.github/workflows/date-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Date-Check

on:
schedule:
# Run at noon UTC every 1st of the month
- cron: '00 12 01 * *'

# Allow manually starting the workflow
workflow_dispatch:

jobs:
date-check:
if: github.repository == 'rust-lang/rustc-dev-guide'
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Ensure Rust is up-to-date
run: |
rustup update stable

- name: Run `date-check`
working-directory: ci/date-check
run: |
cargo run -- ../../src/ > ../../date-check-output.txt

- name: Open issue
uses: actions/github-script@v7
with:
script: |
const fs = require('fs');

const rawText = fs.readFileSync('date-check-output.txt', { encoding: 'utf8' });
const title = rawText.split('\n')[0];
if (title != 'empty') {
const body = rawText.split('\n').slice(1).join('\n');
github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title,
body,
});
console.log('Opened issue.');
} else {
console.log('No dates to triage.');
}
6 changes: 6 additions & 0 deletions src/doc/rustc-dev-guide/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
book

ci/date-check/target/

# Generated by check-in.sh
pulls.json
5 changes: 5 additions & 0 deletions src/doc/rustc-dev-guide/.mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Jynn Nelson <[email protected]> <[email protected]>
Jynn Nelson <[email protected]> <[email protected]>
Jynn Nelson <[email protected]> <[email protected]>
Jynn Nelson <[email protected]> <[email protected]>
Jynn Nelson <[email protected]>
9 changes: 9 additions & 0 deletions src/doc/rustc-dev-guide/CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cff-version: 1.2.0
message: If you use this guide, please cite it using these metadata.
title: Rust Compiler Development Guide (rustc-dev-guide)
abstract: A guide to developing the Rust compiler (rustc)
authors:
- name: "The Rust Project Developers"
date-released: "2018-01-16"
license: "MIT OR Apache-2.0"
repository-code: "https://github.com/rust-lang/rustc-dev-guide"
1 change: 1 addition & 0 deletions src/doc/rustc-dev-guide/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rustc-dev-guide.rust-lang.org
3 changes: 3 additions & 0 deletions src/doc/rustc-dev-guide/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# The Rust Code of Conduct

This repository follows the [Code of Conduct](https://www.rust-lang.org/policies/code-of-conduct) of the Rust organization.
Loading
Loading