mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Merge #9288
9288: internal: cleanup tests r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
1c1f30bebf
3 changed files with 600 additions and 613 deletions
File diff suppressed because it is too large
Load diff
|
@ -105,12 +105,13 @@ fn foo<B: Bar
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[ignore = "This case is very rare but there is no simple solutions to fix it."]
|
|
||||||
fn replace_impl_trait_with_exist_generic_letter() {
|
fn replace_impl_trait_with_exist_generic_letter() {
|
||||||
|
// FIXME: This is wrong, we should pick a different name if the one we
|
||||||
|
// want is already bound.
|
||||||
check_assist(
|
check_assist(
|
||||||
replace_impl_trait_with_generic,
|
replace_impl_trait_with_generic,
|
||||||
r#"fn foo<B>(bar: $0impl Bar) {}"#,
|
r#"fn foo<B>(bar: $0impl Bar) {}"#,
|
||||||
r#"fn foo<B, C: Bar>(bar: C) {}"#,
|
r#"fn foo<B, B: Bar>(bar: B) {}"#,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -511,13 +511,14 @@ use std::io;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[ignore] // FIXME: Support this
|
|
||||||
fn split_out_merge() {
|
fn split_out_merge() {
|
||||||
|
// FIXME: This is suboptimal, we want to get `use std::fmt::{self, Result}`
|
||||||
|
// instead.
|
||||||
check_module(
|
check_module(
|
||||||
"std::fmt::Result",
|
"std::fmt::Result",
|
||||||
r"use std::{fmt, io};",
|
r"use std::{fmt, io};",
|
||||||
r"use std::fmt::{self, Result};
|
r"use std::fmt::Result;
|
||||||
use std::io;",
|
use std::{fmt, io};",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue