https://github.com/rust-lang/rust-clippy/pull/10426#discussion_r1179125971 > Could we adapt [the path heuristic from rust's compiletest](https://github.com/rust-lang/rust/blob/6ce22733b973355573efd1e6294e585460e90e17/src/tools/compiletest/src/runtest.rs#L3748-L3775) here? I think it would need support in ui_test as it uses a non string Replacer > It would be nice to have non path backslashes stay as backslashes as that frequently confuses people writing tests