rust/src/libsyntax
bors d2235f20b5 Auto merge of #49478 - Phlosioneer:fix-windows-file-not-found, r=petrochenkov
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 (`"\"{}\""`).

I also checked the test suite to see if this output is being correctly tested. It's not - it only tests up to the word "directory". Presumably this is so that the test is not dependent on its exact position in the source tree. I don't know a better way to test this, unless the test suite supports regex?
2018-04-01 12:54:02 +00:00
..
diagnostics
ext Auto merge of #49279 - varkor:generated-closure-return-type, r=alexcrichton 2018-03-27 07:16:29 +00:00
parse Auto merge of #49478 - Phlosioneer:fix-windows-file-not-found, r=petrochenkov 2018-04-01 12:54:02 +00:00
print Fix pretty-printing for raw identifiers 2018-03-27 00:07:16 +03:00
util
abi.rs
ast.rs
attr.rs
build.rs
Cargo.toml
codemap.rs
config.rs rename epoch to edition 2018-03-20 10:27:02 -07:00
diagnostic_list.rs Fix missed i128 feature gates 2018-03-26 08:37:56 -05:00
edition.rs change all appropriate EPOCH to EDITION 2018-03-20 10:27:02 -07:00
entry.rs
feature_gate.rs Stabilize underscore lifetimes 2018-03-29 00:27:50 +02:00
fold.rs
json.rs
lib.rs Stabilize match_default_bindings 2018-03-28 11:13:13 +02:00
ptr.rs
README.md
show_span.rs
std_inject.rs
str.rs
test_snippet.rs
test.rs Auto merge of #49279 - varkor:generated-closure-return-type, r=alexcrichton 2018-03-27 07:16:29 +00:00
tokenstream.rs
visit.rs

The syntax crate contains those things concerned purely with syntax that is, the AST ("abstract syntax tree"), parser, pretty-printer, lexer, macro expander, and utilities for traversing ASTs.

For more information about how these things work in rustc, see the rustc guide: