about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2025-06-07intrinsics: use const generic to set atomic orderingRalf Jung-65/+88
2025-06-07Auto merge of #141964 - sayantn:update-stdarch, r=Amanieubors-6/+0
Update stdarch submodule Updates the stdarch submodule. ## Merged PRs - rust-lang/stdarch#1797 - rust-lang/stdarch#1758 - rust-lang/stdarch#1798 - rust-lang/stdarch#1811 - rust-lang/stdarch#1810 - rust-lang/stdarch#1807 - rust-lang/stdarch#1806 - rust-lang/stdarch#1812 - rust-lang/stdarch#1795 - rust-lang/stdarch#1796 - rust-lang/stdarch#1813 - rust-lang/stdarch#1816 - rust-lang/stdarch#1818 - rust-lang/stdarch#1820 - rust-lang/stdarch#1819 r? `@Amanieu` `@rustbot` label T-libs-api Closes rust-lang/rust#111137
2025-06-07bless non-Linux testsRalf Jung-21/+19
2025-06-07make better use of label for data-race and some other errorsRalf Jung-388/+240
2025-06-07diagnostics: do not repeat the entire message in the span labelRalf Jung-578/+581
2025-06-07const-eval error: always say in which item the error occurredRalf Jung-2/+2
also adjust the wording a little so that we don't say "the error occurred here" for two different spans
2025-06-07test_dup: ensure the FDs remain in sync even after dup'ingRalf Jung-2/+3
2025-06-07Rollup merge of #142110 - psumbera:solaris-ci-build4, r=marcoieniJacob Pratt-0/+2
Add solaris targets to build-manifest this is follow up for: https://github.com/rust-lang/rust/pull/138699
2025-06-07fmtThe Miri Cronjob Bot-3/+10
2025-06-07Merge from rustcThe Miri Cronjob Bot-29/+35
2025-06-07Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-06-06Rollup merge of #142103 - scottmcm:fieldidx-in-interp, r=oli-obkGuillaume Gomez-24/+30
Update `InterpCx::project_field` to take `FieldIdx` As suggested by Ralf in https://github.com/rust-lang/rust/pull/142005#discussion_r2125839015
2025-06-06Rollup merge of #141603 - nnethercote:reduce-P, r=fee1-deadGuillaume Gomez-3/+3
Reduce `ast::ptr::P` to a typedef of `Box` As per the MCP at https://github.com/rust-lang/compiler-team/issues/878. r? `@fee1-dead`
2025-06-06In "Fill match arms", allow users to prefer `Self` to the enum name when ↵Chayim Refael Friedman-29/+227
possible But default to not to. I chose to have a more generic config name because maybe other assists could also use the same approach.
2025-06-06add solaris targets to build-manifestPetr Sumbera-0/+2
2025-06-06Merge pull request #4378 from RalfJung/flockRalf Jung-105/+50
use File::lock to implement flock, and add a test for File::lock
2025-06-06use File::lock to implement flock, and add a test for File::lockRalf Jung-105/+50
2025-06-06Make `Semantics<'db, dyn HirDatabase>` actually usableVincent Esche-2/+18
2025-06-06Merge pull request #19908 from ↵Lukas Wirth-25/+190
rmehri01/rmehri01/diagnostic_attribute_completions feat: implement attribute completions for diagnostics module
2025-06-06Update cargoWeihang Lo-0/+0
2025-06-06Merge pull request #19937 from Veykril/push-rvnylnlnxxyrLukas Wirth-10/+28
fix: Record macro calls for fields in `ChildBySource` impls
2025-06-06Merge pull request #19935 from ChayimFriedman2/exp-diag-show-quickfixLukas Wirth-2/+12
fix: Always include quickfixes for diagnostics, even when diagnostics are disabled
2025-06-06fix: Record macro calls for fields in `ChildBySource` implsLukas Wirth-10/+28
2025-06-06Merge from rustcThe Miri Cronjob Bot-285/+438
2025-06-06Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-06-05Update `InterpCx::project_field` to take `FieldIdx`Scott McMurray-24/+30
As suggested by Ralf in 142005.
2025-06-06Stabilize unlinked file diagnosticChayim Refael Friedman-0/+1
2025-06-06Always include quickfixes for diagnostics, even when diagnostics are disabledChayim Refael Friedman-2/+12
2025-06-06Add new Tier-3 targets: `loongarch32-unknown-none*`WANG Rui-2/+8
MCP: https://github.com/rust-lang/compiler-team/issues/865
2025-06-06Rollup merge of #142012 - oli-obk:no-optional-spans, r=fee1-deadMatthias Krüger-2/+2
Replace some `Option<Span>` with `Span` and use DUMMY_SP instead of None Turns out many locations actually have a span available that we could use, so I used it
2025-06-05Auto merge of #138677 - shepmaster:consistent-elided-lifetime-syntax, ↵bors-47/+56
r=traviscross,jieyouxu Add a new `mismatched-lifetime-syntaxes` lint The lang-team [discussed this](https://hackmd.io/nf4ZUYd7Rp6rq-1svJZSaQ) and I attempted to [summarize](https://github.com/rust-lang/rust/pull/120808#issuecomment-2701863833) their decision. The summary-of-the-summary is: - Using two different kinds of syntax for elided lifetimes is confusing. In rare cases, it may even [lead to unsound code](https://github.com/rust-lang/rust/issues/48686)! Some examples: ```rust // Lint will warn about these fn(v: ContainsLifetime) -> ContainsLifetime<'_>; fn(&'static u8) -> &u8; ``` - Matching up references with no lifetime syntax, references with anonymous lifetime syntax, and paths with anonymous lifetime syntax is an exception to the simplest possible rule: ```rust // Lint will not warn about these fn(&u8) -> &'_ u8; fn(&'_ u8) -> &u8; fn(&u8) -> ContainsLifetime<'_>; ``` - Having a lint for consistent syntax of elided lifetimes will make the [future goal](https://github.com/rust-lang/rust/issues/91639) of warning-by-default for paths participating in elision much simpler. --- This new lint attempts to accomplish the goal of enforcing consistent syntax. In the process, it supersedes and replaces the existing `elided-named-lifetimes` lint, which means it starts out life as warn-by-default.
2025-06-05Auto merge of #142081 - matthiaskrgr:rollup-secpezz, r=matthiaskrgrbors-238/+251
Rollup of 7 pull requests Successful merges: - rust-lang/rust#141709 (jsondocck: Refactor directive handling) - rust-lang/rust#141974 (`tests/ui`: A New Order [4/N]) - rust-lang/rust#141989 (rustdoc-json-type: Depend on `serde` and `serde_derive` seperately) - rust-lang/rust#142015 (Report the actual item that evaluation failed for) - rust-lang/rust#142026 (bootstrap: Fix file permissions when dereferencing symlinks) - rust-lang/rust#142032 (Fix parsing of frontmatters with inner hyphens) - rust-lang/rust#142036 (Update the `compiler-builtins` subtree) r? `@ghost` `@rustbot` modify labels: rollup
2025-06-05Merge pull request #19933 from Veykril/push-uyxorpyvnzslLukas Wirth-10/+134
Better parser recovery for macro calls in type bound position
2025-06-05change tests to use fixed constants to let them pass with miriLorrensP-2158466-1/+3
2025-06-05Replace some `Option<Span>` with `Span` and use DUMMY_SP instead of NoneOli Scherer-2/+2
2025-06-05Better parser recovery for macro calls in type bound positionLukas Wirth-10/+134
2025-06-05Rollup merge of #141709 - aDotInTheVoid:split-for-docs, r=GuillaumeGomezMatthias Krüger-238/+251
jsondocck: Refactor directive handling Best reviewed commit by commit. 1. Moves directive handling into its own file. This makes it easier to link to in the dev-guide (https://github.com/rust-lang/rustc-dev-guide/pull/2422#discussion_r2112724234), but also makes the code nicer in it's own right 2. Renames command to directive. This is what compiletest uses, and it's nice to not have 2 words for this. r? ``@GuillaumeGomez``
2025-06-05fix: Record macro calls in signatures in `ChildBySource` implsLukas Wirth-19/+77
2025-06-05jsondocck: Explain what `KNOWN_DIRECTIVE_NAMES` is doingAlona Enraght-Moony-1/+1
2025-06-05Rollup merge of #140638 - RalfJung:unsafe-pinned-shared-aliased, ↵Matthias Krüger-0/+131
r=workingjubilee UnsafePinned: also include the effects of UnsafeCell This tackles https://github.com/rust-lang/rust/issues/137750 by including an `UnsafeCell` in `UnsafePinned`, thus imbuing it with all the usual properties of interior mutability (no `noalias` nor `dereferenceable` on shared refs, special treatment by Miri's aliasing model). The soundness issue is not fixed yet because coroutine lowering does not use `UnsafePinned`. The RFC said that `UnsafePinned` would not permit mutability on shared references, but since then, https://github.com/rust-lang/rust/issues/137750 has demonstrated that this is not tenable. In the face of those examples, I propose that we do the "obvious" thing and permit shared mutable state inside `UnsafePinned`. This seems loosely consistent with the fact that we allow going from `Pin<&mut T>` to `&T` (where the former can be aliased with other pointers that perform mutation, and hence the same goes for the latter) -- but the `as_ref` example shows that we in fact would need to add this `UnsafeCell` even if we didn't have a safe conversion to `&T`, since for the compiler and Miri, `&T` and `Pin<&T>` are basically the same type. To make this possible, I had to remove the `Copy` and `Clone` impls for `UnsafePinned`. Tracking issue: https://github.com/rust-lang/rust/issues/125735 Cc ``@rust-lang/lang`` ``@rust-lang/opsem`` ``@Sky9x`` I don't think this needs FCP since the type is still unstable -- we'll finally decide whether we like this approach when `UnsafePinned` is moved towards stabilization (IOW, this PR is reversible). However, I'd still like to make sure that the lang team is okay with the direction I am proposing here.
2025-06-05Stabilize `const_eq_ignore_ascii_case`Paolo Barbolini-14/+0
2025-06-05Merge pull request #19928 from Veykril/push-kznpuqllrvvqLukas Wirth-297/+160
Deduplicate code in proc-macro-srv
2025-06-05Deduplicate code in proc-macro-srvLukas Wirth-297/+160
2025-06-05Merge from rustcThe Miri Cronjob Bot-5/+4
2025-06-05Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-06-05feat: ide-assist, generate single field struct FromA4-Tacks-6/+1043
2025-06-04add qualifiers to attribute completionsRyan Mehri-14/+30
2025-06-04Replace `elided_named_lifetimes` with `mismatched_lifetime_syntaxes`Jake Goulding-45/+54
2025-06-04Introduce the `mismatched_lifetime_syntaxes` lintJake Goulding-2/+2
2025-06-04Rollup merge of #141570 - chenyukang:yukang-fix-eq_unspanned, r=workingjubileeMatthias Krüger-1/+3
Fix incorrect eq_unspanned in TokenStream Fixes rust-lang/rust#141522 r? ``@workingjubilee`` should we remove this function? since it's used in several places, i'd prefer to keep it.