Skip to content

Commit a26389f

Browse files
authored
Rollup merge of rust-lang#80026 - JohnTitor:separator-insensitive, r=Mark-Simulacrum
expand-yaml-anchors: Make the output directory separator-insensitive Fixes rust-lang#75709
2 parents 1068f94 + 357565d commit a26389f

File tree

1 file changed

+2
-1
lines changed
  • src/tools/expand-yaml-anchors/src

1 file changed

+2
-1
lines changed

src/tools/expand-yaml-anchors/src/main.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ impl App {
8787
let content = std::fs::read_to_string(source)
8888
.with_context(|| format!("failed to read {}", self.path(source)))?;
8989

90-
let mut buf = HEADER_MESSAGE.replace("{source}", &self.path(source).to_string());
90+
let mut buf =
91+
HEADER_MESSAGE.replace("{source}", &self.path(source).to_string().replace("\\", "/"));
9192

9293
let documents = YamlLoader::load_from_str(&content)
9394
.with_context(|| format!("failed to parse {}", self.path(source)))?;

0 commit comments

Comments
 (0)