rust/src/libsyntax
Mark Rousskov 00ca508608 Move pp::Printer out field to owned String
This enforces that eof() must be called to get the String out, and
generally is better from an API perspective. No users of pretty printing
pre-allocate the buffer.
2019-07-10 07:12:28 -04:00
..
attr syntax: Migrate built-in macros to the regular stability checking 2019-07-07 13:04:07 +03:00
diagnostics Rollup merge of #61813 - matthewjasper:remove-unnecessary-symbol-ops, r=petrochenkov 2019-06-15 17:45:02 +02:00
ext Resolve $crate in all hygienic contexts for pretty-pringing 2019-07-09 22:17:44 +03:00
parse Replace src: &mut dyn Read with String 2019-07-10 07:12:28 -04:00
print Move pp::Printer out field to owned String 2019-07-10 07:12:28 -04:00
util Add missing lifetime specifier 2019-07-03 10:01:03 +02:00
ast.rs Move lifetime_to_string to Display impl 2019-07-10 07:11:29 -04:00
build.rs Remove licenses 2018-12-25 21:08:33 -07:00
Cargo.toml rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
config.rs Lint on 'cfg_attr(,).' 2019-06-22 12:11:01 +02:00
early_buffered_lints.rs Remove outdated question_mark_macro_sep lint 2019-06-26 20:34:12 +02:00
entry.rs Remove the equality operation between Symbol and strings. 2019-05-13 09:31:30 +10:00
error_codes.rs Added the E0704 error with a link to the Rust reference. 2019-05-01 12:01:52 +02:00
feature_gate.rs normalize use of backticks in compiler messages for libsyntax/feature_gate 2019-07-09 14:13:28 +02:00
json.rs Make -Zemit-artifact-notifications also emit the artifact type 2019-05-21 13:51:36 -07:00
lib.rs Rollup merge of #61545 - flip1995:internal_lints, r=oli-obk 2019-07-05 20:26:51 +02:00
mut_visit.rs Remove io::Result from syntax::print 2019-06-29 09:10:17 -04:00
ptr.rs rustc: use a separate copy of P for HIR than for AST. 2019-07-01 14:34:34 +03:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00
show_span.rs Rename rustc_errors dependency in rust 2018 crates 2019-02-13 00:28:52 +09:00
source_map.rs Fix clippy::redundant_field_names 2019-06-26 13:59:58 +02:00
std_inject.rs syntax: Introduce default/with_unstable constructors for ExpnInfo 2019-06-18 10:48:56 +03:00
test.rs Auto merge of #62099 - Mark-Simulacrum:syntax-print-clean-2, r=eddyb 2019-07-05 06:55:48 +00:00
test_snippet.rs Move edition outside the hygiene lock and avoid accessing it 2019-05-21 18:17:05 +02:00
tokenstream.rs Switch master to 1.38 2019-07-04 11:26:57 -04:00
visit.rs Auto merge of #62075 - Centril:guardless-match-arms, r=petrochenkov 2019-06-24 05:00:10 +00:00

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: