summary refs log tree commit diff
path: root/src/libsyntax_expand
AgeCommit message (Collapse)AuthorLines
2019-12-14expand: Fully preserve visibilities on unnamed fields with attributesVadim Petrochenkov-4/+23
2019-11-04Auto merge of #66078 - petrochenkov:gateout, r=Centrilbors-16/+50
expand: Feature gate out-of-line modules in proc macro input Extracted from https://github.com/rust-lang/rust/pull/64273. We are currently gating attributes applied directly to `mod` items because there are unresolved questions about out-of-line modules and their behavior is very likely to change. However, you can sneak an out-of-line module into an attribute macro input using modules nested into other items like ```rust #[my_attr] fn m() { #[path = "zzz.rs"] mod n; // what tokens does the `my_attr` macro see? } ``` This PR prevents that and emits a feature gate error for this case as well. r? @Centril It would be great to land this before beta.
2019-11-04expand: Feature gate out-of-line modules in proc macro inputVadim Petrochenkov-16/+50
2019-11-03Migrate resolver over to internal lint bufferMark Rousskov-2/+2
2019-10-27rustc, rustc_passes: don't depend on syntax_expand.Mazdak Farrokhzad-95/+4
This is done by moving some data definitions to syntax::expand.
2019-10-27syntax/attr: reduce reliance on parserMazdak Farrokhzad-1/+8
2019-10-21Rollup merge of #65647 - nnethercote:rm-unnecessary-traits, r=CentrilMazdak Farrokhzad-1/+1
Remove unnecessary trait bounds and derivations This PR removes unnecessary trait bounds and derivations from many types. r? @nikomatsakis
2019-10-21Remove many unnecessary trait derivations.Nicholas Nethercote-1/+1
2019-10-19Avoid ICE when include! is used by stdin crateNika Layzell-5/+19
This should also eliminate the ICE when using `include_bytes!`, `include_str!` and `#[doc(include = "...")]`. Fixes #63900
2019-10-19Fix rebaseVadim Petrochenkov-1/+2
2019-10-19expand: Simplify expansion of derivesVadim Petrochenkov-23/+24
And make it more uniform with other macros. By merging placeholders for future derives' outputs into the derive container's output fragment early.
2019-10-16mbe: leave a FIXMEMazdak Farrokhzad-0/+3
2019-10-16move syntax::ext to new crate syntax_expandMazdak Farrokhzad-0/+8388