Waffle Lapkin
cea73e95a8
remove pref_align_of intrinsic handling, rename {min_=>}align_of{,_val}
2025-06-13 21:31:46 +02:00
Chayim Refael Friedman
40b743de04
Merge pull request #19983 from ChayimFriedman2/proc-macro-eq
...
fix: Fix comparison of proc macros
2025-06-12 10:42:21 +00:00
Chayim Refael Friedman
6a0f4e59a8
Fix comparison of proc macros
...
Comparing the TypeId is not enough, they also contain data.
2025-06-12 13:31:55 +03:00
Lukas Wirth
80dd145f6f
Merge pull request #19981 from Veykril/push-tzzunsrqqunv
...
fix: Do not force descend into derives for goto IDE features
2025-06-12 07:48:49 +00:00
Lukas Wirth
2972e77d38
fix: Do not force descend into derives for goto IDE features
...
Doing so can cause us to duplicate navigation targets for the same ranges which breaks convenience features of some editors where go to def can trigger find all references
2025-06-12 09:37:45 +02:00
Lukas Wirth
c1d085975b
ItemTree's ItemVisibilities has no identity, so deduplicate
2025-06-12 09:14:43 +02:00
Lukas Wirth
fa7a6c1a46
Merge pull request #19837 from ChayimFriedman2/stable-astid
...
Provide better incrementality when items are changed
2025-06-12 06:09:01 +00:00
Chayim Refael Friedman
1babfe7a82
LRU ast id map
...
We can do that and it's pretty heavy.
2025-06-12 08:50:43 +03:00
Chayim Refael Friedman
c09ac19365
Ignore ast id hashes in typos check
2025-06-12 08:50:43 +03:00
Chayim Refael Friedman
bb5f1bfa13
Remove most of the item tree
...
I'm joking, but now that the def map is the only thing that uses the item tree, we can remove a lot of things from it that aren't needed for the def map.
2025-06-12 08:50:43 +03:00
Chayim Refael Friedman
cd1298a279
Avoid referring to the item tree except in the def map
...
Item tree IDs are very unstable (adding an item of a kind invalidates all following items of the same kind). Instead use ast ids, which, since the previous commit, are pretty stable.
2025-06-12 08:50:40 +03:00
Chayim Refael Friedman
8e06cef0be
Use stable AST IDs
...
Instead of simple numbering, we hash important bits, like the name of the item.
This will allow for much better incrementality, e.g. when you add an item. Currently, this invalidates the IDs of all following items, which invalidates pretty much everything.
2025-06-12 08:47:22 +03:00
Lukas Wirth
499e0dd622
Merge pull request #19942 from ChayimFriedman2/faux
...
fix: Fix completion with some attribute macros
2025-06-12 05:44:34 +00:00
dependabot[bot]
af079f827e
chore(deps-dev): bump brace-expansion in /editors/code
...
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion ) from 1.1.11 to 1.1.12.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases )
- [Commits](https://github.com/juliangruber/brace-expansion/compare/1.1.11...v1.1.12 )
---
updated-dependencies:
- dependency-name: brace-expansion
dependency-version: 1.1.12
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-06-11 21:01:40 +00:00
David Barsky
fb169ff8a7
hir-ty: test (the absence of) incremental trait solving
2025-06-11 12:12:58 -04:00
Lukas Wirth
6e5439b8f9
Merge pull request #19973 from Veykril/push-ppltxvqvqmkk
...
fix: Hide dyn inlay hints for incomplete `impl`s
2025-06-11 10:01:01 +00:00
Lukas Wirth
ac4e365776
fix: Hide dyn inlay hints for incomplete impls
2025-06-11 11:49:44 +02:00
Chayim Refael Friedman
3c10e1a5f0
Fix proc macro server handling of strings with minuses
...
It used to decompose them thinking they were numbers.
2025-06-11 01:03:35 +03:00
Chayim Refael Friedman
27472476be
Merge pull request #19964 from Wilfred/fix_typos
...
[minor] Fix typos
2025-06-10 12:32:44 +00:00
Wilfred Hughes
bb4a1ec431
[minor] Fix typos
2025-06-10 13:22:03 +01:00
Lukas Wirth
b64e748278
Merge pull request #19963 from ChayimFriedman2/unsized-impl-items
...
fix: Do not error at impls for unsized types that do not include `where Self: Sized` items
2025-06-10 11:37:30 +00:00
Chayim Refael Friedman
95fdb2d811
Do not error at impls for unsized types that do not include where Self: Sized items
2025-06-10 14:04:21 +03:00
David Barsky
e3ec14385f
Merge pull request #19930 from regexident/dyn-semantics-take-two
...
Make `Semantics<'db, DB>` support `Semantics<'db, dyn HirDatabase>`, take two
2025-06-09 18:18:49 +00:00
Laurențiu Nicola
88223c56d9
Merge from rust-lang/rust
2025-06-09 15:44:40 +03:00
Laurențiu Nicola
cbe6fe86ef
Preparing for merge from rust-lang/rust
2025-06-09 15:44:03 +03:00
bors
334ba81275
Auto merge of #142220 - workingjubilee:rollup-idgfpof, r=workingjubilee
...
Rollup of 12 pull requests
Successful merges:
- rust-lang/rust#141803 (Remove rustc's notion of "preferred" alignment AKA `__alignof`)
- rust-lang/rust#142053 (Add new Tier-3 targets: `loongarch32-unknown-none*`)
- rust-lang/rust#142089 (Replace all uses of sysroot_candidates with get_or_default_sysroot)
- rust-lang/rust#142108 (compiler: Add track_caller to AbiMapping::unwrap)
- rust-lang/rust#142132 (`tests/ui`: A New Order [6/N])
- rust-lang/rust#142162 (UnsafePinned: update get() docs and signature to allow shared mutation)
- rust-lang/rust#142171 (`tests/ui`: A New Order [7/N])
- rust-lang/rust#142179 (store `target.min_global_align` as an `Align`)
- rust-lang/rust#142183 (Added test for 30904)
- rust-lang/rust#142194 (Remove all unused feature gates from the compiler)
- rust-lang/rust#142199 (Do not free disk space in the `mingw-check-tidy` job)
- rust-lang/rust#142210 (Run `mingw-check-tidy` on auto builds)
r? `@ghost`
`@rustbot` modify labels: rollup
2025-06-09 02:20:44 +00:00
Jubilee
840baa46ff
Rollup merge of #142053 - heiher:loong32-none, r=wesleywiser
...
Add new Tier-3 targets: `loongarch32-unknown-none*`
MCP: https://github.com/rust-lang/compiler-team/issues/865
NOTE: LoongArch32 ELF object support is available starting with object v0.37.0.
2025-06-08 17:17:53 -07:00
bors
c31cccb7b5
Auto merge of #142008 - RalfJung:const-eval-error-here, r=oli-obk
...
const-eval error: always say in which item the error occurred
I don't see why "is this generic" should make a difference. It may be reasonable to key this on whether the error occurs in a `const fn` that was invoked by a const (making it non-obvious which constant it is) vs inside the body of the const.
r? `@oli-obk`
2025-06-08 23:18:34 +00:00
Chayim Refael Friedman
814b9a1172
Stabilize the "JSON is not Rust" diagnostic
2025-06-09 00:35:40 +03:00
bors
6ccd447603
Auto merge of #141700 - RalfJung:atomic-intrinsics-part2, r=bjorn3
...
Atomic intrinsics : use const generic ordering, part 2
This completes what got started in https://github.com/rust-lang/rust/pull/141507 by using a const generic for the ordering for all intrinsics. It is based on that PR; only the last commit is new.
Blocked on:
- https://github.com/rust-lang/rust/pull/141507
- https://github.com/rust-lang/rust/pull/141687
- https://github.com/rust-lang/stdarch/pull/1811
- https://github.com/rust-lang/rust/pull/141964
r? `@bjorn3`
2025-06-08 20:17:28 +00:00
Chayim Refael Friedman
ac34cb4b47
Correctly handle attr macros placed in cfg_attr in speculative expansion
2025-06-08 01:44:14 +03:00
Chayim Refael Friedman
a5bf989466
Remove the optimization of builtin attrs in is_inside_macro_call()
...
`#[cfg_attr]` is a builtin attr, but it may still contain a macro.
2025-06-08 01:07:55 +03:00
Guillaume Gomez
7b0eeab4c7
Rollup merge of #142065 - paolobarbolini:stabilize-const_eq_ignore_ascii_case, r=Mark-Simulacrum
...
Stabilize `const_eq_ignore_ascii_case`
Tracking issue: rust-lang/rust#131719
Closes rust-lang/rust#131719
FCP Completed: https://github.com/rust-lang/rust/issues/131719#issuecomment-2941829167
2025-06-07 22:22:57 +02:00
Ralf Jung
8808c9d34b
intrinsics: use const generic to set atomic ordering
2025-06-07 21:45:58 +02:00
bors
5e0bdaa9dd
Auto merge of #141964 - sayantn:update-stdarch, r=Amanieu
...
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-07 12:25:59 +00:00
Ralf Jung
17946c22b1
const-eval error: always say in which item the error occurred
...
also adjust the wording a little so that we don't say "the error occurred here" for two different spans
2025-06-07 13:42:30 +02:00
Jacob Pratt
6b4abb9180
Rollup merge of #142110 - psumbera:solaris-ci-build4, r=marcoieni
...
Add solaris targets to build-manifest
this is follow up for: https://github.com/rust-lang/rust/pull/138699
2025-06-07 07:05:48 +02:00
Guillaume Gomez
3a6f1b0375
Rollup merge of #142103 - scottmcm:fieldidx-in-interp, r=oli-obk
...
Update `InterpCx::project_field` to take `FieldIdx`
As suggested by Ralf in https://github.com/rust-lang/rust/pull/142005#discussion_r2125839015
2025-06-06 23:53:18 +02:00
Guillaume Gomez
93ca0af08c
Rollup merge of #141603 - nnethercote:reduce-P, r=fee1-dead
...
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-06 23:53:16 +02:00
Petr Sumbera
523cf1291b
add solaris targets to build-manifest
2025-06-06 12:07:24 +02:00
Vincent Esche
50c2faad92
Make Semantics<'db, dyn HirDatabase> actually usable
2025-06-06 09:45:34 +02:00
Lukas Wirth
3bae562b51
Merge pull request #19908 from rmehri01/rmehri01/diagnostic_attribute_completions
...
feat: implement attribute completions for diagnostics module
2025-06-06 07:19:13 +00:00
Lukas Wirth
337c2d993b
Merge pull request #19937 from Veykril/push-rvnylnlnxxyr
...
fix: Record macro calls for fields in `ChildBySource` impls
2025-06-06 05:45:48 +00:00
Lukas Wirth
98a4508e57
Merge pull request #19935 from ChayimFriedman2/exp-diag-show-quickfix
...
fix: Always include quickfixes for diagnostics, even when diagnostics are disabled
2025-06-06 05:35:52 +00:00
Lukas Wirth
e90b3fb51f
fix: Record macro calls for fields in ChildBySource impls
2025-06-06 07:34:42 +02:00
Scott McMurray
8bce2255e8
Update InterpCx::project_field to take FieldIdx
...
As suggested by Ralf in 142005.
2025-06-05 19:15:56 -07:00
Chayim Refael Friedman
903a0db6f3
Stabilize unlinked file diagnostic
2025-06-06 03:55:57 +03:00
Chayim Refael Friedman
0713466a2e
Always include quickfixes for diagnostics, even when diagnostics are disabled
2025-06-06 03:52:32 +03:00
WANG Rui
38d69c3f57
Add new Tier-3 targets: loongarch32-unknown-none*
...
MCP: https://github.com/rust-lang/compiler-team/issues/865
2025-06-06 08:19:38 +08:00
Matthias Krüger
c1d1f7a16f
Rollup merge of #142012 - oli-obk:no-optional-spans, r=fee1-dead
...
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-06 00:58:44 +02:00