Skip to content

Commit

Permalink
Rollup merge of rust-lang#80026 - JohnTitor:separator-insensitive, r=…
Browse files Browse the repository at this point in the history
…Mark-Simulacrum

expand-yaml-anchors: Make the output directory separator-insensitive

Fixes rust-lang#75709
  • Loading branch information
Dylan-DPC authored Dec 16, 2020
2 parents 51007f5 + 357565d commit 34bd7c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tools/expand-yaml-anchors/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ impl App {
let content = std::fs::read_to_string(source)
.with_context(|| format!("failed to read {}", self.path(source)))?;

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

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

0 comments on commit 34bd7c2

Please sign in to comment.