about summary refs log tree commit diff
path: root/src/libsyntax/attr.rs
AgeCommit message (Collapse)AuthorLines
2013-05-10renamed vec::from_slice to vec::to_ownedYoungsoo Son-1/+1
2013-05-02Remove 'Local Variable' commentsBrendan Zabarauskas-10/+0
2013-04-27only use #[no_core] in libcoreDaniel Micay-3/+0
2013-04-19syntax: de-mode and prepare for de-modeing rustcAlex Crichton-4/+4
2013-04-03rename Linear{Map,Set} => Hash{Map,Set}Daniel Micay-2/+2
2013-04-03hashmap: rm linear namespaceDaniel Micay-1/+1
2013-03-31Fix warningsBrian Anderson-1/+0
2013-03-29Add AbiSet and integrate it into the AST.Niko Matsakis-21/+0
I believe this patch incorporates all expected syntax changes from extern function reform (#3678). You can now write things like: extern "<abi>" fn foo(s: S) -> T { ... } extern "<abi>" mod { ... } extern "<abi>" fn(S) -> T The ABI for foreign functions is taken from this syntax (rather than from an annotation). We support the full ABI specification I described on the mailing list. The correct ABI is chosen based on the target architecture. Calls by pointer to C functions are not yet supported, and the Rust type of crust fns is still *u8.
2013-03-27derive Eq and Clone impls where applicableAndrew Paseltiner-8/+1
2013-03-22librustc: Remove `pure` from libsyntax and librustc.Patrick Walton-4/+4
2013-03-13librustc: Don't accept `as Trait` anymore; fix all occurrences of it.Patrick Walton-1/+1
2013-03-13Remove `++` mode from the compiler (it is parsed as `+` mode)Niko Matsakis-3/+3
and obsolete `-` mode altogether (it *was* parsed as `+` mode).
2013-03-05core: convert vec::{last,last_opt} to return referencesErick Tryzelaar-1/+1
2013-03-04Remove unused imports throughout src/Alex Crichton-2/+0
2013-02-26libsyntax: add some explicit refsErick Tryzelaar-5/+4
2013-02-25libsyntax: progress on making syntax::visit vecs_implicitly_copyable-freeErick Tryzelaar-18/+20
2013-02-25libsyntax: convert visit to pass ty_params by referenceErick Tryzelaar-2/+2
2013-02-25libsyntax: add explicit modes where required to copy strs/vecsErick Tryzelaar-3/+3
2013-02-25libsyntax: Convert ast::attribute_ to store a @meta_itemErick Tryzelaar-7/+8
2013-02-19convert ast::meta_items to take @~strsErick Tryzelaar-9/+9
2013-02-19convert syntax::attr to use @~strsErick Tryzelaar-73/+69
2013-02-19libsyntax and librustc: minor cleanupErick Tryzelaar-2/+2
2013-02-19libsyntax: change attr:get_attr_name to take a refErick Tryzelaar-7/+6
2013-02-17syntax: Implement recursive sorting of meta items. Closes #607Zack Corr-10/+20
2013-02-15libsyntax: Get rid of uses of `move` and don't parse it.Luqman Aden-1/+1
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-1/+1
rs=implflipping
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-1/+1
2013-02-08libsyntax/attr.rs: switch from oldmap to LinearSetDaniel Micay-5/+3
2013-02-08oldmap: get rid of legacy _ref suffixesDaniel Micay-1/+1
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-3/+3
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-02-04Merge remote-tracking branch 'bstrie/rimov' into incomingBrian Anderson-2/+2
Conflicts: src/libsyntax/parse/parser.rs src/test/bench/graph500-bfs.rs src/test/bench/sudoku.rs src/test/run-pass/borrowck-mut-vec-as-imm-slice.rs src/test/run-pass/empty-mutable-vec.rs src/test/run-pass/foreach-nested.rs src/test/run-pass/swap-2.rs
2013-02-03oldmap: get rid of the legacy contains_key methodDaniel Micay-1/+1
2013-02-03rename map -> oldmap and mark it as deprecatedDaniel Micay-3/+3
LinearMap is quite a bit faster, and is fully owned/sendable without requiring copies. The older std::map also doesn't use explicit self and relies on mutable fields.
2013-01-31test cases, cleanupJohn Clements-1/+1
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-1/+1
2013-01-31Finalize moves-based-on-type implementation.Niko Matsakis-2/+2
Changes: - Refactor move mode computation - Removes move mode arguments, unary move, capture clauses (though they still parse for backwards compatibility) - Simplify how moves are handled in trans - Fix a number of illegal copies that cropped up - Workaround for bug involving def-ids in params (see details below) Future work (I'll open bugs for these...): - Improve error messages for moves that are due to bindings - Add support for moving owned content like a.b.c to borrow check, test in trans (but I think it'll "just work") - Proper fix for def-ids in params Def ids in params: Move captures into a map instead of recomputing. This is a workaround for a larger bug having to do with the def-ids associated with ty_params, which are not always properly preserved when inlining. I am not sure of my preferred fix for the larger bug yet. This current fix removes the only code in trans that I know of which relies on ty_param def-ids, but feels fragile.
2013-01-30Fix RIMOV damage to libsyntaxBen Striegel-2/+2
2013-01-30RIMOV, round 3Ben Striegel-1/+1
find ./ -type f -name "*.rs" -exec sed -i "s/let \(.*\)\[mut[ ]\?/let mut \1\[/g" {} \;
2013-01-29libsyntax: De-export a lot of libsyntax. rs=deëxportingPatrick Walton-74/+40
2013-01-24remove remaining is_not_empty functions/methodsDaniel Micay-1/+1
2013-01-23core: Rename to_mut and from_mut to cast_to_mut and cast_from_mutTrinick-2/+2
2013-01-22syntax/rustc: Make some metadata-related functions take slices, kill bad copiesTim Chevalier-1/+1
Too small to review.
2013-01-14convert ast::attribute_ and ast::view_item to a structErick Tryzelaar-4/+5
2013-01-14syntax/rustc: Eliminate some bad copiesTim Chevalier-11/+12
r=pcwalton
2013-01-10librustc: Implement a #[no_mangle] attribute to suppress name mangling. r=brsonPatrick Walton-2/+2
This is very helpful for SDL, as SDL wants you to define a function named `SDL_main`.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+2
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-2/+0
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+2
module scope. r=tjc
2013-01-05librustc: Remove some string allocations. rs=perfPatrick Walton-7/+7
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-5/+13
contain at least two components. r=graydon