about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2025-03-07Merge pull request #4223 from Stypox/ctrl-c-backtraceRalf Jung-1/+5
Show interpreter backtrace error on Ctrl+C
2025-03-07Temporarily depend on `os_pipe` in `run-make-support` and re-export it许杰友 Jieyou Xu (Joe)-0/+6
For `broken-pipe-no-ice` until std `anonymous_pipe` stabilizes.
2025-03-07Prevent `rmake.rs` from using any nightly/unstable features许杰友 Jieyou Xu (Joe)-0/+5
2025-03-07Make synthetic RPITIT assoc ty name handling more rigorous.Nicholas Nethercote-3/+3
Currently it relies on special treatment of `kw::Empty`, which is really easy to get wrong. This commit makes the special case clearer in the type system by using `Option`. It's a bit clumsy, but the synthetic name handling itself is a bit clumsy; better to make it explicit than sneak it in. Fixes #133426.
2025-03-07Fix a typo in the crashtest output.Nicholas Nethercote-1/+1
2025-03-07Show interpreter backtrace error on Ctrl+CStypox-1/+5
See https://github.com/rust-lang/rust/pull/111769
2025-03-07Merge pull request #19308 from Veykril/push-rnrxutwlvmlyLukas Wirth-23/+1174
Move loaded project MSRV back to 1.78, show notification for the warning
2025-03-07Pop up a notification for the MSRV project loading warningLukas Wirth-16/+29
2025-03-07Move project MSRV back to 1.78Lukas Wirth-7/+1145
2025-03-07Refactor relevance scoring to use a named constant BASE_SCORETongjun Gao-3/+5
Replace magic number with a named constant for improved readability and maintainability of the scoring logic
2025-03-07Fix logical error in relevance scoring implementationTongjun Gao-3/+3
2025-03-07Merge pull request #4222 from rust-lang/rustup-2025-03-07Ben Kimock-115/+192
Automatic Rustup
2025-03-07Merge from rustcThe Miri Cronjob Bot-114/+191
2025-03-07Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-03-07Merge pull request #4221 from saethlin/nextest-parallelismBen Kimock-2/+1
Update documentation about nextest
2025-03-07Auto merge of #138127 - compiler-errors:rollup-kcarqrz, r=compiler-errorsbors-1/+0
Rollup of 17 pull requests Successful merges: - #137827 (Add timestamp to unstable feature usage metrics) - #138041 (bootstrap and compiletest: Use `size_of_val` from the prelude instead of imported) - #138046 (trim channel value in `get_closest_merge_commit`) - #138053 (Increase the max. custom try jobs requested to `20`) - #138061 (triagebot: add a `compiler_leads` ad-hoc group) - #138064 (Remove - from xtensa targets cpu names) - #138075 (Use final path segment for diagnostic) - #138078 (Reduce the noise of bootstrap changelog warnings in --dry-run mode) - #138081 (Move `yield` expressions behind their own feature gate) - #138090 (`librustdoc`: flatten nested ifs) - #138092 (Re-add `DynSend` and `DynSync` impls for `TyCtxt`) - #138094 (a small borrowck cleanup) - #138098 (Stabilize feature `const_copy_from_slice`) - #138103 (Git ignore citool's target directory) - #138105 (Fix broken link to Miri intrinsics in documentation) - #138108 (Mention me (WaffleLapkin) when changes to `rustc_codegen_ssa` occur) - #138117 ([llvm/PassWrapper] use `size_t` when building arg strings) r? `@ghost` `@rustbot` modify labels: rollup
2025-03-07Merge pull request #4218 from saethlin/tier-2-sysrootsBen Kimock-0/+1
Fix tier 2 sysroots job
2025-03-06Update documentation about nextestBen Kimock-2/+1
2025-03-06Fix tier 2 sysroots jobBen Kimock-0/+1
2025-03-06Auto merge of #138114 - compiler-errors:rollup-7xr4b69, r=compiler-errorsbors-105/+176
Rollup of 25 pull requests Successful merges: - #135733 (Implement `&pin const self` and `&pin mut self` sugars) - #135895 (Document workings of successors more clearly) - #136922 (Pattern types: Avoid having to handle an Option for range ends in the type system or the HIR) - #137303 (Remove `MaybeForgetReturn` suggestion) - #137327 (Undeprecate env::home_dir) - #137358 (Match Ergonomics 2024: add context and examples to the unstable book) - #137534 ([rustdoc] hide item that is not marked as doc(inline) and whose src is doc(hidden)) - #137565 (Try to point of macro expansion from resolver and method errors if it involves macro var) - #137637 (Check dyn flavor before registering upcast goal on wide pointer cast in MIR typeck) - #137643 (Add DWARF test case for non-C-like `repr128` enums) - #137744 (Re-add `Clone`-derive on `Thir`) - #137758 (fix usage of ty decl macro fragments in attributes) - #137764 (Ensure that negative auto impls are always applicable) - #137772 (Fix char count in `Display` for `ByteStr`) - #137798 (ci: use ubuntu 24 on arm large runner) - #137802 (miri native-call support: all previously exposed provenance is accessible to the callee) - #137805 (adjust Layout debug printing to match the internal field name) - #137808 (Do not require that unsafe fields lack drop glue) - #137820 (Clarify why InhabitedPredicate::instantiate_opt exists) - #137825 (Provide more context on resolve error caused from incorrect RTN) - #137834 (rustc_fluent_macro: use CARGO_CRATE_NAME instead of CARGO_PKG_NAME) - #137868 (Add minimal platform support documentation for powerpc-unknown-linux-gnuspe) - #137910 (Improve error message for `AsyncFn` trait failure for RPIT) - #137920 (interpret/provenance_map: consistently use range_is_empty) - #138038 (Update `compiler-builtins` to 0.1.151) r? `@ghost` `@rustbot` modify labels: rollup
2025-03-07Mark `rust-analyzer.showSyntaxTree` config option as requiring server restartChayim Refael Friedman-0/+1
We register the provider when we start the server. It confused me why I set the option and it didn't work, so probably better to have it hint people.
2025-03-06Fix rustfmtSantiago Pastorino-0/+5
2025-03-06Fix clippySantiago Pastorino-5/+44
2025-03-06Rollup merge of #138041 - ↵Michael Goulet-1/+0
thaliaarchi:use-prelude-size-of.boostrap-compiletest, r=jieyouxu bootstrap and compiletest: Use `size_of_val` from the prelude instead of imported 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. r? ``@jieyouxu``
2025-03-06Add second precondition for `skip_search`.Markus Reiter-28/+89
2025-03-06Allow optimizing out `panic_bounds_check` in Unicode checks.Markus Reiter-14/+31
2025-03-06Update stdarchEric Huss-9/+15
2025-03-06Warn the user when a rename will change the meaning of the programChayim Refael Friedman-59/+509
Specifically, when a rename of a local will change some code that refers it to refer another local, or some code that refer another local to refer to it. We do it by introducing a dummy edit with an annotation. I'm not a fond of this approach, but I don't think LSP has a better way.
2025-03-06Use correct crate for trait env in `render_const_scalar()`Chayim Refael Friedman-5/+7
2025-03-06Pass the target crate in `HirFormatter`Chayim Refael Friedman-499/+824
This is required to format evaluated consts, because we need trait env, and it needs the crate (currently it uses the last crate in topological order, which is wrong, the next commit will fix that).
2025-03-06Normalize projections in evaluated const display and layout calculationChayim Refael Friedman-0/+39
2025-03-06Rollup merge of #137802 - RalfJung:miri-native-call-exposed, r=oli-obkMichael Goulet-54/+120
miri native-call support: all previously exposed provenance is accessible to the callee When Miri invokes a native C function, the memory C can access needs to be "prepared": to avoid false positives, we need to consider all that memory initialized, and we need to consider it to have arbitrary provenance. So far we did this for all pointers passed to C, but not for pointers that were exposed already before the native call. This PR adjusts the logic so that we now "prepare" all memory that has ever been exposed. This fixes cases such as: - cast a pointer to integer, send that integer to C, and access the memory there (`test_pass_ptr_as_int`) - send a pointer to some memory to C, which stores it somewhere; then in Rust store another pointer in that memory, and access that via C (`test_pass_ptr_via_previously_shared_mem`) r? `````@oli-obk`````
2025-03-06Rollup merge of #136922 - oli-obk:pattern-types-option-ends, r=BoxyUwUMichael Goulet-8/+3
Pattern types: Avoid having to handle an Option for range ends in the type system or the HIR Instead, 1. during hir_ty_lowering, we now generate constants for the min/max when the range doesn't have a start/end specified. 2. in a later commit we generate those constants during ast lowering, simplifying everything further by not having to handle the range end inclusivity anymore in the type system (and thus avoiding any issues of `0..5` being different from `0..=4` I think it makes all the type system code simpler, and the cost of the extra `ConstKind::Value` processing seems negligible. r? `@BoxyUwU` cc `@joshtriplett` `@scottmcm`
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-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 the `Option` part of range ends in the HIROli Scherer-8/+3
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-4908/+6330
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-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-1/+0
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)-49/+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