mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
minor: use minicore
This commit is contained in:
parent
c2f15270ee
commit
2e4df27132
3 changed files with 3 additions and 17 deletions
|
@ -831,7 +831,6 @@ fn path_element_of_reference(
|
|||
})?;
|
||||
stdx::always!(
|
||||
matches!(path, ast::Expr::PathExpr(_) | ast::Expr::MacroCall(_)),
|
||||
|
||||
"unexpected expression type for variable usage: {:?}",
|
||||
path
|
||||
);
|
||||
|
@ -2991,11 +2990,7 @@ mod bar {
|
|||
check_assist(
|
||||
extract_function,
|
||||
r#"
|
||||
enum Option<T> {
|
||||
#[lang = "None"] None,
|
||||
#[lang = "Some"] Some(T),
|
||||
}
|
||||
use Option::*;
|
||||
//- minicore: option
|
||||
fn foo() {
|
||||
loop {
|
||||
let n = 1;
|
||||
|
@ -3007,11 +3002,6 @@ fn foo() {
|
|||
}
|
||||
"#,
|
||||
r#"
|
||||
enum Option<T> {
|
||||
#[lang = "None"] None,
|
||||
#[lang = "Some"] Some(T),
|
||||
}
|
||||
use Option::*;
|
||||
fn foo() {
|
||||
loop {
|
||||
let n = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue