Skip to content

Commit 9d3b39f

Browse files
committed
test: fix the added test case at pr #rust-lang#20432 to properly test the issue rust-lang#20215
1 parent 6e8896b commit 9d3b39f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

crates/ide-assists/src/handlers/add_missing_impl_members.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,29 +2433,31 @@ pub enum State {
24332433
Inactive,
24342434
}
24352435
2436+
use State::*;
2437+
24362438
pub trait Checker {
24372439
fn check(&self) -> State;
24382440
24392441
fn is_active(&self) -> bool {
24402442
match self.check() {
2441-
State::Active => true,
2442-
State::Inactive => false,
2443+
Active => true,
2444+
Inactive => false,
24432445
}
24442446
}
24452447
}
24462448
//- /main.rs crate:a deps:b
24472449
struct MyChecker;
24482450
24492451
impl b::Checker for MyChecker {
2450-
fn check(&self) -> lib::State {
2452+
fn check(&self) -> b::State {
24512453
todo!();
24522454
}$0
24532455
}"#,
24542456
r#"
24552457
struct MyChecker;
24562458
24572459
impl b::Checker for MyChecker {
2458-
fn check(&self) -> lib::State {
2460+
fn check(&self) -> b::State {
24592461
todo!();
24602462
}
24612463

0 commit comments

Comments
 (0)