Lukas Wirth
a505420751
chore: Bump Edition::CURRENT
to 2024
2025-03-17 12:29:19 +01:00
Lukas Wirth
918740358b
Merge pull request #19354 from ChayimFriedman2/rtn-prep
...
Preparation to Return Type Notation (RTN)
2025-03-16 13:21:23 +00:00
Lukas Wirth
b5eedad8e3
refactor: Remove unnecessary Arc
2025-03-16 10:27:48 +01:00
BenjaminBrienen
7535bb4661
cargo fmt
2025-03-15 21:32:01 +01:00
BenjaminBrienen
7f1912c748
cargo clippy --fix
2025-03-15 21:32:01 +01:00
BenjaminBrienen
aad66c7bf1
Fix 2024 syntax errors
2025-03-15 21:32:01 +01:00
Lukas Wirth
2ea09b2e47
Split variant_data
into its own query
2025-03-14 14:16:33 +01:00
Lukas Wirth
8e8d997304
Split enum variants out of enum_data
query
2025-03-14 13:32:53 +01:00
Lukas Wirth
12f54eec27
Split assoc items out of trait_data
/impl_data
queries
2025-03-14 13:31:41 +01:00
David Barsky
788232b355
internal: don't panic when the crate graph isn't ready #19351
2025-03-13 15:14:08 -04:00
Chayim Refael Friedman
5076ef7d9b
Emit an error when RTN is used in an incorrect place
...
We miss one place: associated type bindings aka. `impl Trait<Type(..): Send>`, but we also miss it for Fn-style parenthesizes error so I left it out for now.
2025-03-12 23:34:16 +02:00
Chayim Refael Friedman
eaa0a39831
Lower Return Type Notation (Type::method(..): Send
)
...
We do it the way rustc does it, by only marking segments with it, and not the whole path. This will allow extending where it is allowed in the future.
2025-03-12 23:34:16 +02:00
Chayim Refael Friedman
c94e9efbef
Salsify the crate graph
...
I.e. make it not one giant input but multiple, for incrementality and decreased memory usage for Salsa 3 reasons.
2025-03-12 21:02:30 +02:00
David Barsky
74620e64ec
internal: port rust-analyzer to new Salsa
2025-03-10 13:30:51 -04:00
Laurențiu Nicola
be48993351
Merge pull request #19331 from lnicola/sync-from-rust
...
minor: Sync from downstream
2025-03-10 09:52:17 +00:00
Laurențiu Nicola
25e4bd1f90
Format code
2025-03-10 11:37:21 +02:00
Laurențiu Nicola
1afcab1725
Fix simd layout test
2025-03-10 11:21:03 +02:00
Laurențiu Nicola
bc178ff75e
Bump rustc crates
2025-03-10 11:20:56 +02:00
Lukas Wirth
27a5b1ba0c
Merge pull request #19330 from ChayimFriedman2/normalize-projection
...
fix: Normalize projections in evaluated const display and layout calculation
2025-03-10 09:15:35 +00:00
Laurențiu Nicola
363590b450
Merge from rust-lang/rust
2025-03-10 10:41:53 +02:00
Shoyu Vanilla
00bbfb3622
Bump chalk for built-in supports of async closures
2025-03-09 11:41:08 +09:00
Moulins
18772836d4
Use rustc_abi
code for SIMD layout in rust-analyzer
2025-03-08 12:36:42 +01:00
Moulins
4929f38544
Remove most manual LayoutData creations and move them to rustc_abi
...
...either as:
- methods on LayoutCalculator, for faillible operations;
- constructors on LayoutData, for infaillible ones.
2025-03-08 12:27:19 +01:00
Chayim Refael Friedman
422213cc9a
Use correct crate for trait env in render_const_scalar()
2025-03-06 21:00:08 +02:00
Chayim Refael Friedman
2fc0dc0f13
Pass the target crate in HirFormatter
...
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-06 21:00:05 +02:00
Chayim Refael Friedman
1cd9e683e8
Normalize projections in evaluated const display and layout calculation
2025-03-06 20:55:50 +02:00
Lukas Wirth
27dc614627
Merge pull request #19274 from Veykril/push-pouwrwwrlrlt
...
Highlight unsafe operations as unsafe, not definitions
2025-03-05 12:57:25 +00:00
Lukas Wirth
9fc0ffe008
Use HIR unsafety information for unsafe syntax highlightng
2025-03-05 13:18:46 +01:00
Thalia Archibald
0811ca0a61
Use size_of from the prelude instead of imported
...
Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the
prelude instead of importing or qualifying them.
These functions were added to all preludes in Rust 1.80.
2025-03-05 00:48:44 -08:00
Matthias Krüger
a52ffa7068
Rollup merge of #137921 - lnicola:sync-from-ra, r=lnicola
...
Subtree update of `rust-analyzer`
r? `@ghost`
2025-03-03 20:47:14 +01:00
Laurențiu Nicola
2244c99b69
Merge from rust-lang/rust
2025-03-03 08:38:46 +02:00
Moulins
c64ed1e187
Remove layouting dead code for non-array SIMD types.
...
These aren't supported anymore, and are already rejected in type checking.
2025-03-02 12:50:14 +01:00
Ralf Jung
5377cfb472
rename BackendRepr::Vector → SimdVector
2025-02-28 17:17:45 +01:00
BenjaminBrienen
b19ef6b046
fix doc tests
2025-02-27 14:58:46 +01:00
BenjaminBrienen
bd7375a58f
enable doctest
2025-02-27 14:58:46 +01:00
Chayim Refael Friedman
7c5524c854
Disable typos checker for the target feature names
2025-02-25 05:02:17 +02:00
Chayim Refael Friedman
87ed04bac0
Support target features implications in target_feature 1.1
...
We vendor the list of implications, which isn't nice, but t-compiler doesn't want to make rustc_target available to us.
2025-02-25 04:50:26 +02:00
Lukas Wirth
93bd36dfb9
Merge pull request #18987 from ChayimFriedman2/drop-glue
...
feat: Calculate drop glue and show it on hover
2025-02-24 13:52:17 +00:00
Laurențiu Nicola
f641813e07
Format code
2025-02-24 10:28:46 +02:00
Laurențiu Nicola
a5bf2d5604
Add rustc_hashes and bump the others
2025-02-24 10:10:51 +02:00
Laurențiu Nicola
807aa45e0a
Merge from rust-lang/rust
2025-02-24 09:42:57 +02:00
Lukas Wirth
6d68c475c7
Merge pull request #19191 from Veykril/push-yzzlosskwrxs
...
Remove `limit` crate in favor `usize`
2025-02-23 16:50:32 +00:00
Lukas Wirth
0b2e8166a1
Remove limit
crate in favor usize
2025-02-23 17:35:09 +01:00
Jacob Pratt
001a4019df
Rollup merge of #137334 - compiler-errors:edition-2024-fresh-2, r=saethlin,traviscross
...
Greatly simplify lifetime captures in edition 2024
Remove most of the `+ Captures` and `+ '_` from the compiler, since they are now unnecessary with the new edition 2021 lifetime capture rules. Use some `+ 'tcx` and `+ 'static` rather than being overly verbose with precise capturing syntax.
2025-02-23 02:44:18 -05:00
Michael Goulet
fb3a49ed55
Greatly simplify lifetime captures in edition 2024
2025-02-22 22:24:52 +00:00
Jubilee Young
eb4c00e9c7
rust-analyzer: use new function in (incorrect) layout computation
...
This is only to fix the build.
2025-02-20 19:55:29 -08:00
Zachary S
8aba4e6dcb
Remove BackendRepr::Uninhabited
, replaced with an uninhabited: bool
field in LayoutData
.
...
Also update comments that refered to BackendRepr::Uninhabited.
2025-02-20 13:27:32 -06:00
Shoyu Vanilla
a82773ab48
Explicitly compare TypesMap
as ptrs
2025-02-20 08:49:00 +09:00
Shoyu Vanilla
9d459e8de7
fix: Binding wrong assoc ty when lowering trait ref bound
2025-02-20 00:47:21 +09:00
Lukas Wirth
6543225ad9
Revert "pass struct fields to chalk"
2025-02-18 11:37:43 +01:00