Skip to content

Commit 9e6ca0d

Browse files
committed
Auto merge of rust-lang#12097 - lnicola:revert-11490, r=lnicola
Revert rust-lang#11490 Closes rust-lang#11725 rust-lang#11490 was a little misguided. Quoting the test name should be a client concern, since it's the client that actually runs `cargo`.
2 parents 0b49c93 + 4a57307 commit 9e6ca0d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

crates/ide/src/runnables.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,8 @@ fn module_def_doctest(db: &RootDatabase, def: Definition) -> Option<Runnable> {
435435
ty_args.format_with(", ", |ty, cb| cb(&ty.display(db)))
436436
);
437437
}
438-
return Some(format!(r#""{}::{}""#, path, def_name));
438+
format_to!(path, "::{}", def_name);
439+
return Some(path);
439440
}
440441
}
441442
}
@@ -977,7 +978,7 @@ impl Data {
977978
},
978979
kind: DocTest {
979980
test_id: Path(
980-
"\"Data::foo\"",
981+
"Data::foo",
981982
),
982983
},
983984
cfg: None,
@@ -1371,7 +1372,7 @@ impl Foo {
13711372
},
13721373
kind: DocTest {
13731374
test_id: Path(
1374-
"\"foo::Foo::foo\"",
1375+
"foo::Foo::foo",
13751376
),
13761377
},
13771378
cfg: None,
@@ -2077,7 +2078,7 @@ impl<T, U> Foo<T, U> {
20772078
},
20782079
kind: DocTest {
20792080
test_id: Path(
2080-
"\"Foo<T, U>::t\"",
2081+
"Foo<T, U>::t",
20812082
),
20822083
},
20832084
cfg: None,

0 commit comments

Comments
 (0)