about summary refs log tree commit diff
path: root/src/liballoc_system
diff options
context:
space:
mode:
authorPhlosioneer <mattmdrr2@gmail.com>2018-03-29 07:03:24 -0400
committerPhlosioneer <mattmdrr2@gmail.com>2018-03-29 07:15:58 -0400
commit19eedf98ffa8df52f7be7c003957ef11521551f4 (patch)
tree8c8b54faf077c38e52dbdc4deedf0cc40b7c90b9 /src/liballoc_system
parent482a913fb337855072a53c0d602cd19947f45285 (diff)
downloadrust-19eedf98ffa8df52f7be7c003957ef11521551f4.tar.gz
rust-19eedf98ffa8df52f7be7c003957ef11521551f4.zip
Fix escaped backslash in windows file not found message
When a module is declared, but no matching file exists, rustc gives
an error like 'help: name the file either foo.rs or foo/mod.rs inside
the directory "src/bar"'. However, at on windows, the backslash was
double-escaped when naming the directory.

It did this because the string was printed in debug mode ( "{:?}" ) to
surround it with quotes. However, it should just be printed like any
other directory in an error message and surrounded by escaped quotes,
rather than relying on the debug print to add quotes ( "\"{}\"" ).
Diffstat (limited to 'src/liballoc_system')
0 files changed, 0 insertions, 0 deletions