mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 09:27:27 +00:00
Auto merge of #12097 - lnicola:revert-11490, r=lnicola
Revert #11490 Closes #11725 #11490 was a little misguided. Quoting the test name should be a client concern, since it's the client that actually runs `cargo`.
This commit is contained in:
commit
9e6ca0dacf
1 changed files with 5 additions and 4 deletions
|
@ -435,7 +435,8 @@ fn module_def_doctest(db: &RootDatabase, def: Definition) -> Option<Runnable> {
|
|||
ty_args.format_with(", ", |ty, cb| cb(&ty.display(db)))
|
||||
);
|
||||
}
|
||||
return Some(format!(r#""{}::{}""#, path, def_name));
|
||||
format_to!(path, "::{}", def_name);
|
||||
return Some(path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -977,7 +978,7 @@ impl Data {
|
|||
},
|
||||
kind: DocTest {
|
||||
test_id: Path(
|
||||
"\"Data::foo\"",
|
||||
"Data::foo",
|
||||
),
|
||||
},
|
||||
cfg: None,
|
||||
|
@ -1371,7 +1372,7 @@ impl Foo {
|
|||
},
|
||||
kind: DocTest {
|
||||
test_id: Path(
|
||||
"\"foo::Foo::foo\"",
|
||||
"foo::Foo::foo",
|
||||
),
|
||||
},
|
||||
cfg: None,
|
||||
|
@ -2077,7 +2078,7 @@ impl<T, U> Foo<T, U> {
|
|||
},
|
||||
kind: DocTest {
|
||||
test_id: Path(
|
||||
"\"Foo<T, U>::t\"",
|
||||
"Foo<T, U>::t",
|
||||
),
|
||||
},
|
||||
cfg: None,
|
||||
|
|
Loading…
Reference in a new issue