Improve completions in if / while expression conditions

This commit is contained in:
Lukas Wirth 2025-06-17 13:33:30 +02:00
parent a31e10a2fd
commit 4331688e3d
3 changed files with 236 additions and 134 deletions

View file

@ -10,7 +10,7 @@ use syntax::ast::{self, Pat, make};
use crate::RootDatabase;
/// Enum types that implement `std::ops::Try` trait.
#[derive(Clone, Copy)]
#[derive(Clone, Copy, Debug)]
pub enum TryEnum {
Result,
Option,