rust/src/libsyntax
bors e70d5386d7 Auto merge of #61140 - estebank:attr-diagnostics, r=michaelwoerister
Reword malformed attribute input diagnostics

- Handle empty `cfg_attr` attribute
- Reword empty `derive` attribute error
- Use consistend error message: "malformed `attrname` attribute input"
- Provide suggestions when possible
- Move note/help to label/suggestion
- Use consistent wording "ill-formed" -> "malformed"
- Move diagnostic logic out of parser

Split up from https://github.com/rust-lang/rust/pull/61026, where there's prior conversation.
2019-05-27 20:12:14 +00:00
..
attr Reword malformed attribute input diagnostics 2019-05-25 11:55:50 -07:00
diagnostics syntax: Turn token::Lit into a struct 2019-05-23 12:46:24 +03:00
ext Auto merge of #61140 - estebank:attr-diagnostics, r=michaelwoerister 2019-05-27 20:12:14 +00:00
parse Use Symbol equality in is_ident_named. 2019-05-27 14:05:05 +10:00
print Remove ObsoleteInPlace 2019-05-24 01:27:32 +01:00
util Remove ObsoleteInPlace 2019-05-24 01:27:32 +01:00
ast.rs Add to_symbol methods. 2019-05-27 14:05:02 +10:00
build.rs
Cargo.toml Preallocate BUILTIN_ATTRIBUTES symbols and use a hash map instead of looping 2019-04-15 15:20:05 +02:00
config.rs Reword malformed attribute input diagnostics 2019-05-25 11:55:50 -07:00
early_buffered_lints.rs make duplicate matcher bindings a hard error 2019-04-10 21:29:17 -05: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 Reword malformed attribute input diagnostics 2019-05-25 11:55:50 -07:00
json.rs Make -Zemit-artifact-notifications also emit the artifact type 2019-05-21 13:51:36 -07:00
lib.rs review comments 2019-05-24 11:50:21 -07:00
mut_visit.rs Remove ObsoleteInPlace 2019-05-24 01:27:32 +01:00
ptr.rs
README.md
show_span.rs
source_map.rs Move edition outside the hygiene lock and avoid accessing it 2019-05-21 18:17:05 +02:00
std_inject.rs Avoid unnecessary internings. 2019-05-27 13:58:38 +10:00
test_snippet.rs Move edition outside the hygiene lock and avoid accessing it 2019-05-21 18:17:05 +02:00
test.rs Avoid unnecessary internings. 2019-05-27 13:58:38 +10:00
tokenstream.rs Short circuit Send and Sync impls for TokenTree 2019-05-27 08:58:05 +02:00
visit.rs Remove ObsoleteInPlace 2019-05-24 01:27:32 +01: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: