internal: switch some tests to minicore

This commit is contained in:
Aleksey Kladov 2021-06-15 23:02:38 +03:00
parent 2870d2bade
commit ae92057df6

View File

@ -536,17 +536,11 @@ fn test() {
fn test_completion_await_impls_future() {
check(
r#"
//- /main.rs crate:main deps:std
use std::future::*;
//- minicore: future
use core::future::*;
struct A {}
impl Future for A {}
fn foo(a: A) { a.$0 }
//- /std/lib.rs crate:std
pub mod future {
#[lang = "future_trait"]
pub trait Future {}
}
"#,
expect![[r#"
kw await expr.await
@ -555,20 +549,12 @@ pub trait Future {}
check(
r#"
//- /main.rs crate:main deps:std
//- minicore: future
use std::future::*;
fn foo() {
let a = async {};
a.$0
}
//- /std/lib.rs crate:std
pub mod future {
#[lang = "future_trait"]
pub trait Future {
type Output;
}
}
"#,
expect![[r#"
kw await expr.await