about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2025-01-30Set the st_fstype filed on SolarisYoh Deadfall-19/+19
2025-01-29Auto merge of #135818 - jieyouxu:migrate-translation, r=compiler-errorsbors-3/+14
tests: Port `translation` to rmake.rs Part of #121876. This PR partially supersedes #129011 and is co-authored with `@Oneirical.` ## Summary This PR ports `tests/run-make/translation` to rmake.rs. Notable changes from the Makefile version include: - We now actually fail if the rustc invocations fail... The Makefile did not have `SHELL=/bin/bash -o pipefail`, so all the piped rustc invocations to grep vacuously succeeded, even if the broken ftl test case actually regressed over time and ICEs on current master. - That test case is converted to assert it fails with a FIXME backlinking to #135817. - The test coverage is expanded to not ignore windows. Instead, the test now uses symlink capability detection to gate test execution. - Added some backlinks to relevant tracking issues and the initial translation infra implementation PR. ## Review advice Best reviewed commit-by-commit. r? compiler try-job: aarch64-apple try-job: i686-mingw
2025-01-29Use `to_ne_bytes` instead of `to_le_bytes`Nathan Vegdahl-9/+9
2025-01-29Auto merge of #134248 - oli-obk:patkind-path-removal, r=BoxyUwUbors-57/+135
Merge `PatKind::Path` into `PatKind::Expr` Follow-up to #134228 We always had a duplication where `Path`s could be represented as `PatKind::Path` or `PatKind::Lit(ExprKind::Path)`. We had to handle both everywhere, and still do after #134228, so I'm removing it now.
2025-01-29Merge pull request #4162 from rust-lang/rustup-2025-01-29Ralf Jung-814/+5730
Automatic Rustup
2025-01-29Merge pull request #4122 from tiif/fnabiRalf Jung-53/+184
Check fixed args number for variadic function
2025-01-29make struct-variant matches less future-proof, and other clippy fixesRalf Jung-5/+8
2025-01-30Check fixed arg number for variadic function.tiif-53/+184
2025-01-29Fix typoNathan Vegdahl-2/+2
2025-01-29Fix #19071: ensure `completion_item_hash` serializes items uniquelyNathan Vegdahl-24/+50
Previously it may have been possible for different completion items to produce colliding hashes, not because of the hash but because of how the items were serialized into byte streams for hashing. See #19071 for details. The chances of that happening were low, if it was actually possible at all. Nevertheless, this commit ensures that it definitely can't happen. This commit uses a handful of techniques used to fix this, but they all boil down to "ensure this could be re-parsed". If it's possible to parse to recreate the original item, then by construction there is no chance of two different items getting serialized to identical byte streams.
2025-01-29Eliminate PatKind::PathOli Scherer-57/+135
2025-01-29Rollup merge of #136211 - ehuss:update-mdbook, r=ehussMatthias Krüger-27/+27
Update mdbook to 0.4.44 Updates to mdbook 0.4.44. Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-0444
2025-01-29Merge pull request #19070 from Veykril/push-wpqzmznymtrnLukas Wirth-71/+148
Remove mutable syntax tree shenanigans from adjustment hints
2025-01-29Remove mutable syntax tree shenanigans from adjustment hintsLukas Wirth-71/+148
2025-01-29Update TentHash to version 1.0Nathan Vegdahl-6/+6
The TentHash spec was frozen Jan 1st 2025, and release 1.0 of the Rust crate is a minor cleanup as a follow-up to that, representing a commitment to API stability as well. The hash output remains the same as version 0.4, which rust-analyzer was previously using. The only API change was a struct rename.
2025-01-29Fix tidy errorsGuillaume Gomez-1/+1
2025-01-29tests: Skip const OOM tests on aarch64-unknown-linux-gnuKajetan Puchalski-11/+1
Skip const OOM tests on AArch64 Linux through explicit annotations instead of inside opt-dist. Intended to avoid confusion in cases like #135952. Prerequisite for https://github.com/rust-lang/rust/pull/135960.
2025-01-29Auto merge of #136117 - lnicola:sync-from-ra, r=lnicolabors-1325/+2163
Subtree update of `rust-analyzer` r? `@ghost`
2025-01-29tests: port `translation` to rmake.rs许杰友 Jieyou Xu (Joe)-1/+0
Co-authored-by: Oneirical <manchot@videotron.ca>
2025-01-29run-make-support: improve docs for `assert_exit_code`许杰友 Jieyou Xu (Joe)-1/+5
2025-01-29run-make-support: add `sysroot` helper许杰友 Jieyou Xu (Joe)-1/+9
Convenience helper for `rustc --print=sysroot`.
2025-01-29Merge from rustcThe Miri Cronjob Bot-808/+5721
2025-01-29Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-01-29Rollup merge of #136164 - celinval:chores-fnkind, r=oli-obkLeón Orell Valerian Liehr-13/+23
Refactor FnKind variant to hold &Fn Pulling the change suggested in #128045 to reduce the impact of changing `Fn` item. r? `@oli-obk`
2025-01-29Rollup merge of #136147 - RalfJung:required-target-features-check-not-add, ↵León Orell Valerian Liehr-2/+2
r=workingjubilee ABI-required target features: warn when they are missing in base CPU Part of https://github.com/rust-lang/rust/pull/135408: instead of adding ABI-required features to the target we build for LLVM, check that they are already there. Crucially we check this after applying `-Ctarget-cpu` and `-Ctarget-feature`, by reading `sess.unstable_target_features`. This means we can tweak the ABI target feature check without changing the behavior for any existing user; they will get warnings but the target features behave as before. The test changes here show that we are un-doing the "add all required target features" part. Without the full #135408, there is no way to take a way an ABI-required target feature with `-Ctarget-cpu`, so we cannot yet test that part. Cc ``@workingjubilee``
2025-01-29Rollup merge of #135943 - hkBst:opt_imports, r=estebankLeón Orell Valerian Liehr-2/+2
Rename `Piece::String` to `Piece::Lit` This renames Piece::String to Piece::Lit to avoid shadowing std::string::String and removes "pub use Piece::*;".
2025-01-29Rollup merge of #135902 - compiler-errors:item-non-self-bound-in-new-solver, ↵León Orell Valerian Liehr-4/+4
r=lcnr Do not consider child bound assumptions for rigid alias r? lcnr See first commit for the important details. For second commit, I also stacked a somewhat opinionated name change, though I can separate that if needed. Fixes https://github.com/rust-lang/trait-system-refactor-initiative/issues/149
2025-01-29call infer_pats from infer::expr with contextAli Bektas-5/+4
2025-01-29Equip infer_pat_* with declaration originAli Bektas-26/+101
2025-01-29add test, bless testsAli Bektas-3/+22
2025-01-29try to infer array type from slice patternAli Bektas-1/+62
rust-analyzer equivalent of rust-lang/rust#2827aa97
2025-01-28Auto merge of #136209 - flip1995:clippy-subtree-update, r=Manishearthbors-795/+5679
Clippy subtree update r? `@Manishearth` Quite a bit late, as I was on vacation and then we had an issue in MacOS CI after the sync.
2025-01-28Refactor FnKind variant to hold &FnCelina G. Val-13/+23
2025-01-28Make item self/non-self bound naming less whackMichael Goulet-4/+4
2025-01-28Update mdbook to 0.4.44Eric Huss-27/+27
Updates to mdbook 0.4.44. Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-0444
2025-01-28Merge commit '51d49c1ae2785b24ef18a46ef233fc1d91844666' into ↵Philipp Krones-795/+5679
clippy-subtree-update
2025-01-28parse_format optimize import useMarijn Schouten-2/+2
2025-01-28Merge pull request #4160 from YohDeadfall/check-os-helperRalf Jung-58/+28
Added a helper to dedup target OS checks
2025-01-28Merge pull request #4161 from oli-obk/push-vnpvrkxznkloRalf Jung-3/+3
Bump ui test
2025-01-28Bump ui testOli Scherer-3/+3
2025-01-28Merge pull request #19063 from ↵David Barsky-625/+78
davidbarsky/davidbarsky/backout-struct-default-fields internal: backout `hir-*` changes from #19001
2025-01-28Update lsif_contains_generated_constantDavid Richey-76/+80
2025-01-28feat: Implement `default-field-values` only in parserShoyu Vanilla-16/+280
2025-01-28Added a helper to dedup target OS checksYoh Deadfall-58/+28
2025-01-28Merge pull request #19015 from Wilfred/mdbookLukas Wirth-2686/+2836
manual: Convert to mdbook
2025-01-28Fix scip symbols for implicit modulesDavid Richey-13/+30
2025-01-28Fix tests/codegen/float/f128Alisa Sireneva-0/+1
2025-01-28Merge pull request #19056 from Giga-Bowser/fix-syntax-tree-crlfLukas Wirth-76/+181
fix: Properly handle CRLF line endings in the syntax tree view
2025-01-28Merge pull request #19057 from darichey/status-bar-in-outputLukas Wirth-0/+4
Show status bar in RA output
2025-01-28Fix scip `crate` symbol nameDavid Richey-5/+17