about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-01-13Rollup merge of #135452 - jieyouxu:fix-comment, r=compiler-errorsJacob Pratt-1/+1
bootstrap: fix outdated feature name in comment Follow-up to https://github.com/rust-lang/rust/pull/135391#discussion_r1912826594. I guess I updated everything else **except** the comment right next to the actual dependencies 💀 r? bootstrap
2025-01-14bootstrap: fix outdated feature name in comment许杰友 Jieyou Xu (Joe)-1/+1
2025-01-13Mark rustbook as an external toolEric Huss-1/+5
It has been a bit of a pain trying to keep the lints in sync across the submodule repositories, so the just turns it off.
2025-01-13Update booksrustbot-0/+0
2025-01-13Auto merge of #135430 - jhpratt:rollup-39cecwd, r=jhprattbors-23/+404
Rollup of 3 pull requests Successful merges: - #135355 (ci: added test log format for ci) - #135386 (clean up code related to the rustdoc-js test suite) - #135391 (bootstrap: Implement conditional `tracing` infra) r? `@ghost` `@rustbot` modify labels: rollup
2025-01-13Rollup merge of #135391 - jieyouxu:conditional-tracing, r=onur-ozkanJacob Pratt-6/+341
bootstrap: Implement conditional `tracing` infra Add a conditional `tracing` setup that is gated behind `BOOTSTRAP_TRACING` env var. This `tracing` infra is implemented by: - Introducing an optional `tracing` cargo feature in bootstrap. - Added optional `tracing*` dependencies which are gated behind the `tracing` cargo feature. - When `BOOTSTRAP_TRACING` is set, `bootstrap.py` will build bootstrap with `--features=tracing`. There is a small trick here to share `BOOTSTRAP_TRACING` env var without having to add a separate env var: - `BOOTSTRAP_TRACING=1` is not a registered `tracing` filter target, so that can be used to enable the `tracing` cargo feature yet not actually enable any tracing logs (useful for editor r-a setups without actually outputting any tracing logs). - `BOOTSTRAP_TRACING=TRACE` and such are actually valid `tracing` filters, but that sets `BOOTSTRAP_TRACING` anyway. Example usage: https://github.com/rust-lang/rust/pull/135299 (that experimental PR is not conditionally gated) This PR is intentionally kept minimal to focus on the infra itself. To get actual mileage, instrumentations will need to be added to individual `Step`s and such. r? `@onur-ozkan` (or reroll)
2025-01-13Rollup merge of #135386 - lolbinarycat:bootstrap-test-cleanup, r=jieyouxuJacob Pratt-14/+14
clean up code related to the rustdoc-js test suite r? `@jieyouxu`
2025-01-13Rollup merge of #135355 - ranger-ross:improved-ci-logs, r=onur-ozkanJacob Pratt-3/+49
ci: added test log format for ci This PR adds a new test render format specifically for ci. The goal as stated in #134910 is to make reviewing test failures in CI easier. See the new test output format in the CI for this PR ([here](https://github.com/rust-lang/rust/actions/runs/12723914643/job/35469515397?pr=135355)) closes #134910 cc: `@jyn514`
2025-01-13rustc-dev-guide: document `BOOTSTRAP_TRACING` and bootstrap `tracing` setup许杰友 Jieyou Xu (Joe)-0/+104
2025-01-13Auto merge of #135352 - notriddle:notriddle/stability-shown, r=camelidbors-1/+20
rustdoc: use import stability marker in display Fixes #135078
2025-01-13bootstrap.py: build bootstrap binary with `--features=tracing` if ↵许杰友 Jieyou Xu (Joe)-0/+4
`BOOTSTRAP_TRACING` env var is set
2025-01-13bootstrap: add `tracing` and `tracing-tree` based tracing setup许杰友 Jieyou Xu (Joe)-1/+36
2025-01-13bootstrap: add optional `tracing` cargo feature and optional `tracing*` deps许杰友 Jieyou Xu (Joe)-5/+197
2025-01-12Rollup merge of #135411 - Urgau:unreach_pub-run-make, r=jieyouxuGuillaume Gomez-0/+1
run_make_support: add `#![warn(unreachable_pub)]` This PR enables the [`unreachable_pub`](https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html#unreachable-pub) lint as warn in the `run_make_support` crate. Related to https://github.com/rust-lang/compiler-team/issues/773 r? ``@jieyouxu``
2025-01-12Rollup merge of #135407 - joshtriplett:more-clippy, r=compiler-errorsGuillaume Gomez-2/+26
Deny various clippy lints Almost all of these clippy lints have zero occurrences. Two of them have one each, and this PR fixes those.
2025-01-12Rollup merge of #135348 - aDotInTheVoid:pathspathspaths, r=GuillaumeGomezGuillaume Gomez-13/+140
rustdoc-json: Include items in stripped modules in `Crate::paths`. Closes #135309 When we're running rustdoc-json, we should err on the side of adding more items to `Cache::paths`, as that directly becomes `Crate::paths` in the output. r? ``@GuillaumeGomez.`` Best reviewed commit-by-commit.
2025-01-12Auto merge of #135281 - onur-ozkan:build-stamps, r=jieyouxubors-362/+429
centralize build stamp logic This PR brings all the stamp file handling into one place inside `build_stamp` module, which takes care of everything related to build stamps. By doing this, we cut down on duplicated code and types and keep the codebase easier to maintain and more consistent. Main goals are: - Make stamp handling stricter so we don't have to pass `Path`s around and manually `join` on arbitrary directories - Keep all stamp-related logic in one place - Make it easier to test and debug - Avoid duplication - Keep things simple and well-documented Resolves #134962
2025-01-12run_make_support: add `#![warn(unreachable_pub)]`Urgau-0/+1
2025-01-12Auto merge of #135402 - matthiaskrgr:rollup-cz7hs13, r=matthiaskrgrbors-3/+34
Rollup of 6 pull requests Successful merges: - #129259 (Add inherent versions of MaybeUninit methods for slices) - #135374 (Suggest typo fix when trait path expression is typo'ed) - #135377 (Make MIR cleanup for functions with impossible predicates into a real MIR pass) - #135378 (Remove a bunch of diagnostic stashing that doesn't do anything) - #135397 (compiletest: add erroneous variant to `string_enum`s conversions error) - #135398 (add more crash tests) r? `@ghost` `@rustbot` modify labels: rollup
2025-01-12Deny `clippy::four_forward_slashes` in library (no occurrences)Josh Triplett-0/+1
2025-01-12Deny `clippy::to_string_in_format_args` (no occurrences)Josh Triplett-0/+2
2025-01-12Deny `clippy::single_char_add_str` (no occurrences)Josh Triplett-0/+2
2025-01-12Deny `clippy::same_item_push` (no occurrences)Josh Triplett-0/+2
2025-01-12Deny `clippy::print_literal` (no occurrences)Josh Triplett-0/+2
2025-01-12Deny `clippy::needless_bool` and `clippy::needless_bool_assign` (no occurrences)Josh Triplett-0/+4
2025-01-12Deny `clippy::non_minimal_cfg` (no occurrences)Josh Triplett-0/+2
2025-01-12Deny `clippy::char_lit_as_u8` (no occurrences)Josh Triplett-1/+5
2025-01-12Deny `clippy:;four_forward_slashes` and fix the only occurrenceJosh Triplett-0/+1
2025-01-12Deny `clippy::format_in_format_args` and fix the only occurrenceJosh Triplett-1/+5
2025-01-12Auto merge of #135262 - mrkajetanp:ci-aarch64-dist-reland, r=Kobzolbors-95/+134
ci: Move dist-aarch64-linux to an aarch64 runner Move the dist-aarch64-linux CI job to an aarch64 runner instead of cross-compiling it from an x86 one. This will make it possible to perform optimisations such as LTO, PGO and BOLT later on. r? `@Kobzol` Reland of #133809 now that the higher page sizes are fixed. try-job: dist-aarch64-linux try-job: dist-x86_64-linux try-job: dist-i686-linux
2025-01-12Rollup merge of #135389 - jieyouxu:fix-stage0-rustdoc-rmake, r=onur-ozkanMatthias Krüger-3/+11
compiletest: include stage0-sysroot libstd dylib in recipe dylib search path To fix some of the failures in `COMPILETEST_FORCE_STAGE0=1 ./x test run-make --stage 0`. Specifically, ``` COMPILETEST_FORCE_STAGE0=1 ./x test tests/run-make/rustdoc-default-output/ --stage 0 ``` should now pass. Fixes #135373. (As in, make *some* of the `run-make` tests pass, other `run-make` tests fail for various reasons against stage0, and generally `run-make` tests are not guaranteed to pass at stage 0.) cc `@lolbinarycat` r? bootstrap
2025-01-12Rollup merge of #135375 - lolbinarycat:bootstrap-allow-stage0-rustdoc-js, ↵Matthias Krüger-1/+4
r=jieyouxu allow rustdoc-js tests to be run at stage0 this mirrors the behavior of rustdoc-js-std tests. previously this required COMPILETEST_FORCE_STAGE0.
2025-01-12add error message to `string_enum!`s string conversionsRémy Rakic-4/+4
2025-01-12add test for `string_enum`Rémy Rakic-0/+31
2025-01-12update doc-comment of `BuildStamp::add_stamp`onur-ozkan-1/+3
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12rename run_js_doc_test to run_rustdoc_js_testbinarycat-4/+4
2025-01-12rename `done_stamp` to `lld_stamp`onur-ozkan-3/+3
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12rustc-dev-guide: update outdated LLVM stamp filenameonur-ozkan-1/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12add change entry for renamingsonur-ozkan-0/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12avoid magical `AsRef<Path>` implementationonur-ozkan-29/+37
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12refactor `with_stamp` as `add_stamp` for incrementalityonur-ozkan-14/+13
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12extend sanitizers stamp calculationonur-ozkan-7/+13
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12run git only inside the current directoryonur-ozkan-0/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12migrate lld build stamponur-ozkan-5/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12apply minor improvements on build_stamponur-ozkan-1/+4
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12migrate `program_out_of_date` to `BuildStamp::is_up_to_date`onur-ozkan-46/+20
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12add coverage for `BuildStamp::with_prefix`onur-ozkan-0/+16
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12fix an invalid prefix usage on enzymeonur-ozkan-1/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12fix compiler errorsonur-ozkan-2/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-12migrate `generate_smart_stamp_hash`onur-ozkan-55/+55
Signed-off-by: onur-ozkan <work@onurozkan.dev>