Commit graph

283937 commits

Author SHA1 Message Date
David Barsky
e47bb17547
Merge pull request #19565 from davidbarsky/davidbarsky/add-prime-caches-subcommand
internal: add `prime-caches` subcommand
2025-04-10 15:42:25 +00:00
David Barsky
9e50a3009f internal: cleanup CLI flag documentation 2025-04-10 11:30:59 -04:00
David Barsky
8f547bb82f internal: add prime-caches subcommand 2025-04-10 11:18:33 -04:00
Florian Diebold
3ccb636dd8
Merge pull request #19566 from flodiebold/push-vzpyzvpkwkyt
Fix dyn compatibility code bypassing callable_item_signature query
2025-04-10 15:11:34 +00:00
Lukas Wirth
a25e7a7317
Merge pull request #19564 from rust-lang/dependabot/cargo/crossbeam-channel-0.5.15
chore(deps): bump crossbeam-channel from 0.5.14 to 0.5.15
2025-04-10 14:58:43 +00:00
Florian Diebold
505521efd6 Fix dyn compatibility code bypassing callable_item_signature query 2025-04-10 16:56:17 +02:00
dependabot[bot]
d84194c8ee
chore(deps): bump crossbeam-channel from 0.5.14 to 0.5.15
Bumps [crossbeam-channel](https://github.com/crossbeam-rs/crossbeam) from 0.5.14 to 0.5.15.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases)
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-channel-0.5.14...crossbeam-channel-0.5.15)

---
updated-dependencies:
- dependency-name: crossbeam-channel
  dependency-version: 0.5.15
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-10 14:46:08 +00:00
Lukas Wirth
2436ce0153
Merge pull request #19563 from Veykril/push-xwlnkpmkqnwp
fix: Fix invalid signature bitflags
2025-04-10 14:24:19 +00:00
Lukas Wirth
ff008f1877 fix: Walk const block expressions for unsafety checking 2025-04-10 16:10:30 +02:00
Lukas Wirth
26eedd8f95
Merge pull request #19562 from Veykril/push-uqutltwzsnmk
fix: Fix invalid signature bitflags
2025-04-10 13:51:28 +00:00
Lukas Wirth
baecfcd9fc fix: Fix invalid signature bitflags 2025-04-10 15:39:27 +02:00
Lukas Wirth
3fbcd68411
Merge pull request #19461 from Hmikihiro/shadow_by_module
fix: shadow type by module
2025-04-10 12:20:14 +00:00
Lukas Wirth
a10a771678
Merge pull request #19555 from Urgau/patch-1
Enable `[canonicalize-issue-links]` and `[no-mentions]` in triagebot
2025-04-10 11:48:47 +00:00
Lukas Wirth
8e18cd6141
Merge pull request #19559 from ChayimFriedman2/rust-186
internal: Switch to Rust 1.86.0
2025-04-10 08:33:14 +00:00
Chayim Refael Friedman
c7202e8766 Remove all upcasts!
It turns out there were a lot redundant too.
2025-04-10 11:08:38 +03:00
Chayim Refael Friedman
8e3f82205c Update MSRV to Rust 1.86.0 2025-04-10 11:06:09 +03:00
Hayashi Mikihiro
6bc123f4aa Update crates/hir-def/src/resolver.rs
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2025-04-10 16:29:10 +09:00
Hayashi Mikihiro
b6cf8f2499 Update crates/hir-def/src/resolver.rs
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2025-04-10 16:29:10 +09:00
Hayashi Mikihiro
a458b7d6bd TypeNs contain module
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-04-10 16:29:10 +09:00
Hayashi Mikihiro
b9c7a9b8d5 return single option
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-04-10 16:29:10 +09:00
Hayashi Mikihiro
231918f56b fix: shadow type by module
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-04-10 16:29:10 +09:00
Chayim Refael Friedman
a7cdc0bf62
Merge pull request #19558 from rust-lang/small-bug-catastrophic-effect
fix: Fix a small bug with catastrophic effects
2025-04-10 06:48:50 +00:00
Chayim Refael Friedman
df0873e888
Fix a small bug with catastrophic effects
The tiny bug was that `FnFlags::DEPRECTAED_SAFE_2024` and `FnFlags::RUSTC_ALLOW_INCOHERENT_IMPLS` were assigned the same value.

The catastrophic effect was that every function marked as `#[rustc_allow_incoherent_impl]` was considered safe-deprecated for edition 2024, which caused it to be considered unsafe to call when called from edition 2024. And that includes `<[_]>::into_vec()`, which is called by the `vec![]` macro. So, catastrophic effect.

This innocent-looking bug probably arose from the item tree rewrite. No review would've catch that!
2025-04-10 09:37:37 +03:00
Urgau
2f6385f3dc
Enable [canonicalize-issue-links] and [no-mentions] in triagebot 2025-04-09 22:15:51 +02:00
David Barsky
d711d0a19a
Merge pull request #19553 from davidbarsky/davidbarsky/fix-rustdoc-tests
internal: fix `NameGenerator`'s and `AnyMap`'s rustdocs
2025-04-09 16:56:31 +00:00
Laurențiu Nicola
9e02bc5a9b
Merge pull request #19554 from davidbarsky/davidbarsky/rename-children-modules-to-child-modules
internal: rename `children_modules` to `child_modules`
2025-04-09 16:55:23 +00:00
David Barsky
5697022c77 internal: fix NameGenerator's and AnyMap's rustdocs 2025-04-09 12:44:52 -04:00
David Barsky
d85f89599a internal: rename children_modules to child_modules 2025-04-09 12:43:49 -04:00
Lukas Wirth
7d7ad655d9
Merge pull request #19550 from Veykril/push-rsskztqzwuzk
refactor: Turn `LifetimeRef` into an enum
2025-04-09 14:09:59 +00:00
Lukas Wirth
32e3f84280 refactor: Turn LifetimeRef into an enum
This makes things more structured
2025-04-09 15:58:06 +02:00
Lukas Wirth
cf63ce3d44
Merge pull request #19255 from geetanshjuneja/master
Add children modules feature
2025-04-09 09:53:25 +00:00
Lukas Wirth
b2835b5964
Merge pull request #19462 from Veykril/push-ypvprvvwkyll
refactor: Lower type-refs before type inference
2025-04-09 08:54:28 +00:00
Lukas Wirth
f4848a71d4 refactor: Lower type-refs before type inference
This refactors how we deal with items in hir-def lowering.

- It now lowers all of them through an "ExpressionStore" (kind of a misnomer as this point) as their so called *Signatures.
- We now uniformly lower type AST into TypeRefs before type inference.
- Likewise, this moves macro expansion out of type inference, resulting in a single place where we do non-defmap macro expansion.
- Finally, this PR removes a lot of information from ItemTree, making the DefMap a lot less likely to be recomputed and have it only depend on actual early name resolution related information (not 100% true, we still have ADT fields in there but thats a follow up removal).
2025-04-09 10:43:23 +02:00
David Barsky
620b404068
Merge pull request #19536 from jackh726/closure-infer
Port closure inference from rustc
2025-04-08 14:17:30 +00:00
Lukas Wirth
d9a440b4d7
Merge pull request #19541 from Veykril/push-twqrorwqzmwv
fix(auto-import): Prefer imports of matching types for argument lists
2025-04-08 07:32:52 +00:00
Lukas Wirth
112ca25a35 fix(auto-import): Prefer imports of matching types for argument lists 2025-04-08 09:21:32 +02:00
jackh726
d88e70c514 Port closure inference from rustc 2025-04-07 21:48:01 +00:00
geetanshjuneja
7b37e91f22 cargo xtask tidy 2025-04-07 21:41:26 +05:30
geetanshjuneja
ac3a2b9ca9 added children modules 2025-04-07 21:14:01 +05:30
Lukas Wirth
50f3e01399
Merge pull request #19425 from ConradIrwin/drop-drop-glue-goo
Tidy up drop glue notification
2025-04-07 10:32:50 +00:00
Lukas Wirth
dfe13e5bfe
Merge pull request #19511 from snprajwal/fixmes
chore: clean up some FIXMEs
2025-04-07 10:30:46 +00:00
Lukas Wirth
b91731c3b6
Merge pull request #19432 from ShoyuVanilla/issue-19431
fix: Yet another false positive invalid cast diagnostic
2025-04-07 10:29:54 +00:00
Lukas Wirth
3cd93186de
Merge pull request #19512 from BenjaminBrienen/update-stdx
Upstream stdx changes
2025-04-07 07:14:01 +00:00
BenjaminBrienen
6c52687dc3 upstream stdx changes 2025-04-06 23:55:12 +02:00
Lukas Wirth
fb0dd6555d
Merge pull request #19533 from Veykril/push-zxlpwkvzxzws
chore: Set up a proper job matrix for rust-cross
2025-04-06 08:50:51 +00:00
Lukas Wirth
7812f55eeb chore: Set up a proper job matrix for rust-cross 2025-04-06 10:39:49 +02:00
Lukas Wirth
d3d1f49f74
Merge pull request #19531 from Veykril/push-kxyrpznnllkx
fix: Fix `format_args` lowering for >=1.87
2025-04-06 08:18:23 +00:00
Lukas Wirth
f1ed314003 fix: Fix format_args lowering for >=1.87 2025-04-06 10:05:56 +02:00
Lukas Wirth
b3e9af53f8
Merge pull request #19447 from Natural-selection1/add_impl_for
add more completion about "impl"
2025-04-05 13:01:51 +00:00
Lukas Wirth
9ba0079a9b
Merge pull request #19501 from ChayimFriedman2/macro-expansion
fix: Fix a bug in MBE expansion that arose from incorrect fixing of an older bug in MBE
2025-04-05 13:00:30 +00:00