Niko Matsakis
9c1dea5eb2
remove out of date text from tutorial regarding iface-less impls
2012-07-18 16:22:38 -07:00
Patrick Walton
3ac5b4a86f
syntax: Parse multiple trait refs in a single implementation
2012-07-18 16:05:17 -07:00
Patrick Walton
1528256fdc
rustc: Encode metadata unconditionally for impls/traits/classes. Closes #2945 .
2012-07-18 14:43:16 -07:00
Ben Blum
c936ae515b
Linked failure: Make joining a taskgroup O(1)
2012-07-18 17:07:35 -04:00
Niko Matsakis
e0ea67a2a6
prevent regions from escaping in ifaces; remove &r.T syntax
2012-07-18 11:48:58 -07:00
Niko Matsakis
eb0a34c398
iterate only over immutable vectors; use newer region notation
...
Unfortunately, right now iterating over const vectors is
not safe. This is because the callback expects an *immutable*
reference (in region terms: &T), not a const reference (&const T).
This was not being caught by the type system due to the use of
unsafe operations. To fix this, we need to either (1) find a way
to parameterize over mutability or (2) add each_const, each_mut
etc
2012-07-18 11:48:58 -07:00
Michael Sullivan
7f3bbd57c0
Make task.rs export local_data. This is a hack to work around #2945 .
2012-07-18 11:01:45 -07:00
Patrick Walton
df7ce33b3d
rustdoc: Make rustdoc no longer resolve names.
...
It relies on being able to ignore errors, which doesn't make sense; resolve
is meaningless if errors are ignored. It also doesn't perform macro expansion.
Most of what is affected will be reexports, which are changing anyway.
2012-07-18 10:14:28 -07:00
Ben Blum
30d94fe9a2
finish fixing broken un-unsupervise windows tests
2012-07-17 22:16:55 -04:00
Niko Matsakis
4ee4a2ab31
borrow from @[] vectors (cc #2797 )
2012-07-17 19:16:00 -07:00
Ben Blum
bb5e2ba60a
vim: hilight macro!s
2012-07-17 21:54:31 -04:00
Ben Blum
93bb030a8c
fix no-longer-unsupervise test cases on windows
2012-07-17 21:48:15 -04:00
Ben Blum
03cdc2476d
Change all test/run-pass uses of rustrt::unsupervise() to something else
2012-07-17 21:19:23 -04:00
Eric Holk
73a24b8abb
Fixing coherence error in bitv
2012-07-17 17:46:32 -07:00
Eric Holk
7b8171ef2d
Added liveness analysis for protocols, and removed warnings about empty states.
2012-07-17 17:46:31 -07:00
Eric Holk
c858eb0654
Modernize bitv somewhat
2012-07-17 17:46:31 -07:00
Eric Holk
ee855caa5d
Don't ICE when protocol steps to invalid mesasge.
2012-07-17 17:46:31 -07:00
Ben Blum
4cf6b4d3b4
Tasks should not hold a ref to their parent ( Close #1789 )
2012-07-17 20:45:07 -04:00
Patrick Walton
d930d717e5
rustdoc: XFAIL a failing astsrv test
2012-07-17 17:32:10 -07:00
Michael Sullivan
aa5b5ab886
Create some infrastructure for building up @-vectors. Work on #2921 .
2012-07-17 17:09:25 -07:00
Ben Blum
8e6d66280f
dlist enhancements: concat/append/prepend/reverse/each_node ( close #2917 )
2012-07-17 20:03:14 -04:00
Ben Blum
e57745b48c
option: remove map's copy restriction and add map_consume
2012-07-17 20:03:14 -04:00
Ben Blum
06c42b77d3
vim rustFuncCall contains rustAssert
2012-07-17 20:03:14 -04:00
Patrick Walton
b71a8827e3
rustc: Fix coherence errors in the build
2012-07-17 16:49:54 -07:00
Paul Stansifer
d61d7b5979
Add a badge to the tutorial and reference docs indicating which Rust version they pertain to.
2012-07-17 16:17:05 -07:00
Paul Stansifer
f4ef0dc3d3
Allow old-style syntax extensions to be called with new syntax.
2012-07-17 16:17:05 -07:00
Patrick Walton
db020ab63c
rustc: Implement and enforce instance coherence
2012-07-17 15:46:43 -07:00
Tim Chevalier
b5729bd600
Support attributes on class ctors and dtors
...
Closes #2660
2012-07-17 12:40:59 -07:00
Tim Chevalier
cf9a9d1ae8
Remove most of old resolve
...
resolve has a few type definitions in it that are used, so I left
those and deleted everything else. Also, I switched rustdoc to use
resolve3 instead of the old resolve.
In a future commit I'll remove the type definitions entirely, as they're
just duplicates of types defined in resolve3.
2012-07-17 12:40:58 -07:00
Ben Blum
bc87e66355
Add option::while_some; also add more pure ( close #2927 )
2012-07-17 13:57:36 -04:00
Zack Corr
85e79a3a8a
Get rustdoc working with std::par instead of its own par library. Closes #2885 .
2012-07-17 10:35:59 -07:00
Eric Holk
c8739cb0bc
Error checking for protocols. We'll need spans though.
2012-07-17 10:35:59 -07:00
Ben Blum
156eceb24a
dvec/vec interface cleanup: fixing reach, reverse, adding more pure
2012-07-17 13:32:52 -04:00
Niko Matsakis
b67bfe50ef
register snapshots
2012-07-17 06:11:19 -07:00
Jed Davis
db34b5acd1
Prevent random floats from occasionally being greater than 1.
...
Previously, gen_f64 could generate numbers as high as 1.0000000002328306
in the case that u3 was 4294967295.0f64 and u2 was nonzero. This change
divides the random numbers by 2**32 instead, effectively concatenating
their bits as apparently intended. (Bonus fix: const.)
The comments are updated to be more specific than "random float"; note
that this can still generate 1.0f64 (P = 2**-54) due to rounding.
2012-07-16 21:54:57 -07:00
Niko Matsakis
0e42004bab
introduce an owned kind for data that contains no borrowed ptrs
2012-07-16 20:18:18 -07:00
Graydon Hoare
d809336d0f
Fix reflection on vstore_fixed estrs and evecs.
2012-07-16 17:08:27 -07:00
Eric Holk
053bdcac2d
Test case for #2930
2012-07-16 15:12:53 -07:00
Eric Holk
d39f6fc676
Add support for terminal states (issue #2862 )
2012-07-16 14:50:47 -07:00
Eric Holk
c46bf6e716
Updating str syntax
2012-07-16 14:50:47 -07:00
Eric Holk
436d263aed
Add a selectable trait.
2012-07-16 14:50:46 -07:00
Tim Chevalier
0487663e7d
Merge pull request #2929 from Dretch/tuplemethods
...
replace core::tuple functions with methods
2012-07-16 14:37:16 -07:00
Gareth Daniel Smith
fe43d66613
replace core::tuple functions with methods
2012-07-16 22:33:20 +01:00
Tim Chevalier
000d12f4af
Use "trait" rather than "iface" where possible in docs
2012-07-16 13:54:30 -07:00
Tim Chevalier
23704740c2
Fix build breakage and include all types in "types" section in docs
...
The section on types was missing trait types, class types, param
types, and self types. Fixed it.
2012-07-16 13:34:28 -07:00
Niko Matsakis
748f2e0909
improve comment
2012-07-16 13:29:00 -07:00
Tim Chevalier
7eae2044b0
Discuss classes in reference manual
...
Still could use work, but this is the best I've got for now.
2012-07-16 10:58:12 -07:00
Michael Sullivan
6081eb78f9
Register snapshots.
2012-07-15 05:41:24 -07:00
Niko Matsakis
54cd5e1814
~strify win32-specific fns
2012-07-14 18:28:20 -07:00
Niko Matsakis
3ef7ff8b89
infer the scope of borrows
2012-07-14 17:37:32 -07:00