Commit Graph

311318 Commits

Author SHA1 Message Date
Shoyu Vanilla (Flint) c4b8917db3 Merge pull request #20980 from ShoyuVanilla/shallow-normalize
fix: Remove some deep normalizations from infer
2025-11-21 17:04:41 +00:00
Shoyu Vanilla 0ba4e5d09a fix: Remove some deep normalizations from infer 2025-11-22 01:55:01 +09:00
Shoyu Vanilla (Flint) db70ac9369 Merge pull request #21069 from Aditya-PS-05/feat/add-regression-test-19957
feat: add test for async-trait type mismatch
2025-11-21 16:09:42 +00:00
Lukas Wirth b22210538c Merge pull request #21087 from Veykril/push-luroyzyzkwty
perf: Prime trait impls in cache priming
2025-11-21 14:58:37 +00:00
Lukas Wirth 7d7b4b2dc7 perf: Prime trait impls in cache priming 2025-11-21 15:48:42 +01:00
Lukas Wirth 26d549680a Merge pull request #21086 from Veykril/push-vytnrvtwsqqn
perf: Reduce allocations in `try_evaluate_obligations`
2025-11-21 14:31:30 +00:00
Lukas Wirth 31a3be2370 perf: Reduce allocations in try_evaluate_obligations 2025-11-21 15:21:20 +01:00
Lukas Wirth addb11c9ec Merge pull request #21085 from Veykril/push-kxznsnvokkvp
perf: Produce less progress reports
2025-11-21 13:54:49 +00:00
Lukas Wirth 5066867d89 perf: Produce less progress reports 2025-11-21 14:41:00 +01:00
Aditya-PS-05 9d51b84cec update minicore 2025-11-21 19:05:36 +05:30
Lukas Wirth 59c7f1a35e Merge pull request #21084 from Veykril/push-skkpkokzvyyz
fix: Fix formatting request blocking on `crate_def_map` query
2025-11-21 13:21:30 +00:00
Lukas Wirth 4be98b3db3 fix: Fix formatting request blocking on crate_def_map query 2025-11-21 14:11:30 +01:00
Shoyu Vanilla (Flint) 7c8955d3cc Merge pull request #21042 from A4-Tacks/qualified-top
Improve assist qualified to top when on first segment
2025-11-21 08:02:26 +00:00
Aditya-PS-05 ff107a2ac3 remove comments 2025-11-21 10:59:14 +05:30
Shoyu Vanilla (Flint) f729ba2aac Merge pull request #21038 from A4-Tacks/gen-multi-from-impl-enum
Support multiple variant for generate_from_impl_for_enum
2025-11-21 05:05:01 +00:00
Shoyu Vanilla (Flint) 2b0a77bd26 Merge pull request #21078 from asukaminato0721/20040
fix add test for Rc type inference failed #20040
2025-11-21 04:35:14 +00:00
Shoyu Vanilla (Flint) bf077f87ff Merge pull request #21076 from asukaminato0721/10018
add test for Associated type of super trait not resolved in dyn syntax. #10018
2025-11-21 04:32:43 +00:00
Asuka Minato d3a75c9017 fix
Added the regression test unsized_from_keeps_type_info that builds
minimal MyBox/MyRc stand-ins with CoerceUnsized + From to mirror the
original Rc::from(Box<[i32]>) scenario and assert that the inferred type
for rc stays MyRc<[i32]>.

The fixture uses only minicore pieces (coerce_unsized, from) so it
exercises the unsized coercion path entirely within the test harness,
ensuring we’ll catch future regressions without needing real Box/Rc.
2025-11-20 23:56:45 +09:00
Laurențiu Nicola b800c8aa75 Merge pull request #21075 from asukaminato0721/9881
add regression test to ensure #9881 is fixed
2025-11-20 14:16:43 +00:00
Asuka Minato 6640ad5648 add test 2025-11-20 23:12:20 +09:00
Asuka Minato caf28ca320 add regression test to sure it is fixed 2025-11-20 22:33:37 +09:00
Aditya-PS-05 80ffe297a3 feat: update test 2025-11-20 14:21:39 +05:30
Chayim Refael Friedman 57c0f1f1f4 Merge pull request #21053 from dfireBird/fix_panic_20965
fix: extract function panics on more than one usage of variable in macro
2025-11-20 05:59:26 +00:00
Chayim Refael Friedman db57f44775 Merge pull request #21036 from Natural-selection1/ref
fix: make postfix completion handle all references correctly
2025-11-20 05:50:26 +00:00
dfireBird 4a617a5fdf fix: use unique instead of dedup 2025-11-20 11:15:26 +05:30
Chayim Refael Friedman a7c8878dbf Merge pull request #21026 from Veykril/veykril/push-xtwpvurpxywx
Infer range pattern fully
2025-11-20 05:35:59 +00:00
Lukas Wirth 5f991a7bf2 Infer range pattern fully 2025-11-20 07:15:33 +02:00
Chayim Refael Friedman b8c3810bc9 Merge pull request #21068 from Aditya-PS-05/feat/configure-dyn-inlay-hint
feat: make dyn inlay hints configurable
2025-11-20 05:00:55 +00:00
Aditya-PS-05 46bb94f2f8 feat: add regression test for #19957 2025-11-20 02:27:17 +05:30
Aditya-PS-05 d2f389dc9d feat: make dyn inlay hints configurable 2025-11-20 00:37:01 +05:30
Lukas Wirth a91049e312 Merge pull request #21066 from Veykril/push-nzmyznpnulzm
fix: Fix release workflow
2025-11-19 12:23:30 +00:00
Lukas Wirth 03dce15fdc fix: Fix release workflow 2025-11-19 13:13:27 +01:00
Laurențiu Nicola 89329293d9 Merge pull request #21064 from lnicola/book-multilingual
minor: Drop `multilingual` field from the book config
2025-11-19 08:41:39 +00:00
Lukas Wirth 383f1ee0ee Merge pull request #21060 from ChayimFriedman2/adjust-last
fix: Fix some inference of patterns
2025-11-19 08:38:41 +00:00
Lukas Wirth c1fc86068b Merge pull request #21061 from ChayimFriedman2/infer-array-size
fix: Allow inferring array sizes
2025-11-19 08:36:42 +00:00
Laurențiu Nicola 318f6a0217 Drop multilingual field from the book config 2025-11-19 10:31:42 +02:00
Laurențiu Nicola 00b1e3fd52 Merge pull request #21062 from lnicola/sync-from-rust
minor: sync from downstream
2025-11-19 06:38:52 +00:00
Laurențiu Nicola 9a9b069124 Merge ref '6159a44067eb' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 6159a44067
Filtered ref: 6ab1e12842abe4da734757701b2f17970e11f6b9
Upstream diff: https://github.com/rust-lang/rust/compare/c5dabe8cf798123087d094f06417f5a767ca73e8...6159a44067ebce42b38f062cc7df267a1348e092

This merge was created using https://github.com/rust-lang/josh-sync.
2025-11-19 08:27:10 +02:00
Laurențiu Nicola f278795984 Prepare for merging from rust-lang/rust
This updates the rust-version file to 6159a44067.
2025-11-19 08:26:21 +02:00
Hegui Dai 1c7d74576f make postfix completion handle all references correctly 2025-11-19 12:01:01 +08:00
Chayim Refael Friedman d0b9e866e3 Allow inferring array sizes 2025-11-19 05:23:48 +02:00
Chayim Refael Friedman 1f5e2668ad Rewrite tuple pattern inference to match rustc
It was subtly incorrect in how it handles the expected type.
2025-11-19 05:01:33 +02:00
bors 6159a44067 Auto merge of #148434 - oli-obk:inherent-const-impl, r=fee1-dead
Inherent const impl

Some constifications are annoying because we need to repeat `T: Trait` bounds from an impl block on the individual constified `const fn`s as `T: [const] Trait`. We've brainstormed solutions before, and one would be to have separate `const impl` blocks or sth. However the final syntax will look, I decided to just impl this syntax and either have sth nice on nightly to work with or at least move the discussion along.

Also interacts with the discussion around `impl const Trait for Type` vs `const impl Trait for Type`, as we may want to use the latter to keep inherent and trait impls in sync (unless we come up with even another scheme).

* [ ] rustdoc + tests
* [ ] macro stability /regression tests

r? `@fee1-dead`

cc `@traviscross` `@rust-lang/project-const-traits`
2025-11-19 02:23:56 +00:00
Chayim Refael Friedman 1962be3500 The type of a binding in a Pat::Bind is the expected type, not the inferred type of the pattern
The inferred type is reconstructed with match ergonomics, e.g. matching against `(&&i32, &&i32)` could give `(i32, i32)`), but we of course cannot bind to that.
2025-11-19 03:45:11 +02:00
dfireBird 98f6af010a fix: allow equality expressions in parsing of format_args 2025-11-19 07:12:16 +05:30
dfireBird 3f78a32391 fix: extract function panics on more than one usage of variable in macro 2025-11-19 07:12:16 +05:30
Chayim Refael Friedman a0b8112c24 The type after pattern adjustments is stored in the last adjustment, not the first 2025-11-19 03:12:20 +02:00
Shoyu Vanilla (Flint) d9ac90b3f9 Merge pull request #21059 from ChayimFriedman2/trait-env
fix: Derive ParamEnv from GenericPredicates
2025-11-19 00:06:10 +00:00
Chayim Refael Friedman 3a2ca9a212 Derive ParamEnv from GenericPredicates
Instead of relowering them. This way we save time and prevent mismatches.
2025-11-19 01:48:16 +02:00
Chayim Refael Friedman 1afb6f0535 Merge pull request #20974 from ChayimFriedman2/ns4
fix: Rewrite method resolution to follow rustc more closely
2025-11-18 23:20:04 +00:00