about summary refs log tree commit diff
path: root/src/libsyntax/ext/deriving/ty.rs
AgeCommit message (Collapse)AuthorLines
2014-05-17syntax: Tighten search paths for inner modulesAlex Crichton-267/+0
This is an implementation of RFC 16. A module can now only be loaded if the module declaring `mod name;` "owns" the current directory. A module is considered as owning its directory if it meets one of the following criteria: * It is the top-level crate file * It is a `mod.rs` file * It was loaded via `#[path]` * It was loaded via `include!` * The module was declared via an inline `mod foo { ... }` statement For example, this directory structure is now invalid // lib.rs mod foo; // foo.rs mod bar; // bar.rs; fn bar() {} With this change `foo.rs` must be renamed to `foo/mod.rs`, and `bar.rs` must be renamed to `foo/bar.rs`. This makes it clear that `bar` is a submodule of `foo`, and can only be accessed through `foo`. RFC: 0016-module-file-system-hierarchy Closes #14180 [breaking-change]
2014-05-06librustc: Remove `~EXPR`, `~TYPE`, and `~PAT` from the language, exceptPatrick Walton-5/+6
for `~str`/`~[]`. Note that `~self` still remains, since I forgot to add support for `Box<self>` before the snapshot. How to update your code: * Instead of `~EXPR`, you should write `box EXPR`. * Instead of `~TYPE`, you should write `Box<Type>`. * Instead of `~PATTERN`, you should write `box PATTERN`. [breaking-change]
2014-05-02Replace most ~exprs with 'box'. #11779Brian Anderson-1/+1
2014-04-23Support unsized types with the `type` keywordNick Cameron-4/+5
2014-04-23Add a span to ast::TyParamNick Cameron-1/+1
2014-03-31syntax: Switch field privacy as necessaryAlex Crichton-6/+6
2014-03-30Removed deprecated functions `map` and `flat_map` for vectors and slices.Marvin Löbel-7/+9
2014-03-22Migrate all users of opt_vec to owned_slice, delete opt_vec.Huon Wilson-10/+9
syntax::opt_vec is now entirely unused, and so can go.
2014-03-20Removing imports of std::vec_ng::VecAlex Crichton-2/+0
It's now in the prelude.
2014-03-20rename std::vec_ng -> std::vecDaniel Micay-1/+1
Closes #12771
2014-03-12Changed lists of lifetimes in ast and ty to use Vec instead of OptVec.Felix S. Klock II-5/+5
There is a broader revision (that does this across the board) pending in #12675, but that is awaiting the arrival of more data (to decide whether to keep OptVec alive by using a non-Vec internally). For this code, the representation of lifetime lists needs to be the same in both ScopeChain and in the ast and ty structures. So it seemed cleanest to just use `vec_ng::Vec`, now that it has a cheaper empty representation than the current `vec` code.
2014-03-01libsyntax: Fix errors arising from the automated `~[T]` conversionPatrick Walton-5/+12
2014-03-01libsyntax: Mechanically change `~[T]` to `Vec<T>`Patrick Walton-14/+14
2014-02-22Represent lifetimes as Names instead of IdentsEdward Wang-4/+4
Closes #7743.
2014-02-08Fixed error starting with uppercasemr.Shu-2/+2
Error messages cleaned in librustc/middle Error messages cleaned in libsyntax Error messages cleaned in libsyntax more agressively Error messages cleaned in librustc more aggressively Fixed affected tests Fixed other failing tests Last failing tests fixed
2014-02-07Removed @self and @Trait.Eduard Burtescu-5/+0
2014-01-30Implement default type parameters in generics.Eduard Burtescu-1/+1
2014-01-27Demote self to an (almost) regular argument and remove the env param.Eduard Burtescu-2/+2
Fixes #10667 and closes #10259.
2014-01-12Removed remnants of `@mut` and `~mut` from comments and the type system.Eduard Burtescu-1/+1
2014-01-09libsyntax: Renamed types, traits and enum variants to CamelCase.Eduard Burtescu-7/+7
2014-01-03librustc: Remove `@mut` support from the parserPatrick Walton-4/+4
2013-12-28Stop using @ExtCtxtSteven Fackler-9/+9
2013-12-11Make 'self lifetime illegal.Erik Price-16/+16
Also remove all instances of 'self within the codebase. This fixes #10889.
2013-12-01Box Block, fn_decl, variant and Ty in the AST, as they were inflating ↵Eduard Burtescu-3/+3
critical enum sizes.
2013-11-28Register new snapshotsAlex Crichton-2/+2
2013-11-26libsyntax: Remove all non-`proc` `do` syntax.Patrick Walton-8/+8
2013-11-08Generalize AST and ty::Generics to accept multiple lifetimes.Niko Matsakis-7/+11
2013-10-22libsyntax/librustc: Allow specifying mut on ~self.Luqman Aden-1/+1
2013-10-22libsyntax/librustc: Allow specifying mut on by-value self.Luqman Aden-1/+1
2013-10-09option: rewrite the API to use compositionDaniel Micay-1/+1
2013-09-03Modernized a few more types in syntax::astMarvin Löbel-5/+5
2013-09-02Renamed syntax::ast::ident -> IdentMarvin Löbel-7/+7
2013-09-01Modernized a few type names in rustc and syntaxMarvin Löbel-9/+9
2013-07-07De-share ast::TyJames Miller-2/+2
2013-07-07De-manage OptVec<TyParamBounds>James Miller-5/+3
2013-07-07De-manage LifetimeJames Miller-5/+4
2013-07-07De-managed ast::PathJames Miller-2/+2
2013-06-29Remove mutability from unique boxes in the ASTAlex Crichton-1/+1
2013-06-28librustc: Change "Owned" to "Send" everywherePatrick Walton-3/+3
2013-06-26Infer default static/Owned bounds for unbounded heap fns/traits (#7264)Ben Blum-2/+2
2013-06-25great renaming propagation: syntaxCorey Richardson-3/+1
2013-06-23Parse and typecheck (not kindcheck) bounds on trait paths.Ben Blum-2/+3
2013-06-01Remove all uses of `pub impl`. rs=stylePatrick Walton-18/+41
2013-05-22libextra: Rename the actual metadata names of libcore to libstd and libstd ↵Patrick Walton-0/+2
to libextra
2013-05-22syntax/ext: convert all AstBuilder methods to a uniform syntax.Huon Wilson-24/+19
2013-05-22syntax/ext: migrate build.rs functions to AstBuilder methods.Huon Wilson-18/+18
2013-05-22syntax/ext: modernise ext_ctxt to be CamelCase and use new.Huon Wilson-9/+9
2013-05-21syntax/ext: remove the ~str dependence of the deriving code.Huon Wilson-37/+39
2013-05-20Remove all unnecessary allocations (as flagged by lint)Alex Crichton-2/+2
2013-05-14rustc: rename ast::self_ty and related fields to explicit_selfErick Tryzelaar-1/+1