about summary refs log tree commit diff
path: root/src/libsyntax
AgeCommit message (Collapse)AuthorLines
2012-10-05Demode some code using by-mutbl-ref; warn about by-mutbl-refTim Chevalier-0/+1
The parser now warns about use of mutbl-ref mode, though it's kind of a lie since this commit doesn't remove support for the mode. Changed move_val_init to have stage0 and stage1/2 versions, the latter of which is demoded. Changed the type that the typechecker expects the move_val_init intrinsic to have. After this is pushed, I can make a new snapshot, which will remove the need for the stage0 versions.
2012-10-04Remove by-copy mode from std, mostlyTim Chevalier-16/+6
One instance remains in net_tcp due to a foreign fn. Lots of instances remain in serialization.rs, but IIRC that is being removed. I had to do unholy things to task-perf-word-count-generic to get it to compile after demoding pipes. I may well have messed up its performance, but it passes.
2012-10-03Merge remote-tracking branch 'original/incoming' into incomingSimon BD-427/+1510
Conflicts: src/libstd/json.rs src/libstd/sort.rs
2012-10-02rustc: Only allow imports marked with "pub" to be imported from other modulesPatrick Walton-3/+3
2012-10-02libstd: Switch off legacy modes in both core and std.Patrick Walton-14/+14
2012-10-01Split auto_serialize2 into two macrosErick Tryzelaar-77/+130
2012-10-01Factor out auto_serialize2's impls from each other.Erick Tryzelaar-67/+114
2012-10-01auto_serialize2 should deserialize structs using read_structErick Tryzelaar-57/+106
2012-10-01Add deserializable and more types to serialization2Erick Tryzelaar-61/+128
2012-10-01Move over to calling ptr::addr_ofTim Chevalier-6/+6
Everything should now call ptr::addr_of instead of ptr::p2::addr_of. Only the pipes macro code when compiled by stage0 will call ptr::p2::addr_of. Needs a snapshot to get rid of that.
2012-10-01Call 'new' instead of 'old' extfmt code, preparing for snapshotTim Chevalier-1/+1
2012-09-28Add a demoded version of ptr::addr_ofTim Chevalier-3/+3
Currently, the new version is ptr::p2::addr_of and the old one is ptr::addr_of. This is kind of cheesy, but I need a snapshot before I can ditch the old version, since the pipe compiler generates calls to addr_of. core is converted over to use the new version, std is not.
2012-09-28Add allow(deprecated_\*) to syntax, rustc, rustdoc, et alBrian Anderson-0/+2
2012-09-28Demoding in iter: any, all, map_to_vec, flat_map_to_vec, filter_to_vecTim Chevalier-2/+2
2012-09-28rename iter2 to each2, make it follow iterator protocolNiko Matsakis-2/+2
2012-09-28Pretty-print item visibility modifiersBrian Anderson-0/+1
2012-09-28Demode extfmtTim Chevalier-50/+57
Needs a snapshot before this can be completed, because I changed the mode for conv_poly.
2012-09-28demode vecNiko Matsakis-38/+39
2012-09-27libsyntax: Fix long lineErick Tryzelaar-1/+2
2012-09-27Merge pull request #3607 from gutworth/incomingBrian Anderson-11/+5
utterly trivial refactoring
2012-09-27core: More option demodingBrian Anderson-7/+7
2012-09-27Put function argument last in sort function. Fixes #3265.Simon BD-2/+2
2012-09-27libsyntax: Parse visibility modifiers before foreign itemsPatrick Walton-8/+15
2012-09-27factor out common linesBenjamin Peterson-11/+5
2012-09-26core: Replace map/map_default with map_ref/map_default_refBrian Anderson-23/+23
2012-09-26Remove spurious by-ref argument to destructorsTim Chevalier-4/+2
Destructors were internally declared with an extra (hidden) nil-typed argument that was passed in by-ref mode. This was causing spurious mode warnings. Deleted it. Also some misc. cleanup because I couldn't help myself.
2012-09-26Long linesBrian Anderson-4/+7
2012-09-26Demode vec::push (and convert to method)Niko Matsakis-164/+159
2012-09-26turn ast::ident into a structErick Tryzelaar-84/+113
This will help with the auto_serialize2 migration. We have to change ident from a type alias to uint into a unique type. We need to use a struct instead of a "enum ident = token::str_num" because structs support constants, but newtypes do not.
2012-09-26libstd: change serialization2 to take &self argument methodsErick Tryzelaar-7/+40
Unfortunately this trips over issue (#3585), where auto-ref isn't playing nicely with @T implementations. Most serializers don't care, but prettyprint2 won't properly display "@" until #3585 is fixed.
2012-09-26auto_serialize2 should fully qualify std::serialization2::deserializeErick Tryzelaar-4/+12
2012-09-26libsyntax: remove quasiquoter from auto_serialize2Erick Tryzelaar-132/+288
2012-09-26libsyntax: implement auto_serialize2 for enums, records, and structsErick Tryzelaar-0/+620
2012-09-26Allow hashmaps to infer their typesErick Tryzelaar-5/+5
2012-09-26Refactoring ReaderUtil trait, combining it with the traitless impl on Reader.Eric Holk-0/+1
2012-09-26Revert "fix modes on dtors"Tim Chevalier-1/+1
This reverts commit d38b97a170eaea47933c30937cee5f525573116d. (Accidentally checked this in, oops)
2012-09-26fix modes on dtorsTim Chevalier-1/+1
2012-09-26fix issue #3535 and add colon between mode and type when dumping funcion ↵Vincent Belliard-17/+28
prototype
2012-09-24Support visibility qualifiers in crate directives properly.Graydon Hoare-14/+16
2012-09-23Register snapshots. Remove redundant Eq impls, Makefile hacksBrian Anderson-975/+0
2012-09-23core: Demode optionBrian Anderson-39/+39
2012-09-23Fix trans for region patterns (&P)Niko Matsakis-1/+1
2012-09-23Make it illegal to use modes in a fn signature with providingNiko Matsakis-35/+51
an explicit variable name. (Step one to changing the defaults) First step to #3535
2012-09-21De-mode vec::map, vec::eachi, vec::rev_each, vec::rev_eachiNiko Matsakis-78/+82
2012-09-21libsyntax: Fix botched mergePatrick Walton-1/+1
2012-09-21libcore: De-mode strPatrick Walton-26/+29
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-19/+109
#[legacy_exports];
2012-09-20Revert "syntax: Make attributes sendable for rustdoc's benefit"Brian Anderson-64/+64
This reverts commit 90e3665fa79d32c3188169cfa992516fb36b81a8.
2012-09-20syntax: Make attributes sendable for rustdoc's benefitBrian Anderson-64/+64
2012-09-20rustc: De-mode all overloaded operatorsPatrick Walton-0/+975