about summary refs log tree commit diff
path: root/src/libsyntax/attr.rs
AgeCommit message (Collapse)AuthorLines
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
2012-12-11re-fix typoTim Chevalier-1/+1
2012-12-11Revert "Merge pull request #4144 from luqmana/deprecated-attribute"Tim Chevalier-1/+1
This reverts commit f675b97ddc3d85498473bb4da7f95b8942ebbd81, reversing changes made to e7dd3af970b44c09a429d02d60fd44b9f8ec45bd.
2012-12-09Add deprecated attribute.Luqman Aden-1/+1
2012-12-04librustc: Long lines. rs=rustbotPatrick Walton-1/+3
2012-12-04librustc: Remove all legacy pattern bindings from libsyntax and librustc. ↵Patrick Walton-15/+15
rs=refactoring
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-11-28Register snapshotsBrian Anderson-10/+0
2012-11-19rustc: Implement explicit self for Eq and Ord. r=graydonPatrick Walton-0/+10
2012-11-16Change spans to use byte offsets instead of char offsetsBrian Anderson-2/+2
2012-11-14Add types for character position and byte position in the codemapBrian Anderson-1/+3
2012-10-22Merge remote-tracking branch 'original/incoming' into incomingSimon BD-3/+1
2012-10-18libcore: minor code cleanup.Erick Tryzelaar-3/+1
This is minor and probably completely inconsequential to performance, but I find vec::map to be more clear than vec::each and a push.
2012-10-03Merge remote-tracking branch 'original/incoming' into incomingSimon BD-9/+9
Conflicts: src/libstd/json.rs src/libstd/sort.rs
2012-09-28demode vecNiko Matsakis-8/+8
2012-09-27Put function argument last in sort function. Fixes #3265.Simon BD-1/+1
2012-09-26Demode vec::push (and convert to method)Niko Matsakis-1/+1
2012-09-23Register snapshots. Remove redundant Eq impls, Makefile hacksBrian Anderson-9/+0
2012-09-21De-mode vec::map, vec::eachi, vec::rev_each, vec::rev_eachiNiko Matsakis-2/+2
2012-09-20Revert "syntax: Make attributes sendable for rustdoc's benefit"Brian Anderson-42/+42
This reverts commit 90e3665fa79d32c3188169cfa992516fb36b81a8.
2012-09-20syntax: Make attributes sendable for rustdoc's benefitBrian Anderson-42/+42
2012-09-20rustc: De-mode all overloaded operatorsPatrick Walton-0/+9
2012-09-19demode the each() method on vec and other iterables.Niko Matsakis-3/+3
2012-09-19Remove redundant hashmap constructor functions.Graydon Hoare-1/+1
2012-09-10Make all moves explicit in libsyntaxTim Chevalier-1/+1
2012-09-10Convert std::map to camel caseBrian Anderson-1/+1
2012-09-10rustc: Make shape-based compare glue never called for comparison operators.Patrick Walton-0/+7
Only called for string patterns.
2012-09-04libsyntax: "import" -> "use"Patrick Walton-6/+6
2012-08-26Camel case the option typeBrian Anderson-35/+35