rust/src/libsyntax_ext
bors ceb2512144 Auto merge of #57321 - petrochenkov:atokens, r=nikomatsakis
Implement basic input validation for built-in attributes

Correct top-level shape (`#[attr]` vs `#[attr(...)]` vs `#[attr = ...]`) is enforced for built-in attributes, built-in attributes must also fit into the "meta-item" syntax (aka the "classic attribute syntax").

For some subset of attributes (found by crater run), errors are lowered to deprecation warnings.

NOTE: This PR previously included https://github.com/rust-lang/rust/pull/57367 as well.
2019-01-16 15:01:20 +00:00
..
deriving Fix trace_macros and log_syntax 2018-12-27 15:51:36 +03:00
asm.rs make panictry! private to libsyntax 2019-01-02 11:02:30 -05:00
assert.rs make panictry! private to libsyntax 2019-01-02 11:02:30 -05:00
Cargo.toml Upgrade smallvec to 0.6.7 and use the new may_dangle feature. 2018-12-10 09:31:27 +11:00
cfg.rs make panictry! private to libsyntax 2019-01-02 11:02:30 -05:00
compile_error.rs Improve error recovery for some built-in macros 2018-12-30 01:43:35 +03:00
concat.rs Improve error recovery for some built-in macros 2018-12-30 01:43:35 +03:00
concat_idents.rs Improve error recovery for some built-in macros 2018-12-30 01:43:35 +03:00
diagnostics.rs Remove licenses 2018-12-25 21:08:33 -07:00
env.rs Improve error recovery for some built-in macros 2018-12-30 01:43:35 +03:00
format.rs don't unwrap unexpected tokens in format! 2019-01-11 13:00:44 -05:00
format_foreign.rs Remove licenses 2018-12-25 21:08:33 -07:00
global_asm.rs make panictry! private to libsyntax 2019-01-02 11:02:30 -05:00
lib.rs Remove licenses 2018-12-25 21:08:33 -07:00
log_syntax.rs Make sure feature gate errors are recoverable 2018-12-27 15:51:37 +03:00
proc_macro_decls.rs Implement basic input validation for built-in attributes 2019-01-13 14:17:19 +03:00
proc_macro_impl.rs Remove licenses 2018-12-25 21:08:33 -07:00
proc_macro_server.rs Make TokenStream less recursive. 2019-01-08 15:08:46 +11:00
test.rs Auto merge of #57321 - petrochenkov:atokens, r=nikomatsakis 2019-01-16 15:01:20 +00:00
test_case.rs Make sure feature gate errors are recoverable 2018-12-27 15:51:37 +03:00
trace_macros.rs Make sure feature gate errors are recoverable 2018-12-27 15:51:37 +03:00