mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
internal: switch some tests to minicore
This commit is contained in:
parent
0798cce9e5
commit
7cbcbccc78
2 changed files with 9 additions and 18 deletions
|
@ -3000,29 +3000,24 @@ fn foo(ar$0g: &impl Foo + Bar<S>) {}
|
|||
fn test_hover_async_block_impl_trait_has_goto_type_action() {
|
||||
check_actions(
|
||||
r#"
|
||||
//- minicore: future
|
||||
struct S;
|
||||
fn foo() {
|
||||
let fo$0o = async { S };
|
||||
}
|
||||
|
||||
#[prelude_import] use future::*;
|
||||
mod future {
|
||||
#[lang = "future_trait"]
|
||||
pub trait Future { type Output; }
|
||||
}
|
||||
"#,
|
||||
expect![[r#"
|
||||
[
|
||||
GoToType(
|
||||
[
|
||||
HoverGotoTypeData {
|
||||
mod_path: "test::future::Future",
|
||||
mod_path: "core::future::Future",
|
||||
nav: NavigationTarget {
|
||||
file_id: FileId(
|
||||
0,
|
||||
1,
|
||||
),
|
||||
full_range: 101..163,
|
||||
focus_range: 140..146,
|
||||
full_range: 244..426,
|
||||
focus_range: 283..289,
|
||||
name: "Future",
|
||||
kind: Trait,
|
||||
description: "pub trait Future",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue