Commit Graph

632 Commits

Author SHA1 Message Date
Thomas Bahn
1cf41295c7 Add feature gate io 2015-02-06 22:23:16 +01:00
Thomas Bahn
a87fab9ecc Simplify some code using auto-deref 2015-02-06 22:23:16 +01:00
Thomas Bahn
81f84a4ea4 Remove unneeded mut specifiers 2015-02-06 22:23:16 +01:00
Thomas Bahn
79ff9fdafa Use the IntoIterator trait in for loops 2015-02-06 22:23:16 +01:00
Thomas Bahn
cb8492d74b Follow rust std: Error requires an implementation of fmt::Display 2015-02-06 22:23:16 +01:00
Thomas Bahn
5782657502 Follow rust std: The old io module is now called old_io 2015-02-06 22:23:16 +01:00
Thomas Bahn
9a284ae7c2 Follow rust std: fmt::Show was renamed to fmt::Debug 2015-02-06 22:23:16 +01:00
Thomas Bahn
5dd077969c Use slicing syntax instead of .as_slice() 2015-02-06 22:23:16 +01:00
Thomas Bahn
3022d7301a Use deref coercions when possible 2015-02-06 22:23:15 +01:00
Thomas Bahn
361acd37d0 Follow rust std: int, uint were renamed to isize, usize 2015-02-06 22:23:15 +01:00
Thomas Bahn
3b5d71fbb5 Add empty associated_types in expand_derive 2015-02-06 16:51:11 +01:00
Erick Tryzelaar
e2568ddfac Get the benchmark running again 2015-01-18 11:08:06 -08:00
Erick Tryzelaar
f7eb082339 Initial port of build_log 2015-01-18 10:05:13 -08:00
Erick Tryzelaar
cc40b0ec5e Update json::Value to work with associated types 2015-01-17 23:01:03 -08:00
Erick Tryzelaar
4fb427923b Support json deserialization 2015-01-17 22:37:17 -08:00
Erick Tryzelaar
f8fb17b2ff Convert json::ser to associated types 2015-01-17 22:20:28 -08:00
Erick Tryzelaar
73018e4d5d Add support for option handling 2015-01-17 21:58:52 -08:00
Erick Tryzelaar
d38d06a151 Convert into typaram into where clause 2015-01-17 21:32:21 -08:00
Erick Tryzelaar
b58fffbc37 Remove some deprecated functions 2015-01-17 21:23:30 -08:00
Erick Tryzelaar
75d5f27f8a wip 2015-01-17 20:56:06 -08:00
Erick Tryzelaar
4efca7e56a wip 2015-01-17 17:32:32 -08:00
Erick Tryzelaar
3bcfbea1bc Unnamed=>Seq, Named=>Map 2015-01-17 17:31:55 -08:00
Erick Tryzelaar
75d1de0ced Mostly working version of deserialization 2015-01-17 17:31:55 -08:00
Erick Tryzelaar
8a434721c2 wip 2015-01-17 17:31:55 -08:00
Erick Tryzelaar
063a957e03 finish tests for the new serde2::seq 2015-01-17 17:31:52 -08:00
Erick Tryzelaar
550ce4406d wip: initial progress converting serde2 to associated types 2015-01-17 17:30:45 -08:00
Erick Tryzelaar
abc92da944 Merge pull request #17 from danburkert/master
Update for rustc 1.0.0-nightly (8903c21d6 2015-01-15 22:42:58 +0000)
2015-01-17 16:49:26 -08:00
Dan Burkert
460dbce8cc Update for rustc 1.0.0-nightly (8903c21d6 2015-01-15 22:42:58 +0000) 2015-01-17 16:36:15 -08:00
Erick Tryzelaar
8715a41158 Update to rust HEAD 2015-01-07 09:30:11 -08:00
Erick Tryzelaar
b98719a4a0 update to rust HEAD, switch to rustc_serialize 2015-01-04 17:18:50 -08:00
Erick Tryzelaar
f1929ca86d Merge pull request #16 from tomprogrammer/rust-head
Follow changes in std / rustc
2015-01-02 21:31:11 -05:00
Thomas Bahn
d09b9eb72c Unboxed closures: function signature of expand* changed 2015-01-02 13:32:54 +01:00
Thomas Bahn
814c0570b8 Fix: String::from_utf8 became stable and changed signature 2015-01-01 14:22:23 +01:00
Thomas Bahn
ae665a1c05 Syntax extension internals in rust changed
See e656081b70
2015-01-01 14:22:23 +01:00
Thomas Bahn
85d0c8e4e8 Rename FP* to FpCategory::* following std changes 2014-12-30 14:52:27 +01:00
Erick Tryzelaar
1366bf47e7 Merge pull request #15 from tomprogrammer/rust-head
Follow rustc changes: Various fixes due to std api stabilization
2014-12-23 13:02:10 -08:00
Thomas Bahn
879baec029 Fix: String::from_utf8 changed function signature
Following a rust std change.
2014-12-23 18:35:26 +01:00
Thomas Bahn
a276ec4bba Fix: Utf16 handling moved from std into unicode crate
Following a rust change.
2014-12-23 18:35:00 +01:00
Thomas Bahn
17ffa65cb2 Replace StrAllocating with String type in function parameters
The key parameter of the insert functions are of type String now.
As insert requires ownership of its parameter `key` and StrAllocating
being gone in rust these functions now communicate that ownership
in their signature.

