mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +00:00
Revert "Correctly fix formatting doc tests with generics"
This reverts commit 5f3327a6b8
.
This commit is contained in:
parent
0d02be7330
commit
4a57307674
1 changed files with 5 additions and 5 deletions
|
@ -435,8 +435,8 @@ fn module_def_doctest(db: &RootDatabase, def: Definition) -> Option<Runnable> {
|
|||
ty_args.format_with(", ", |ty, cb| cb(&ty.display(db)))
|
||||
);
|
||||
}
|
||||
format_to!(path, "::{}\"", def_name);
|
||||
return Some(format!("\"{}", path));
|
||||
format_to!(path, "::{}", def_name);
|
||||
return Some(path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -978,7 +978,7 @@ impl Data {
|
|||
},
|
||||
kind: DocTest {
|
||||
test_id: Path(
|
||||
"\"Data::foo\"",
|
||||
"Data::foo",
|
||||
),
|
||||
},
|
||||
cfg: None,
|
||||
|
@ -1372,7 +1372,7 @@ impl Foo {
|
|||
},
|
||||
kind: DocTest {
|
||||
test_id: Path(
|
||||
"\"foo::Foo::foo\"",
|
||||
"foo::Foo::foo",
|
||||
),
|
||||
},
|
||||
cfg: None,
|
||||
|
@ -2078,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