| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2025-05-08 | Auto merge of #140106 - dianne:deref-pat-usefulness, r=Nadrieril | bors | -0/+3 | |
| allow deref patterns to participate in exhaustiveness analysis Per [this proposal](https://hackmd.io/4qDDMcvyQ-GDB089IPcHGg#Exhaustiveness), this PR allows deref patterns to participate in exhaustiveness analysis. Currently all deref patterns enforce `DerefPure` bounds on their scrutinees, so this assumes all patterns it's analyzing are well-behaved. This also doesn't support [mixed exhaustiveness](https://hackmd.io/4qDDMcvyQ-GDB089IPcHGg#Mixed-exhaustiveness), and instead emits an error if deref patterns are used together with normal constructors. I think mixed exhaustiveness would be nice to have (especially if we eventually want to support arbitrary `Deref` impls[^1]), but it'd require more work to get reasonable diagnostics[^2]. Tracking issue for deref patterns: #87121 r? `@Nadrieril` [^1]: Regardless of whether we support limited exhaustiveness checking for untrusted `Deref` or always require other arms to be exhaustive, I think it'd be useful to allow mixed matching for user-defined smart pointers. And it'd be strange if it worked there but not for `Cow`. [^2]: I think listing out witnesses of non-exhaustiveness can be confusing when they're not necessarily disjoint, and when you only need to cover some of them, so we'd probably want special formatting and/or explanatory subdiagnostics. And if it's implemented similarly to unions, we'd probably also want some way of merging witnesses; the way witnesses for unions can appear duplicated is pretty unfortunate. I'm not sure yet how the diagnostics should look, especially for deeply nested patterns. | ||||
| 2025-05-07 | Auto merge of #137995 - hkBst:parse_format_reuse_unescape, r=nnethercote | bors | -3/+3 | |
| Remove duplicate impl of string unescape from parse_format r? `@nnethercote` | ||||
| 2025-05-06 | add stubbed-out cases for rust-analyzer | dianne | -0/+3 | |
| rust-analyzer doesn't construct `DerefPattern(_)` constructors, so these shouldn't crash. It looks like this is how slice patterns are implemented too. | ||||
| 2025-05-06 | Remove duplicate impl of string unescape | Marijn Schouten | -3/+3 | |
| 2025-05-06 | Rollup merge of #140035 - fee1-dead-contrib:push-oszwkkvmpkks, ↵ | Stuart Cook | -1/+17 | |
| r=jieyouxu,wesleywiser Implement RFC 3503: frontmatters Tracking issue: #136889 Supercedes #137193. This implements [RFC 3503](https://github.com/rust-lang/rfcs/blob/master/text/3503-frontmatter.md). This might break rust-analyzer. Will look into how to fix that. Suggestions welcome for how to improve diagnostics. | ||||
| 2025-05-05 | Implement RFC 3503: frontmatters | Deadbeef | -1/+17 | |
| Supercedes #137193 | ||||
| 2025-05-04 | Merge pull request #19739 from Veykril/push-kpozprqnsmkk | Lukas Wirth | -12/+12 | |
| Disable fixpoint for variance computation temporarily | ||||
| 2025-05-04 | Disable fixpoint for variance computation temporarily | Lukas Wirth | -12/+12 | |
| 2025-05-03 | Improve let snippet | A4-Tacks | -6/+6 | |
| 2025-05-03 | Improve the let code snippet | A4-Tacks | -6/+101 | |
| 2025-05-02 | Merge pull request #19733 from ShoyuVanilla/issue-19724 | Lukas Wirth | -13/+82 | |
| fix: Implement mut to const ptr cast for method resolution | ||||
| 2025-05-02 | Merge pull request #19732 from ShoyuVanilla/issue-19730 | Lukas Wirth | -1/+27 | |
| fix: Correct assoc ty bound var starting index | ||||
| 2025-05-03 | fix: Implement mut to const ptr cast for method resolution | Shoyu Vanilla | -13/+82 | |
| 2025-05-02 | Merge pull request #19731 from Veykril/push-mmvowomkpwxy | Lukas Wirth | -175/+112 | |
| refactor: Simplify macro call id construction | ||||
| 2025-05-03 | fix: Correct assoc ty bound var starting index | Shoyu Vanilla | -1/+27 | |
| 2025-05-02 | refactor: Simplify macro call id construction | Lukas Wirth | -175/+112 | |
| 2025-05-02 | Render more lifetimes | Lukas Wirth | -149/+201 | |
| 2025-05-01 | remove a couple of clones | Matthias Krüger | -90/+71 | |
| 2025-05-01 | Merge from rust-lang/rust | Laurențiu Nicola | -1/+1 | |
| 2025-04-30 | Merge pull request #19723 from Veykril/push-skswknpxtzlz | Lukas Wirth | -20/+86 | |
| fix: Improve parser recovery a bit | ||||
| 2025-04-30 | fix: Improve parser recovery a bit | Lukas Wirth | -20/+86 | |
| 2025-04-30 | Merge pull request #19247 from alibektas/19172_very_new | Lukas Wirth | -82/+146 | |
| fix: Correct span info for mir::Operand | ||||
| 2025-04-30 | chore: Adjust panic context printing | Lukas Wirth | -12/+10 | |
| 2025-04-29 | Split out salsa_macros | Lukas Wirth | -47/+55 | |
| Does not do much yet due to tracing pulling syn but oh well | ||||
| 2025-04-29 | Update salsa | Lukas Wirth | -25/+67 | |
| 2025-04-29 | refactor: Remove unnecessary extension trait | Lukas Wirth | -68/+59 | |
| 2025-04-29 | Cleanup cfg check handling in expression store lowering | Lukas Wirth | -188/+234 | |
| 2025-04-29 | refactor: Clean up cache priming cancellation handling | Lukas Wirth | -39/+54 | |
| 2025-04-28 | Merge pull request #19699 from ChayimFriedman2/escape-label | David Barsky | -7/+36 | |
| fix: Escape raw names in labels properly | ||||
| 2025-04-28 | base-db: add more details to panic | David Barsky | -9/+20 | |
| 2025-04-28 | Merge pull request #19708 from Veykril/push-wrmyowrzkxzz | Lukas Wirth | -255/+188 | |
| refactor: De-arc lang item queries | ||||
| 2025-04-28 | Merge pull request #19542 from snprajwal/let-else-to-match | Lukas Wirth | -142/+335 | |
| refactor: migrate `let_else_to_match` to editor | ||||
| 2025-04-28 | refactor: De-arc lang item queries | Lukas Wirth | -255/+188 | |
| 2025-04-28 | refactor: migrate `merge_imports` to syntax editor | Prajwal S N | -43/+25 | |
| Co-authored-by: Tarek <tareknaser360@gmail.com> Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com> | ||||
| 2025-04-28 | chore: rename `unmerge_use` to `unmerge_imports` | Prajwal S N | -44/+44 | |
| Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com> | ||||
| 2025-04-28 | fix: migrate `unmerge_use` to syntax editor | Prajwal S N | -16/+108 | |
| Also ensures that attributes on the use item are applied to the new use item when unmerging. Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com> | ||||
| 2025-04-28 | refactor: migrate `let_else_to_match` to editor | Prajwal S N | -142/+335 | |
| Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com> | ||||
| 2025-04-28 | Unelide lifetime | Laurențiu Nicola | -1/+1 | |
| 2025-04-28 | Merge pull request #19706 from Veykril/push-nkpmknlvzyom | Lukas Wirth | -24/+19 | |
| fix: Address minor FIXME | ||||
| 2025-04-28 | fix: Address minor FIXME | Lukas Wirth | -24/+19 | |
| 2025-04-28 | Merge pull request #19704 from Veykril/push-wrvznvvpvtvp | Lukas Wirth | -122/+169 | |
| Add expression fill mode variant for filling with underscore expressions | ||||
| 2025-04-28 | Add expression fill mode variant for filling with underscore expressions | Lukas Wirth | -122/+169 | |
| 2025-04-28 | Format code | Laurențiu Nicola | -1/+3 | |
| 2025-04-28 | Merge from rust-lang/rust | Laurențiu Nicola | -195/+37 | |
| 2025-04-26 | Merge pull request #19692 from vishruth-thimmaiah/remove_underscore_for_used_var | Chayim Refael Friedman | -0/+212 | |
| feat: adds an assist to remove underscores from used variables | ||||
| 2025-04-27 | feat: adds an assist to remove underscores from used variables | Vishruth-Thimmaiah | -0/+212 | |
| adds an assist that suggests removing any underscore prefixes from used variables. | ||||
| 2025-04-26 | Don't escape `'static` | Chayim Refael Friedman | -2/+10 | |
| As it is a valid lifetime without escaping. It does need to be escaped as a label, but we have no way to distinguish that. | ||||
| 2025-04-26 | Escape raw names in labels properly | Chayim Refael Friedman | -5/+26 | |
| 2025-04-25 | Clarify text for add_braces assist | Wilfred Hughes | -3/+3 | |
| "to arm expression" is hard to parse, because "arm" can be a verb. Not all Rust users may know that "arm" refers to a `match` expression either. Tweak the wording to make the sentence easier to parse, and clarify that this assist refers to `match`. Use the same wording style for the closure version too. | ||||
| 2025-04-25 | Merge pull request #19690 from ChayimFriedman2/preallocate-input | Chayim Refael Friedman | -3/+10 | |
| minor: Preallocate `parser::Input` | ||||
