summary refs log tree commit diff
path: root/src/libsyntax/visit.rs
AgeCommit message (Collapse)AuthorLines
2015-08-26Rename FnKind variants and stop re-exporting them from the visit module.Ms2ger-13/+11
There is no longer a need for that pattern, since enums are now qualified.
2015-08-16FnFnBlock -> FkClosureManish Goregaokar-4/+4
2015-08-16Impl Eq/PartialEq on FnKind, improve docsManish Goregaokar-3/+2
2015-08-14move InlinedItem into librustc, where it belongsNiko Matsakis-11/+0
2015-08-10Auto merge of #27451 - seanmonstar:use-groups-as, r=alexcrichtonbors-2/+9
An implementation of [RFC 1219](https://github.com/rust-lang/rfcs/pull/1219). The RFC is not merged yet, but once merged, this could be.
2015-08-08rustc: rename multiple imports in a listSean McArthur-2/+9
2015-08-04Add a macro invocation to the type ASTJared Roesch-0/+3
Reapplied the changes from https://github.com/freebroccolo/rust/commit/dc64b731d7f66c2b43d5e5e8c721be7bd3b59540 to a clean branch of master
2015-06-22Fix issue #23302, ICE on recursively defined enum variant discriminant.Sean Patrick Santos-1/+6
2015-06-11Conver reborrows to .iter() calls where appropriateJoshua Landau-4/+4
2015-05-21Make various fixes:Niko Matsakis-1/+1
- add feature gate - add basic tests - adjust parser to eliminate conflict between `const fn` and associated constants - allow `const fn` in traits/trait-impls, but forbid later in type check - correct some merge conflicts
2015-05-21syntax: parse `const fn` for free functions and inherent methods.Eduard Burtescu-3/+4
2015-04-23Get associated consts working in match patterns.Sean Patrick Santos-0/+4
2015-04-23Structural changes for associated constantsSean Patrick Santos-0/+10
Introduces new variants and types in syntax::ast, middle::ty, and middle::def.
2015-04-14Expose visibility for fns in syntax::visitNick Cameron-7/+7
2015-04-01Fallout in libsyntaxNiko Matsakis-1/+1
2015-03-11syntax: move MethMac to MacImplItem and combine {Provided,Required}Method ↵Eduard Burtescu-44/+14
into MethodTraitItem.
2015-03-11syntax: rename TypeMethod to MethodSig and use it in MethDecl.Eduard Burtescu-10/+10
2015-03-11syntax: gather common fields of impl & trait items into their respective types.Eduard Burtescu-64/+63
2015-03-11syntax: move indirection around {Trait,Impl}Item, from within.Eduard Burtescu-4/+4
2015-02-24Implement `<T>::method` UFCS expression syntax.Eduard Burtescu-10/+8
2015-02-24syntax: use a single Path for Trait::Item in QPath.Eduard Burtescu-11/+4
2015-02-24syntax: don't use TraitRef in QPath.Eduard Burtescu-11/+9
2015-02-24syntax: don't store a secondary NodeId for TyPath.Eduard Burtescu-2/+2
2015-02-22Rename DefTrait to DefaultImplFlavio Percoco-1/+1
2015-02-22Add support for default trait impls in libsyntaxFlavio Percoco-0/+3
2015-02-05cleanup: replace `as[_mut]_slice()` calls with deref coercionsJorge Aparicio-2/+2
2015-02-03Remove the explicit closure kind syntax from the parser and AST;Niko Matsakis-1/+1
upgrade the inference based on expected type so that it is able to infer the fn kind in isolation even if the full signature is not available (and we could perhaps do better still in some cases, such as extracting just the types of the arguments but not the return value).
2015-02-02`for x in xs.iter()` -> `for x in &xs`Jorge Aparicio-50/+50
2015-01-21syntax: fix fallout of merging ast::ViewItem into ast::Item.Eduard Burtescu-47/+26
2015-01-15syntax: add fully qualified UFCS expressions.Eduard Burtescu-3/+15
2015-01-05rollup merge of #20482: kmcallister/macro-reformAlex Crichton-6/+6
Conflicts: src/libflate/lib.rs src/libstd/lib.rs src/libstd/macros.rs src/libsyntax/feature_gate.rs src/libsyntax/parse/parser.rs src/libsyntax/show_span.rs src/test/auxiliary/macro_crate_test.rs src/test/compile-fail/lint-stability.rs src/test/run-pass/intrinsics-math.rs src/test/run-pass/tcp-connect-timeouts.rs
2015-01-05rollup merge of #20554: huonw/mut-patternAlex Crichton-1/+1
Conflicts: src/librustc_typeck/check/_match.rs
2015-01-05Reserve the keyword 'macro'Keegan McAllister-6/+6
2015-01-05remove TyClosureJorge Aparicio-8/+0
2015-01-05Change `&` pat to only work with &T, and `&mut` with &mut T.Huon Wilson-1/+1
This implements RFC 179 by making the pattern `&<pat>` require matching against a variable of type `&T`, and introducing the pattern `&mut <pat>` which only works with variables of type `&mut T`. The pattern `&mut x` currently parses as `&(mut x)` i.e. a pattern match through a `&T` or a `&mut T` that binds the variable `x` to have type `T` and to be mutable. This should be rewritten as follows, for example, for &mut x in slice.iter() { becomes for &x in slice.iter() { let mut x = x; Due to this, this is a [breaking-change] Closes #20496.
2015-01-04Add syntax for negative implementations of traitsFlavio Percoco-1/+1
This commit introduces the syntax for negative implmenetations of traits as shown below: `impl !Trait for Type {}` cc #13231 Part of RFC #3
2015-01-03sed -i -s 's/#\[deriving(/#\[derive(/g' **/*.rsJorge Aparicio-1/+1
2015-01-02rollup merge of #20341: nikomatsakis/impl-trait-for-trait-2Alex Crichton-2/+1
Conflicts: src/librustc/middle/traits/mod.rs src/libstd/io/mod.rs src/test/run-pass/builtin-superkinds-self-type.rs
2015-01-02Fix fallout from change, adding explicit `Sized` annotations where necessary.Niko Matsakis-2/+1
2015-01-02Make type in ast::Local optionalSeo Sanghyeon-5/+9
2014-12-30Don't normalize associated types when in region binders, wait until we ↵Niko Matsakis-0/+12
instantiate them. Also fix some assertions and handling of builtin bounds.
2014-12-29rollup merge of #20194: nick29581/dst-syntaxAlex Crichton-6/+7
Part of #19607. r? @nikomatsakis
2014-12-30Remove ExprSlice by hacking the compilerNick Cameron-5/+0
[breaking-change] The `mut` in slices is now redundant. Mutability is 'inferred' from position. This means that if mutability is only obvious from the type, you will need to use explicit calls to the slicing methods.
2014-12-30Add hypothetical support for ranges with only an upper boundNick Cameron-1/+1
Note that this doesn't add the surface syntax.
2014-12-29Slash the ast::Stmt type from 104 to 24 bytes.Huon Wilson-1/+1
(on platforms with 64-bit pointers.) The StmtMac variant is rather large and also fairly rare, so let's optimise the common case.
2014-12-26Accept `?Sized` as well as `Sized?`Nick Cameron-6/+7
Includes a bit of refactoring to store `?` unbounds as bounds with a modifier, rather than in their own world, in the AST at least.
2014-12-24Add syntax for rangesNick Cameron-0/+4
2014-12-20Add support for multiple region bounds in where clausesJared Roesch-2/+5
2014-12-20Add parser support for generalized where clausesJared Roesch-3/+8
Implement support in the parser for generalized where clauses, as well as the conversion of ast::WherePredicates to ty::Predicate in `collect.rs`.
2014-12-19libsyntax: use `#[deriving(Copy)]`Jorge Aparicio-2/+1