Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--crates/ide-diagnostics/src/handlers/non_exhaustive_let.rs14
1 files changed, 2 insertions, 12 deletions
diff --git a/crates/ide-diagnostics/src/handlers/non_exhaustive_let.rs b/crates/ide-diagnostics/src/handlers/non_exhaustive_let.rs
index 9aace992ae..ff1eeb0516 100644
--- a/crates/ide-diagnostics/src/handlers/non_exhaustive_let.rs
+++ b/crates/ide-diagnostics/src/handlers/non_exhaustive_let.rs
@@ -80,7 +80,7 @@ fn main() {
//^^^^ error: non-exhaustive pattern: `Some(_)` not covered
}
}
-"#
+"#,
);
}
@@ -94,17 +94,7 @@ fn test(x: Result<i32, !>) {
}
"#,
);
- check_diagnostics(
- r#"
-//- minicore: result
-fn test(ptr: *const Result<i32, !>) {
- unsafe {
- let Ok(_x) = *ptr;
- //^^^^^^ error: non-exhaustive pattern: `Err(_)` not covered
- }
-}
-"#,
- );
+
check_diagnostics(
r#"
//- minicore: result