Input
fn foo() {
let file_name =
format!("{}", self.testpaths.file.display())
.replace(r"\", "/"); // on windows, translate all '\' path separators to '/'
}
Output
fn foo() {
let file_name = format!("{}", self.testpaths.file.display()).replace(r"\", "/"); // on windows, translate all '\' path separators to '/'
}
Meta
0.2.16-nightly (4e04e82 2017-11-28)
The above example is taken from https://github.com/rust-lang/rust/blob/8937d6a6cfb011d9e1fe6b4a426913dbbf9fd584/src/tools/compiletest/src/runtest.rs#L1007-L1009.
Input
Output
Meta
0.2.16-nightly (4e04e82 2017-11-28)The above example is taken from https://github.com/rust-lang/rust/blob/8937d6a6cfb011d9e1fe6b4a426913dbbf9fd584/src/tools/compiletest/src/runtest.rs#L1007-L1009.