about summary refs log tree commit diff
path: root/src/libsyntax_ext/test.rs
AgeCommit message (Collapse)AuthorLines
2019-12-30Rename directories for some crates from `syntax_x` to `rustc_x`Vadim Petrochenkov-439/+0
`syntax_expand` -> `rustc_expand` `syntax_pos` -> `rustc_span` `syntax_ext` -> `rustc_builtin_macros`
2019-12-24x.py fmt after previous deignoreMark Rousskov-144/+205
2019-11-08ast::ItemKind::Fn: use ast::FnSigMazdak Farrokhzad-7/+7
2019-10-16move syntax::ext to new crate syntax_expandMazdak Farrokhzad-1/+1
2019-10-16attr: remove dep on ExtCtxtMazdak Farrokhzad-1/+3
2019-09-29Enhance report-time optionIgor Aleksanov-0/+44
2019-09-26Rename `Item.node` to `Item.kind`varkor-3/+3
2019-09-26Rename `Ty.node` to `Ty.kind`varkor-1/+1
2019-09-21Inline attribute constructorsMark Rousskov-2/+2
2019-09-15Give more `Idents` spansMatthew Jasper-4/+4
2019-09-05Make use of hygiene in AST passesMatthew Jasper-10/+9
2019-08-23Audit uses of `apply_mark` in built-in macrosVadim Petrochenkov-4/+2
Replace them with equivalents of `Span::{def_site,call_site}` from proc macro API. The new API is much less error prone and doesn't rely on macros having default transparency.
2019-08-15syntax_pos: `NO_EXPANSION`/`SyntaxContext::empty()` -> `SyntaxContext::root()`Vadim Petrochenkov-2/+2
For consistency with `ExpnId::root`. Also introduce a helper `Span::with_root_ctxt` for creating spans with `SyntaxContext::root()` context
2019-07-31Replace AstBuilder with inherent methodsMark Rousskov-1/+0
2019-07-31Remove Span argument from ExtCtxt::attributeMark Rousskov-4/+3
MetaItem.span was always equivalent
2019-07-27syntax_ext: `proc_macro_decls` -> `proc_macro_harness`Vadim Petrochenkov-1/+1
Few other minor renamings for consistency. Remove one unused dependency from `rustc_passes`. Fix libsyntax tests. Fix rebase.
2019-07-27Move test harness generation into libsyntax_extVadim Petrochenkov-0/+33
2019-07-24syntax_ext: Reuse built-in attribute template checking for macro attributesVadim Petrochenkov-4/+7
2019-07-19Adjust other names after the `Mark` renamingVadim Petrochenkov-1/+1
2019-07-15normalize use of backticks in compiler messages for libsyntax_extSamy Kacimi-3/+3
https://github.com/rust-lang/rust/issues/60532
2019-07-11Remove unnecessary expansions created by `#[test_case/test/bench]`Vadim Petrochenkov-11/+3
The expansions were created to allow unstable things inside `#[test_case/test/bench]`, but that's not a proper way to do that. Put the required `allow_internal_unstable`s into the macros' properties instead.
2019-07-11Rename some things in `syntax_pos/hygiene`Vadim Petrochenkov-2/+2
More consistent with other naming: ExpnFormat -> ExpnKind ExpnKind::name -> ExpnKind::descr DesugaringKind::name -> DesugaringKind::descr Shorter, no tautology: CompilerDesugaring -> Desugaring CompilerDesugaringKind -> DesugaringKind
2019-06-18syntax: Introduce `default`/`with_unstable` constructors for `ExpnInfo`Vadim Petrochenkov-10/+5
2019-06-18syntax: Factor out common fields from `SyntaxExtension` variantsVadim Petrochenkov-1/+1
2019-05-27Avoid unnecessary internings.Nicholas Nethercote-9/+6
Most involving `Symbol::intern` on string literals.
2019-05-21Move `edition` outside the hygiene lock and avoid accessing itJohn Kåre Alsaker-2/+2
2019-05-20Eliminate `Symbol::gensymed`.Nicholas Nethercote-1/+1
2019-05-13Pass a `Symbol` to `check_name`, `emit_feature_err`, and related functions.Nicholas Nethercote-6/+6
2019-04-17Fix comments around test harness generationAlexey Shmalko-1/+1
2019-03-16Refactor away `NestedMetaItemKind`Vadim Petrochenkov-1/+1
Remove methods `Attribute::span` and `MetaItem::span` duplicating public fields
2019-02-24Deny `async fn` in 2015 editionNathan Corbyn-1/+1
Fix style issues and update diagnostic messages Update src/librustc_passes/diagnostics.rs Co-Authored-By: doctorn <me@nathancorbyn.com> Deny nested `async fn` in Rust 2015 edition Deny nested `async fn` in Rust 2015 edition Deny nested `async fn` in Rust 2015 edition
2019-02-11Use `Rc<[Symbol]>` instead of `Vec<Symbol>` to reduce # of allocsOliver Scherer-2/+2
2019-02-11Require a list of features to allow in `allow_internal_unstable`Oliver Scherer-1/+4
2019-02-04libsyntax_ext => 2018Taiki Endo-7/+7
2019-01-16Auto merge of #57321 - petrochenkov:atokens, r=nikomatsakisbors-13/+3
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-13Implement basic input validation for built-in attributesVadim Petrochenkov-13/+3
2019-01-08improve non_upper_case_globals diagnosticsAndy Russell-2/+2
Use a structured suggestion and tighten the span to just the identifier.
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-1/+1
2018-11-11reword #[test] attribute error on fn itemsgiacomo-1/+1
2018-10-05expansion: Remove restriction on use of macro attributes with test/benchVadim Petrochenkov-7/+1
The restrictions were introduced in https://github.com/rust-lang/rust/pull/54277 and no longer necessary now because legacy plugins are now expanded in usual left-to-right order
2018-09-16Temporarily prohibit proc macro attributes placed after derivesVadim Petrochenkov-1/+7
... and also proc macro attributes used together with test/bench.
2018-09-04Move #[test_case] to a syntax extensionJohn Renner-2/+8
2018-09-04Introduce Custom Test FrameworksJohn Renner-0/+328