mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
minor: use minicore
This commit is contained in:
parent
cc73abf72c
commit
a9623f3165
3 changed files with 10 additions and 27 deletions
|
@ -661,9 +661,7 @@ fn main() {
|
|||
fn function_call_parameter_hint() {
|
||||
check_params(
|
||||
r#"
|
||||
enum Option<T> { None, Some(T) }
|
||||
use Option::*;
|
||||
|
||||
//- minicore: option
|
||||
struct FileId {}
|
||||
struct SmolStr {}
|
||||
|
||||
|
@ -872,7 +870,6 @@ fn main() {
|
|||
check_types(
|
||||
r#"
|
||||
//- minicore: fn, sized
|
||||
|
||||
fn foo() -> impl Fn() { loop {} }
|
||||
fn foo1() -> impl Fn(f64) { loop {} }
|
||||
fn foo2() -> impl Fn(f64, f64) { loop {} }
|
||||
|
@ -960,9 +957,7 @@ fn main() {
|
|||
fn if_expr() {
|
||||
check_types(
|
||||
r#"
|
||||
enum Option<T> { None, Some(T) }
|
||||
use Option::*;
|
||||
|
||||
//- minicore: option
|
||||
struct Test { a: Option<u32>, b: u8 }
|
||||
|
||||
fn main() {
|
||||
|
@ -992,9 +987,7 @@ fn main() {
|
|||
fn while_expr() {
|
||||
check_types(
|
||||
r#"
|
||||
enum Option<T> { None, Some(T) }
|
||||
use Option::*;
|
||||
|
||||
//- minicore: option
|
||||
struct Test { a: Option<u32>, b: u8 }
|
||||
|
||||
fn main() {
|
||||
|
@ -1010,9 +1003,7 @@ fn main() {
|
|||
fn match_arm_list() {
|
||||
check_types(
|
||||
r#"
|
||||
enum Option<T> { None, Some(T) }
|
||||
use Option::*;
|
||||
|
||||
//- minicore: option
|
||||
struct Test { a: Option<u32>, b: u8 }
|
||||
|
||||
fn main() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue