about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-01-13Included Abdroid to an epoll test targetsYoh Deadfall-1/+1
2025-01-13Illumos: Added epoll and eventfdYoh Deadfall-8/+41
2025-01-13for purely return-type based searches, deprioritize clone-like functionsbinarycat-0/+46
A clone-like function in a function that takes as an argument the type that it returns. However, functions that return a type variable are not counted as clone-line. Because we're not unifying the whole function at once, a function like `U -> T` would otherwise be counted as "clone-like" because the generics will just unify with anything when done seperatly. Co-authored-by: Michael Howell <michael@notriddle.com>
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-13Fix another bug when reaching macro expansion limit caused a stack overflowChayim Refael Friedman-0/+31
This time without missing bindings. Solve it by returning to the old ways, i.e. just throw the extra nodes away. In other words, I acknowledge defeat.
2025-01-13ci: Enable opt-dist for dist-aarch64-linux buildsKajetan Puchalski-10/+36
Enable optimised AArch64 dist builds with the opt-dist pipeline. For the time being, disable bolt on aarch64 due to upstream bolt bugs.
2025-01-13rustdoc: Eliminate `AttributesExt`Noah Lev-46/+23
The new code is more explicit and avoids trait magic that added needless complexity to this part of rustdoc.
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-13Added deref_poiner_as in _NSGetExecutablePathgeetanshjuneja-1/+1
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-12rustdoc: Extract `AttributesExt::lists` trait method as functionNoah Lev-35/+24
The two implementations were identical, so there's no need to use a trait method.
2025-01-12rustdoc: Extract `AttributesExt::cfg` trait method as functionNoah Lev-83/+88
It's never overridden, so it shouldn't be on the trait.
2025-01-12bootstrap: do not rely on LIBRARY_PATH env variableAudrey Dutcher-34/+17
Clang will not respect this value in cross configurations.
2025-01-13Detect unstable lint docs that dont enable their featureMichael Goulet-10/+28
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-12Fixup: fix clang command lines in another fileAlan Somers-3/+3
2025-01-12Added Android to epoll and eventfd test targetsYoh Deadfall-3/+3
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-12Merge pull request #4135 from RalfJung/unsup-targetsRalf Jung-166/+185
Add FreeBSD maintainer; test all of Solarish
2025-01-12turns out Solarish targets support our entire test suiteRalf Jung-10/+16
2025-01-12remove a rustfmt::skipRalf Jung-155/+168
2025-01-12record YohDeadfall as FreeBSD maintainerRalf Jung-1/+1
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-12internal: Compute inlay hint tooltips lazilyLukas Wirth-16/+47
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-12Fix text edits for discriminant hintsLukas Wirth-2/+33
2025-01-12internal: Compute inlay hint text edits lazilyLukas Wirth-56/+118
2025-01-12fix: Fix `ref` text edit for binding mode hintsLukas Wirth-2/+27
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