about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-03-06Rollup merge of #135733 - frank-king:feature/pin-self-receiver, ↵Michael Goulet-43/+53
r=oli-obk,traviscross Implement `&pin const self` and `&pin mut self` sugars This PR implements part of #130494. It introduces the sugars `&pin const self` and `&pin mut self` for `self: Pin<&Self>` and `self: Pin<&mut Self>`.
2025-03-06Auto merge of #138039 - onur-ozkan:handle-forced-compiler-on-tools, r=jieyouxubors-86/+145
handle forced compiler and revert #137476 Fixes https://github.com/rust-lang/rust/issues/138004 I would appreciate it if we could measure CI pipelines with the current changes to see if this reduces recent CI overhead. cc `@rust-lang/infra` try-job: dist-powerpc64le-linux
2025-03-06Manual, post-`clippy --fix` cleanupsYotam Ofek-23/+18
2025-03-06Implement `Ord` by-hand instead of `PartialOrd` for `Link`Yotam Ofek-6/+12
2025-03-06`x clippy src/librustdoc --fix`Yotam Ofek-29/+24
2025-03-06Merge pull request #19290 from aibaars/patch-1Lukas Wirth-1/+17
Add warning and debug information when `cargo metadata` fails
2025-03-06Change `%e` to `?e` to include detailed error messageArthur Baars-2/+1
2025-03-06remove zip file in /tmp to save some space and use large runnerLuuuXXX-1/+2
2025-03-06Remove the `Option` part of range ends in the HIROli Scherer-8/+3
2025-03-06Don't even bother checking changelog in --dry-run modemoxian-6/+6
2025-03-06`librustdoc`: flatten nested ifsYotam Ofek-220/+203
2025-03-06Merge pull request #19295 from alibektas/rust_analyzer_run_on_cargo_tomlLukas Wirth-6/+23
fix: Make RustAnalyzer:Run available in manifest file
2025-03-06Merge from rustcThe Miri Cronjob Bot-13370/+11404
2025-03-06Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-03-06Adjust relevance scoring threshold to consistent with existing implementationsTongjun Gao-1/+1
2025-03-05Leave a breadcrumb towards bootstrap config documentationmoxian-2/+3
2025-03-05Remember silenced bootstrap changelog warnings even in --dry-runmoxian-1/+2
2025-03-05Don't suggest explicitly `cfg`-gating `trace!` calls in bootstrapmoxian-3/+1
2025-03-06fix: Make RustAnalyzer:Run available in manifest fileAli Bektas-6/+23
2025-03-05Show when build scripts fail what the errors wereAli Bektas-2/+3
2025-03-05bootstrap and compiletest: Use size_of_val from the prelude instead of importedThalia Archibald-4/+3
Use `std::mem::size_of_val` from the prelude instead of importing or qualifying it. This function was added to all preludes in Rust 1.80.
2025-03-05Simplify `rewrite_explicit_self`Frank King-67/+31
2025-03-05Implement `&pin const self` and `&pin mut self` sugarsFrank King-0/+46
2025-03-05Merge pull request #19292 from Veykril/push-zonnrrlosqmvLukas Wirth-6/+4
Fix syntax highlightingg punct filtering ignoring mods
2025-03-05Merge pull request #19279 from Natural-selection1/masterLukas Wirth-1/+51
Improve keyword completion for 'let' and 'let mut'
2025-03-05Fix syntax highlightingg punct filtering ignoring modsLukas Wirth-6/+4
2025-03-05Rollup merge of #137728 - Darksonn:no-tuple-unsize, r=oli-obk许杰友 Jieyou Xu (Joe)-76/+0
Remove unsizing coercions for tuples See https://github.com/rust-lang/rust/issues/42877#issuecomment-2686010847 and below comments for justification. Tracking issue: #42877 Fixes: #135217
2025-03-05Rollup merge of #137723 - onur-ozkan:cfg-ver-description, ↵许杰友 Jieyou Xu (Joe)-3/+26
r=pietroalbini,weihanglo Make `rust.description` more general-purpose and pass `CFG_VER_DESCRIPTION` Moves the `description` field from the `rust` section to the `build` section as it can be useful for tools and is not specific to rustc. Also passes this value to tool builds through the `CFG_VER_DESCRIPTION` env. Motivated from https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/Propagate.20rust.2Edescription.20to.20tools.20in.20dist.20build
2025-03-05Rollup merge of #137679 - bjorn3:coretests_improvements, r=jieyouxu,onur-ozkan许杰友 Jieyou Xu (Joe)-67/+24
Various coretests improvements The first commit is not yet strictly necessary as directly testing libcore works though useless work, but will be necessary once https://github.com/rust-lang/rust/pull/136642 migrates the liballoc tests into a separate package. The second commit fixes https://github.com/rust-lang/rust/issues/137478 and ensures that coretests actually gets tested on all CI job. The third commit fixes an error that didn't get caught because coretests doesn't run on the wasm32 CI job.
2025-03-05Rollup merge of #136977 - Kobzol:citool-datadog, r=marcoieni许杰友 Jieyou Xu (Joe)-5110/+790
Upload Datadog metrics with citool This removes one Python script and also the installation of the `datadog-ci` JavaScript package, along with the corresponding package and lock file. r? `@ghost`
2025-03-05Rollup merge of #136865 - jieyouxu:long-type-path-compare-mode, r=lqd许杰友 Jieyou Xu (Joe)-2/+15
Perform deeper compiletest path normalization for `$TEST_BUILD_DIR` to account for compare-mode/debugger cases, and normalize long type file filename hashes Fixes #136510. ### Summary - Whereas previously `$TEST_BUILD_DIR` is a normalization of `/path/to/build/test/<test_suite_name>/`, we now more deeply normalize. `$TEST_BUILD_DIR` now becomes a normalization of `/path/to/build/test/<test_suite_name>/<subdirs>/$name.$revision.$compare_mode.$debugger/` to normalize away path name differences when `--compare-mode` and/or `--debugger` are specified. - We also centralize the normalization of long type name hashes cf. https://github.com/rust-lang/rust/pull/136328#discussion_r1936760908. ### Review advice - Best reviewed commit-by-commit. - Split into 3 commits: - **Commit 1**: compiletest changes to have `$TEST_BUILD_DIR` more deeply normalize. - **Commit 2**: remove per-test hacks for long type path hash normalizations, and rebless tests *specifically* affected by that. - **Commit 3**: rebless other tests that were changed as a side-effect of deeper `$TEST_BUILD_DIR` normalizations. **Commit 2** is created via first finding tests that try to perform long type file hash normalizations on an ad hoc, per-test basis: ``` rg --no-ignore -l --no-ignore -F -e "long-type" tests/ui/**/*.rs ``` <details> <summary>Tests with ad hoc long-type hash normalizations</summary> ``` tests/ui/type_length_limit.rs tests/ui/traits/on_unimplemented_long_types.rs tests/ui/regions/issue-102374.rs tests/ui/recursion/recursion.rs tests/ui/recursion/issue-83150.rs tests/ui/recursion/issue-23122-2.rs tests/ui/methods/inherent-bound-in-probe.rs tests/ui/issues/issue-67552.rs tests/ui/issues/issue-37311-type-length-limit/issue-37311.rs tests/ui/issues/issue-20413.rs tests/ui/issues/issue-8727.rs tests/ui/infinite/infinite-instantiation.rs tests/ui/infinite/infinite-instantiation-struct-tail-ice-114484.rs tests/ui/higher-ranked/trait-bounds/hrtb-doesnt-borrow-self-1.rs tests/ui/higher-ranked/trait-bounds/hrtb-doesnt-borrow-self-2.rs tests/ui/higher-ranked/trait-bounds/hang-on-deeply-nested-dyn.rs tests/ui/error-codes/E0275.rs tests/ui/diagnostic-width/secondary-label-with-long-type.rs tests/ui/diagnostic-width/long-e0277.rs tests/ui/diagnostic-width/non-copy-type-moved.rs tests/ui/diagnostic-width/long-E0308.rs tests/ui/diagnostic-width/E0271.rs tests/ui/diagnostic-width/binop.rs ``` </details> These ad hoc normalizations were removed, and they are reblessed. r? `````@lqd`````
2025-03-05Rollup merge of #136581 - jieyouxu:makefile-be-gone, r=Kobzol许杰友 Jieyou Xu (Joe)-489/+20
Retire the legacy `Makefile`-based `run-make` test infra The final piece of [porting run-make tests to use Rust #121876](https://github.com/rust-lang/rust/issues/121876). Closes #121876. Closes #40713. Closes #81791 (no longer using `wc`). Closes #56475 (no longer a problem in current form of that test; we don't ignore the test on `aarch64-unknown-linux-gnu`). ### Summary This PR removes the legacy `Makefile`-based `run-make` test infra which has served us well over the years. The legacy infra is no longer needed since we ported all of `Makefile`-based `run-make` tests to the new `rmake.rs` infra. Additionally, this PR: - Removes `tests/run-make/tools.mk` since no more `Makefile`-based tests remain. - Updates `tests/run-make/README.md` and rustc-dev-guide docs to remove mention about `Makefile`-based `run-make` tests - Update test suite requirements in rustc-dev-guide on Windows to no longer need MSYS2 (they should also now run successfully on native Windows MSVC). - Update `triagebot.toml` to stop backlinking to #121876. **Thanks to everyone who helped in this effort to modernize the `run-make` test infra and test suite!** r? bootstrap
2025-03-05Rollup merge of #134063 - tgross35:dec2flt-refactoring, r=Noratrieb许杰友 Jieyou Xu (Joe)-3/+3
dec2flt: Clean up float parsing modules This is the first portion of my work adding support for parsing and printing `f16`. Changes in `float.rs` replace the magic constants with expressions and add some use of generics to better support the new float types. Everything else is related to documentation or naming; there are no functional changes in this PR. This can be reviewed by commit.
2025-03-05Merge pull request #19274 from Veykril/push-pouwrwwrlrltLukas Wirth-537/+547
Highlight unsafe operations as unsafe, not definitions
2025-03-05Use HIR unsafety information for unsafe syntax highlightngLukas Wirth-537/+547
2025-03-05Improve tracing log format in cargo_workspace.rsArthur Baars-1/+3
2025-03-05disable link libstdc++ staticallyLuuuXXX-1/+5
2025-03-05bless bootstrap testsonur-ozkan-1/+0
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-03-05Increase the max. custom try jobs requested to `20`Jakub Beránek-2/+6
2025-03-05Apply review remarksJakub Beránek-2/+3
2025-03-05Remove Python metric upload script and package.jsonJakub Beránek-5095/+0
2025-03-05Upload Datadog average CPU usage metric in citoolJakub Beránek-15/+785
2025-03-05Make citool compilation fasterJakub Beránek-0/+4
2025-03-05Revert "avoid `compiler_for` for dist tools and force the current compiler"onur-ozkan-11/+47
This reverts commit 50f84129e66de867a735ee836339e8ed9dd7425e.
2025-03-05handle forced compiler in `get_tool_rustc_compiler`onur-ozkan-0/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-03-05add new field `forced_compiler` to `Compiler`onur-ozkan-75/+97
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-03-05Add warning and debug information when `cargo metadata` failsArthur Baars-1/+16
The errors are silently dropped elsewhere, which make it really hard to debug issues due to dependency download failures.
2025-03-05tidy: add check to verify paths in triagebot.tomlklensy-0/+97
2025-03-05add test cases for 'letm' keyword completionTongjun Gao-0/+19
2025-03-05trim channel value in `get_closest_merge_commit`onur-ozkan-1/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>