about summary refs log tree commit diff
path: root/src/libsyntax/visit.rs
AgeCommit message (Collapse)AuthorLines
2018-06-27Generate the `NodeId` for `existential type` in the ASTOliver Schneider-1/+1
2018-06-21async await desugaring and testsTaylor Cramer-2/+5
2018-06-21Parse async fn header.Without Boats-7/+5
This is gated on edition 2018 & the `async_await` feature gate. The parser will accept `async fn` and `async unsafe fn` as fn items. Along the same lines as `const fn`, only `async unsafe fn` is permitted, not `unsafe async fn`.The parser will not accept `async` functions as trait methods. To do a little code clean up, four fields of the function type struct have been merged into the new `FnHeader` struct: constness, asyncness, unsafety, and ABI. Also, a small bug in HIR printing is fixed: it previously printed `const unsafe fn` as `unsafe const fn`, which is grammatically incorrect.
2018-06-20Fix additional commentsvarkor-1/+1
2018-06-20Make GenericBound explicitvarkor-6/+2
2018-06-20Rename ParamBound(s) to GenericBound(s)varkor-2/+2
2018-06-20Rename TraitTyParamBound to ParamBound::Traitvarkor-1/+1
2018-06-20Take advantage of the lifetime refactoringvarkor-8/+3
2018-06-20Use ParamBounds in WhereRegionPredicatevarkor-9/+9
2018-06-20Lift bounds into GenericParamvarkor-6/+5
2018-06-20Simply joint lifetime/type iterationvarkor-1/+1
2018-06-20Refactor counting methodsvarkor-2/+2
2018-06-20Rename structures in astvarkor-7/+7
2018-06-20Refactor ast::GenericParam as a structvarkor-9/+9
2018-06-20Refactor hir::GenericParam as a structvarkor-1/+3
2018-06-20Rename ast::GenericParam and ast::GenericArgvarkor-7/+7
It's so confusing to have everything having the same name, at least while refactoring.
2018-06-20Make method and variable names more consistentvarkor-3/+3
2018-06-20Rename "parameter" to "arg"varkor-6/+6
2018-06-20Rename PathParameter(s) to GenericArg(s)varkor-11/+16
2018-06-20Consolidate PathParameters and AngleBracketedParameterDatavarkor-2/+2
2018-06-14create multiple HIR items for a use statementQuietMisdreavus-1/+2
2018-05-30rustc: don't visit lifetime parameters through visit_lifetime.Eduard-Mihai Burtescu-2/+2
2018-05-24restore emplacement syntax (obsolete)Niko Matsakis-0/+4
2018-05-19rustc: introduce {ast,hir}::AnonConst to consolidate so-called "embedded ↵Eduard-Mihai Burtescu-5/+10
constants".
2018-05-16label-break-value: Parsing and AST/HIR changesest31-1/+4
2018-04-26rustc_target: move in syntax::abi and flip dependency.Irina Popa-1/+1
2018-04-12AST/HIR: Merge field access expressions for named and numeric fieldsVadim Petrochenkov-3/+0
2018-04-06Remove more duplicated spansVadim Petrochenkov-20/+20
2018-04-06Rename `ast::Variant_::name` into `ident` + Fix rebaseVadim Petrochenkov-2/+2
2018-04-06Get rid of `SpannedIdent`Vadim Petrochenkov-5/+5
2018-04-06Rename `PathSegment::identifier` to `ident`Vadim Petrochenkov-1/+1
2018-04-05Rollup merge of #49350 - abonander:macros-in-extern, r=petrochenkovAlex Crichton-0/+1
Expand macros in `extern {}` blocks This permits macro and proc-macro and attribute invocations (the latter only with the `proc_macro` feature of course) in `extern {}` blocks, gated behind a new `macros_in_extern` feature. A tracking issue is now open at #49476 closes #48747
2018-04-03expand macro invocations in `extern {}` blocksAustin Bonander-0/+1
2018-04-03Remove all unstable placement featuresAidan Hobson Sayers-4/+0
Closes #22181, #27779
2018-03-17AST: Make renames in imports closer to the sourceVadim Petrochenkov-3/+4
Fix `unused_import_braces` lint false positive on `use prefix::{self as rename}`
2018-03-17AST/HIR: Clarify what the optional name in extern crate items meanVadim Petrochenkov-3/+3
2018-03-01Support parentheses in patterns under feature gateVadim Petrochenkov-1/+2
Improve recovery for trailing comma after `..`
2018-02-24Implement multiple patterns with `|` in `if let` and `while let`Vadim Petrochenkov-4/+4
2018-02-18Change ast::Visibility to Spanned typeSeiichi Uchida-1/+1
2018-02-18Add a span field to Visibility::RestrictedSeiichi Uchida-1/+1
This span covers the whole visibility expression: e.g. `pub (in path)`.
2018-01-25Rollup merge of #47502 - petrochenkov:label, r=eddybAlex Crichton-33/+25
AST/HIR: Add a separate structure for labels
2018-01-23Adds support for immovable generators. Move checking of invalid borrows ↵John Kåre Alsaker-1/+1
across suspension points to borrowck. Fixes #44197, #45259 and #45093.
2018-01-22AST/HIR: Add a separate structure for labelsVadim Petrochenkov-33/+25
2018-01-13Remove `impl Foo for ..` in favor of `auto trait Foo`leonardo.yvens-3/+0
No longer parse it. Remove AutoTrait variant from AST and HIR. Remove backwards compatibility lint. Remove coherence checks, they make no sense for the new syntax. Remove from rustdoc.
2017-12-21Add GenericParam, refactor Generics in ast, hir, rustdocJonas Platte-20/+22
The Generics now contain one Vec of an enum for the generic parameters, rather than two separate Vec's for lifetime and type parameters. Additionally, places that previously used Vec<LifetimeDef> now use Vec<GenericParam> instead.
2017-12-14add trait aliases to ASTAlex Burka-0/+4
2017-11-30Implement RFC 2128 (use_nested_groups)Pietro Albini-23/+20
This commit adds support for nested groups inside `use` declarations, such as `use foo::{bar, sub::{baz::Foo, *}};`.
2017-11-03add `auto` keyword, parse `auto trait`, lower to HIRleonardo.yvens-1/+1
Adds an `IsAuto` field to `ItemTrait` which flags if the trait was declared as an `auto trait`. Auto traits cannot have generics nor super traits.
2017-11-03[Syntax Breaking] Rename DefaultImpl to AutoImplleonardo.yvens-1/+1
DefaultImpl is a highly confusing name for what we now call auto impls, as in `impl Send for ..`. The name auto impl is not formally decided but for sanity anything is better than `DefaultImpl` which refers neither to `default impl` nor to `impl Default`.
2017-10-27Implement RFC 1861: Extern typesPaul Lietar-0/+1