about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2025-02-14Rollup merge of #136983 - ehuss:misc-2024-prep, r=tgross35Jubilee-0/+6
Prepare standard library for Rust 2024 migration This includes a variety of commits preparing the standard library for migration to Rust 2024. The actual migration is blocked on a few things, so I wanted to get this out of the way in a relatively digestable PR.
2025-02-14add x86-sse2 (32bit) ABI that requires SSE2 target featureRalf Jung-0/+5
2025-02-14miri: shims for `erf` & friendsPavel Grigorenko-0/+15
2025-02-14Bless miri tests after applying unsafe_op_in_unsafe_fnEric Huss-4/+4
2025-02-14Rollup merge of #136958 - compiler-errors:additive-replacmeent, r=estebankMatthias Krüger-29/+18
Fix presentation of purely "additive" replacement suggestion parts #127541 changes replacement suggestions to use the "diff" view always, which I think is really verbose in cases where a replacement snippet is a "superset" of the snippet that is being replaced. Consider: ``` LL - Self::Baz: Clone, LL + Self::Baz: Clone, T: std::clone::Clone ``` In this code, we suggest replacing `", "` with `", T: std::clone::Clone"`. This is a consequence of how the snippet is constructed. I believe that since the string that is being replaced is a subset of the replacement string, it's not providing much value to present this as a diff. Users should be able to clearly understand what's being suggested here using the `~` underline view we've been suggesting for some time now. Given that this affects ~100 tests out of the ~1000 UI tests affected, I expect this to be a pretty meaningful improvement of the fallout of #127541. --- In the last commit, this PR also "trims" replacement parts so that they are turned into their purely additive subset, if possible. See the diff for what this means. --- r? estebank
2025-02-14generate-copyright: pass the list of manifests from bootstrapPietro Albini-10/+31
2025-02-14generate-copyright: pass the source root from bootstrapPietro Albini-3/+4
2025-02-14Remove the build script for miribjorn3-12/+7
Setting the TARGET env var can be replaced with using rustc_session::config::host_tuple at runtime. And the check-cfg can be replaced with using the lints section in Cargo.toml.
2025-02-14Trim suggestion parts to the subset that is purely additiveMichael Goulet-29/+18
2025-02-13add cargo's git checkouts to the list of paths to mark as read-only in vscodeJacob Lifshay-0/+1
2025-02-13library: Update rand to 0.9.0Eric Huss-0/+6
2025-02-13Make `-O` mean `-C opt-level=3`clubby789-1/+1
2025-02-14internal: Remove mutable syntax tree usages from `add_missing_match_arms` assistShoyu Vanilla-113/+66
2025-02-13Auto merge of #136593 - lukas-code:ty-value-perf, r=oli-obkbors-3/+4
valtree performance tuning Summary: This PR makes type checking of code with many type-level constants faster. After https://github.com/rust-lang/rust/pull/136180 was merged, we observed a small perf regression (https://github.com/rust-lang/rust/pull/136318#issuecomment-2635562821). This happened because that PR introduced additional copies in the fast reject code path for consts, which is very hot for certain crates: https://github.com/rust-lang/rust/blob/6c1d960d88dd3755548b3818630acb63fa98187e/compiler/rustc_type_ir/src/fast_reject.rs#L486-L487 This PR improves the performance again by properly interning the valtrees so that copying and comparing them becomes faster. This will become especially useful with `feature(adt_const_params)`, so the fast reject code doesn't have to do a deep compare of the valtrees. Note that we can't just compare the interned consts themselves in the fast reject, because sometimes `'static` lifetimes in the type are be replaced with inference variables (due to canonicalization) on one side but not the other. A less invasive alternative that I considered is simply avoiding copies introduced by https://github.com/rust-lang/rust/pull/136180 and comparing the valtrees it in-place (see commit: https://github.com/rust-lang/rust/commit/9e91e50ac5920f0b9b4a3b1e0880c85336ba5c64 / perf results: https://github.com/rust-lang/rust/pull/136593#issuecomment-2642303245), however that was still measurably slower than interning. There are some minor regressions in secondary benchmarks: These happen due to changes in memory allocations and seem acceptable to me. The crates that make heavy use of valtrees show no significant changes in memory usage.
2025-02-13Windows: Update generated bindings to 0.59Chris Denton-3/+2
2025-02-13Merge pull request #19141 from Wilfred/split_editorsLukas Wirth-618/+635
manual: Separate out installation and configuration pages
2025-02-13Merge from rustcThe Miri Cronjob Bot-1555/+2420
2025-02-13Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-02-13intern valtreesLukas Markeffsky-3/+4
2025-02-12Auto merge of #135994 - 1c3t3a:rename-unsafe-ptr, r=oli-obkbors-15/+15
Rename rustc_middle::Ty::is_unsafe_ptr to is_raw_ptr The wording unsafe pointer is less common and not mentioned in a lot of places, instead this is usually called a "raw pointer". For the sake of uniformity, we rename this method. This came up during the review of https://github.com/rust-lang/rust/pull/134424. r? `@Noratrieb`
2025-02-12Apply cfg.setTest to json projectsDavid Richey-44/+50
2025-02-13Delete useless commaasuto15-1/+1
2025-02-12Rollup merge of #136890 - saethlin:swap_nonoverlapping, r=RalfJungGuillaume Gomez-0/+46
Change swap_nonoverlapping from lang to library UB The implementation of ptr::swap_nonoverlapping does not always escalate its safety contract to language UB, so it should be `check_library_ub`. Fixes https://github.com/rust-lang/miri/issues/4188
2025-02-13Add modifiers to highlighting for extern crateasuto15-2/+31
2025-02-12manual: Separate out installation and configuration pagesWilfred Hughes-618/+635
Organise the installation content into: * VS Code instructions * Binary installation * Editor configuration
2025-02-12Change swap_nonoverlapping from lang to library UBBen Kimock-0/+46
2025-02-12Merge pull request #19142 from Veykril/push-upwqztrsuwpzLukas Wirth-202/+335
Spawn toolchain querying processes in parallel
2025-02-12Rename sysroot src/lib related thingsLukas Wirth-104/+121
2025-02-12Merge pull request #19148 from Veykril/push-ptnykrwnwwluLukas Wirth-79/+152
Improve error recovery when method-calling a field
2025-02-12Improve error recovery when method-calling a fieldLukas Wirth-79/+152
2025-02-12Spawn toolchain querying processes in parallelLukas Wirth-112/+228
2025-02-12Remove ignored `#[must_use]` attributes from ClippySamuel Tardieu-4/+0
The `#[must_use]` attribute has no effect when applied to methods in trait implementations.
2025-02-12Merge pull request #18928 from roife/fix-18918Lukas Wirth-1/+5295
fix: handle character boundary in search mode
2025-02-12Merge pull request #19109 from Veykril/push-nzpuuqommpnqLukas Wirth-31/+97
fix: Do not show safety hints for extern items lacking semantics
2025-02-12fix: handle character boundary in search moderoife-1/+5295
2025-02-12fix: Do not show safety hints for extern items lacking semanticsLukas Wirth-31/+97
2025-02-12Merge pull request #19111 from ShoyuVanilla/issue-19021Lukas Wirth-9/+89
fix: Apply adjustments to proper expr when invoking `CoerceMany`
2025-02-12Merge pull request #19110 from eagr/panic-contextLukas Wirth-22/+18
Simplify panic_context
2025-02-12Merge pull request #19125 from ChayimFriedman2/cfg-attr-fastLukas Wirth-24/+96
fix: Censor cfg_attr for attribute macros
2025-02-12Merge pull request #18995 from alibektas/12210Lukas Wirth-117/+187
fix: Lower range pattern bounds to expressions
2025-02-12Merge pull request #19129 from ChayimFriedman2/snippet-macroLukas Wirth-27/+64
fix: Fix postfix completions inside macros
2025-02-12Merge pull request #19132 from joshrotenberg/book-readme-run-codegenLukas Wirth-1/+1
doc: add xtask codegen command in development README as well
2025-02-12Merge pull request #19136 from ↵Lukas Wirth-116/+193
rust-lang/dependabot/npm_and_yarn/editors/code/esbuild-0.25.0 Bump esbuild from 0.18.12 to 0.25.0 in /editors/code
2025-02-12Rollup merge of #136698 - jackpot51:i586-redox, r=RalfJungGuillaume Gomez-1/+1
Replace i686-unknown-redox target with i586-unknown-redox This change is related to https://github.com/rust-lang/rust/issues/136495
2025-02-12minor: don't show drop hints for other patterngohome001-6/+6
2025-02-12Merge pull request #19143 from Veykril/push-mkokotluzskwLukas Wirth-2/+22
Propogate error types in mir type projections
2025-02-12Propogate error types in mir type projectionsLukas Wirth-2/+22
2025-02-12Merge pull request #19140 from joshrotenberg/remove-mdbook-toc-configLukas Wirth-5/+0
doc: remove unused plugin config
2025-02-12Merge pull request #19139 from Wilfred/fix_assists_urlsLukas Wirth-1/+1
manual: Fix URLs to rustdoc pages
2025-02-11remove unused plugin configJosh Rotenberg-5/+0