As a result &str must be converted into a String at the caller instead
of the callee.

The Trait ToOwned isn't an alternative as it's a generalized Clone.
StrAllocating simply has hidden an allocation or move.
2014-12-23 18:34:20 +01:00
Thomas Bahn
512a54e983 Replace TreeMap with BTreeMap in the serde2 2014-12-23 18:33:37 +01:00
Thomas Bahn
7fa62b6212 Fix: Append semicolon to item macro invocations in serde2
Following changes in rustc.
2014-12-23 18:31:22 +01:00
Thomas Bahn
589a07d4c9 Silence deprecation warnings
str::char_len() is deprecated in favour of chars().count()
2014-12-23 18:05:58 +01:00
Thomas Bahn
91cfb003d9 Fix: String::from_utf8 changed function signature
Following a rust std change.
2014-12-23 18:05:58 +01:00
Thomas Bahn
3cf0fb8d5b Fix: Utf16 handling moved from std into unicode crate
Following a rust change.
2014-12-23 18:05:58 +01:00
Thomas Bahn
0957d5769d Replace StrAllocating with String type in function parameters
The key parameter of the insert functions are of type String now.
As insert requires ownership of its parameter `key` and StrAllocating
being gone in rust these functions now communicate that ownership
in their signature.

As a result &str must be converted into a String at the caller instead
of the callee.

The Trait ToOwned isn't an alternative as it's a generalized Clone.
StrAllocating simply has hidden an allocation or move.
2014-12-23 18:05:58 +01:00
Thomas Bahn
cca63836d2 Replace MoveItems and MoveEntries with IntoIter
Following a rust std change.
2014-12-23 18:05:58 +01:00
Thomas Bahn
681a609844 Replace TreeMap with BTreeMap in the serde tests 2014-12-23 17:44:26 +01:00
Thomas Bahn
19bda6a90d Replace TreeMap/TreeSet with BTreeMap/BTreeSet in serde
Follow rust std changes:
https://github.com/rust-lang/rfcs/blob/master/text/0509-collections-reform-part-2.md
2014-12-20 14:42:48 +01:00
Thomas Bahn
aad0854beb Fix item macro invocation in benches
Following changes in rustc.
2014-12-19 15:43:54 +01:00
Thomas Bahn
3ea0c7e850 Append semicolon to item macro invocations in serde2
Following changes in rustc.
2014-12-19 09:17:51 +01:00