about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
AgeCommit message (Collapse)AuthorLines
2025-01-30Distinguish between "nothing to pull" and "pull error" in josh-syncJakub Beránek-7/+32
2025-01-30Rework rustc_dump_vtableMichael Goulet-1/+1
2025-01-30Auto merge of #136038 - compiler-errors:outlives, r=lcnrbors-2/+2
Simplify and consolidate the way we handle construct `OutlivesEnvironment` for lexical region resolution This is best reviewed commit-by-commit. I tried to consolidate the API for lexical region resolution *first*, then change the API when it was finally behind a single surface. r? lcnr or reassign
2025-01-30feat: modify developing with nix sectionchiichen-19/+12
2025-01-30chore: discard padding white spacechiichen-7/+7
2025-01-30Rollup merge of #136254 - BoxyUwU:rdg-push, r=KobzolStuart Cook-41/+55
Rustc dev guide subtree update r? `@Kobzol`
2025-01-29Rustc pullBoxy-56/+106
2025-01-29Merge pull request #2227 from Joren-vanGoethem/master许杰友 Jieyou Xu (Joe)-1/+0
2025-01-29Merge pull request #2231 from yegeunyang/#2069许杰友 Jieyou Xu (Joe)-0/+4
2025-01-28Touch up a sentenceyegeunyang-1/+1
2025-01-29Merge pull request #2232 from yegeunyang/#2114许杰友 Jieyou Xu (Joe)-1/+1
Add a link to declare_lint! macro doc in diagnostics.md
2025-01-28Add link to declare_lint! macroyegeunyang-1/+1
2025-01-28Add "Writing tests" sectionyegeunyang-0/+4
2025-01-28Make crate AST mutation accessible for driver callbackMohammad Omidvar-2/+2
2025-01-28Move outlives env computation into methodsMichael Goulet-2/+2
2025-01-28Add some extra pointers for rustdoc frontend devsMichael Howell-0/+9
2025-01-28Merge from rustcBoxy-55/+105
2025-01-28Preparing for merge from rustcBoxy-1/+1
2025-01-28Update about-this-guide.mdJoren-vanGoethem-1/+0
2025-01-27Fix rustc-pull CI's bash commandsJakub Beránek-2/+2
2025-01-26Merge pull request #2223 from marxin/CI-cache-restore-keyNoah Lev-2/+4
CI: use key-restore for cache GH action
2025-01-26Correct information on dylib compressionEric Huss-1/+1
Compression of dylibs was removed in https://github.com/rust-lang/rust/pull/113695 (and decompression removed in https://github.com/rust-lang/rust/pull/132402).
2025-01-27rustc-dev-guide: update bootstrap tracing docs许杰友 Jieyou Xu (Joe)-32/+58
2025-01-26Remove accidental leading empty line in code blockLeón Orell Valerian Liehr-1/+1
2025-01-25Update boring lines to sync with rustdocEric Huss-31/+31
2025-01-25CI: use key-restore for cache GH actionMartin Liska-2/+4
It seems one can't overwrite a cache entry: ``` Failed to save: Unable to reserve cache with key linkcheck--0.8.1, another job may be creating this cache. More details: Cache already exists. Scope: refs/heads/master, Key: linkcheck--0.8.1, Version: 33f8fd511bed9c91c40778bc5c27cb58425caa894ab50f9c5705d83cb78660e0 Warning: Cache save failed. ``` A proper solution is to use `restore-keys`: https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
2025-01-25Merge pull request #2221 from ada4a/patch-1Yuki Okushi-1/+1
2025-01-24Rollup merge of #135829 - Kobzol:rustc-push, r=jieyouxuMatthias Krüger-106/+184
Rustc dev guide subtree update r? ``@ghost``
2025-01-24Rollup merge of #135950 - Kobzol:tidy-python-improvements, r=onur-ozkanMatthias Krüger-3/+25
Tidy Python improvements Fixes display of Python formatting diffs in tidy, and refactors the code to make it simpler and more robust. Also documents Python formatting and linting in the Rustc dev guide. Fixes: https://github.com/rust-lang/rust/issues/135942 r? `@onur-ozkan`
2025-01-24Rollup merge of #135926 - jieyouxu:needs-subprocess-thread, r=oli-obkMatthias Krüger-1/+2
Implement `needs-subprocess` directive, and cleanup a bunch of tests to use `needs-{subprocess,threads}` ### Summary Closes #128295. - Implements `//@ needs-subprocess` directive in compiletest as requested in #128295. However, compiletest is a host tool, so we can't just try to spawn process because that spawns the process on *host*, not the *target*, under cross-compilation scenarios. - The short-term solution is to add *Yet Another* list of allow-list targets. - The long-term solution is to first check if a `$target` supports std, then try to run a binary to do run-time capability detection *on the target*. But that is tricky because you have to build-and-run a binary *for the target*. - This PR picks the short-term solution, because the long-term solution is highly non-trivial, and it's already an improvement over individual `ignore-*`s all over the place. - Opened an issue about the long-term solution in #135928. - Documents `//@ needs-subprocess` in rustc-dev-guide. - Replace `ignore-{wasm,wasm32,emscripten,sgx}` with `needs-{subprocess,threads}` where suitable in tests. - Some drive-by test changes as I was trying to figure out if I could use `needs-{subprocess,threads}` and found some bits needlessly distracting. Count of tests that use `ignore-{wasm,wasm32,emscripten,sgx}` before and after this PR: | State | `ignore-sgx` | `ignore-wasm` | `ignore-emscripten` | | - | - | - | - | | Before this PR | 96 | 88 | 207 | | After this PR | 36 | 38 | 61 | <details> <summary>Commands used to find out locally</summary> ``` --- before [17:40] Joe:rust (fresh) | rg --no-ignore -l "ignore-sgx" tests | wc -l 96 [17:40] Joe:rust (fresh) | rg --no-ignore -l "ignore-wasm" tests | wc -l 88 [17:40] Joe:rust (fresh) | rg --no-ignore -l "ignore-emscripten" tests | wc -l 207 --- after [17:39] Joe:rust (needs-subprocess-thread) | rg --no-ignore -l "ignore-sgx" tests | wc -l 36 [17:39] Joe:rust (needs-subprocess-thread) | rg --no-ignore -l "ignore-wasm" tests | wc -l 38 [17:39] Joe:rust (needs-subprocess-thread) | rg --no-ignore -l "ignore-emscripten" tests | wc -l 61 ``` </details> ### Review advice - Best reviewed commit-by-commit. - Non-trivial test changes (not mechanically simple replacements) are split into individual commits to help with review. Their individual commit messages give some basic description of the changes. - I *could* split some test changes out into another PR, but I found that I needed to change some tests to `needs-threads`, some to `needs-subprocess`, and some needed to use *both*, so they might conflict and become very annoying. --- r? ``@ghost`` (need to run try jobs) try-job: x86_64-msvc-1 try-job: i686-msvc-1 try-job: i686-mingw try-job: x86_64-mingw-1 try-job: x86_64-apple-1 try-job: aarch64-apple try-job: aarch64-gnu try-job: test-various try-job: armhf-gnu
2025-01-24Cross-link documentation for adding a new targetMads Marquart-0/+5
Both the target tier policy and the rustc-dev-guide has documentation on this, let's make sure people see both.
2025-01-24fix(solve/significant-changes): typoAda Alakbarova-1/+1
2025-01-24Revert "Add `@bors rollup=never` to rustc-push PR body"Jakub Beránek-1/+1
2025-01-24Document Python formatting and linting in the rustc-dev-guideJakub Beránek-3/+25
2025-01-24Rollup merge of #135489 - RalfJung:TryFromSliceError, r=tgross35Matthias Krüger-1/+2
remove pointless allowed_through_unstable_modules on TryFromSliceError This got added in https://github.com/rust-lang/rust/pull/132482 but the PR does not explain why. `@lukas-code` do you still remember? Also Cc `@Noratrieb` as reviewer of that PR. If I understand the issue description correctly, all paths under which this type is exported are stable now: `core::array::TryFromSliceError` and `std::array::TryFromSliceError`. If that is the case, we shouldn't have the attribute; it's a terrible hack that should only be used when needed to maintain backward compatibility. Getting some historic information right is IMO *not* sufficient justification to risk accidentally exposing this type via more unstable paths today or in the future.
2025-01-23Rollup merge of #135880 - bjorn3:misc_driver_refactors, r=oli-obkMatthias Krüger-18/+16
Get rid of RunCompiler The various `set_*` methods that have been removed can be replaced by setting the respective fields in the `Callbacks::config` implementation. `set_using_internal_features` was often forgotten and it's equivalent is now done automatically.
2025-01-23rustc-dev-guide: document `needs-subprocess` directive许杰友 Jieyou Xu (Joe)-1/+2
2025-01-23Remove RunCompilerbjorn3-6/+6
It has become nothing other than a wrapper around run_compiler.
2025-01-23Remove set_make_codegen_backend and set_file_loaderbjorn3-14/+12
They can both be set inside the config callback too.
2025-01-21Add `@bors rollup=never` to rustc-push PR bodyJakub Beránek-1/+1
2025-01-21Add test for checking used glibc symbolsJakub Beránek-0/+2
2025-01-20Send a message to Zulip when a sync finishesJakub Beránek-2/+32
2025-01-20Merge pull request #2215 from Kobzol/pullJakub Beránek-6/+119
rustc pull
2025-01-20Merge from rustcJakub Beránek-5/+118
2025-01-20Preparing for merge from rustcJakub Beránek-1/+1
2025-01-20Add portable SIMD to list of subtreesJakub Beránek-0/+2
2025-01-20docs: document how to install a suitable `josh-proxy` locally许杰友 Jieyou Xu (Joe)-0/+7
Co-authored-by: Boxy <rust@boxyuwu.dev>
2025-01-19Fix dev guide docs for error-patternNoratrieb-1/+2
I know it would have made more sense to make this PR to the dev guide repo but I had already made the fix before I realized that.
2025-01-18Merge pull request #2211 from patrickoliveira15/patch/inference-invarianceYuki Okushi-3/+0
2025-01-17remove outdated text about wfx impliesPatrick Oliveira-3/+0