Brian Anderson
fad3de5900
rt: Remove rust_scheduler::rval. Unused
2012-02-08 15:33:40 -08:00
Tim Chevalier
48769b57e0
A bit more WIP on classes, and some cleanup in resolve
2012-02-08 15:21:45 -08:00
Niko Matsakis
6e680e36a7
deprecate old style box shape strings
2012-02-08 13:10:20 -08:00
Niko Matsakis
a6dde7766e
fix bug that causes premature pops from obstack
...
basically, the alignment step did not check if it walked off
the end of the buffer
2012-02-08 12:55:19 -08:00
Brian Anderson
5f8e0ddccf
Merge pull request #1783 from erickt/master
...
Adding a str::as_bytes<T>(str, fn([u8] -> T) -> T function
2012-02-08 11:22:07 -08:00
Erick Tryzelaar
3a413aabd4
core: add str::as_bytes function
...
This pattern is used in a couple places, so it'd be nice
to abstract it away.
2012-02-08 10:18:36 -08:00
Niko Matsakis
526e73d7f8
make shape code use the tydesc found in the box, not the shape str
2012-02-08 09:14:59 -08:00
Graydon Hoare
3a1e33e134
Register new snapshots.
2012-02-08 07:58:42 -08:00
Marijn Haverbeke
8ffd6e4e8a
Suppress warnings in compiletest
2012-02-08 10:45:50 +01:00
Marijn Haverbeke
0547d0cc5b
Monomorphize resource and variant constructors
...
Issue #1736
2012-02-08 10:45:50 +01:00
Brian Anderson
7c8d128e1f
bench: Add shootout-spectralnorm
2012-02-08 01:06:16 -08:00
Brian Anderson
708f7b927c
core: Export floor functions
2012-02-07 22:02:55 -08:00
Brian Anderson
9b01620e8d
rt: Don't ignore result of chdir. Fail hard for now with a FIXME
...
My gcc won't let the result of this function be ignored.
2012-02-07 20:28:57 -08:00
Brian Anderson
6cf40bd0c4
std: Use correct split function in generic_os::env
2012-02-07 20:20:58 -08:00
Graydon Hoare
93450abb4b
Make process-spawning take environments and working directories, remove procsrv task from compiletest.
2012-02-07 19:57:03 -08:00
Tim Chevalier
5131216fa6
Restore a comment that got lost (comments only)
2012-02-07 17:08:03 -08:00
Brian Anderson
0c13ee22ad
core: Use substr in extfmt instead of slice_bytes
2012-02-07 16:34:02 -08:00
Kevin Cantu
1aa23947a6
core: add str::splitn_char and fix str::splitn_char_iter
2012-02-07 16:25:35 -08:00
Kevin Cantu
2b0396c34a
core: make str::substr use char positions (and replace other uses)
2012-02-07 16:25:35 -08:00
Kevin Cantu
a3f5626ad1
String split renaming:
...
* Renamed str::split -> str::split_byte
* Renamed str::splitn -> str::splitn_byte
* Renamed str::split_func -> str::split
* Renamed str::split_char -> str::split_char
* Renamed str::split_chars_iter -> str::split_char_iter
* Added u8::is_ascii
* Fixed the behavior of str::split_str, so that it matches split_chars
and split (i.e. ["", "XXX", "YYY", ""] == split_str(".XXX.YYY.", "."))
* Fixed str::split_byte and str::splitn_byte so that they handle
splitting UTF-8 strings on a given UTF-8/ASCII byte and also handle ""
as the others do
2012-02-07 16:25:35 -08:00
Brian Anderson
159aebc28b
core: Whitespace policia
2012-02-07 15:08:54 -08:00
Brian Anderson
45bcef78e3
Add Magnus Auvinen to AUTHORS.txt
2012-02-07 15:08:54 -08:00
Magnus Auvinen
a5fc0b08de
added some documentation and made the memcpy and memmove unsafe
2012-02-07 15:08:54 -08:00
Magnus Auvinen
3e9859362b
made leak an intrinsic to avoid a c-call. added memmove and memcpy intrinsics
2012-02-07 15:08:54 -08:00
Tim Chevalier
a63780afce
Minor class-related tweaks to the AST
2012-02-07 12:15:59 -08:00
Marijn Haverbeke
47143ee24a
Stop storing cmp glue in tydescs
...
There's no such thing anymore, we can simply call upcalls.cmp_type.
2012-02-07 14:37:10 +01:00
Marijn Haverbeke
b28a5552e3
Reuse monomorphized functions for different box types
...
The free glue for opaque boxes will pick the actual tydesc out of the
box, and call its glue.
Issue #1736
2012-02-07 14:36:02 +01:00
Brian Anderson
3bd0338c19
Revert "log to stderr instead of stdout"
...
This is causing mysterious hangs on windows. Issue #1769 .
This reverts commit d65eabd5de
.
2012-02-06 18:29:58 -08:00
Jyun-Yan You
5563eab227
change gcc_args to cc_args and make win32 use gcc
2012-02-06 17:57:22 -08:00
Jyun-Yan You
98bb5b73a5
use cc instead of gcc
2012-02-06 17:56:41 -08:00
Brian Anderson
fc8a1f513d
Add Ian D. Bollinger to AUTHORS.txt
2012-02-06 13:06:39 -08:00
Marijn Haverbeke
87a488048d
Make keyword table in reference reflect reality more closely
...
And remove the part about reserved words.
2012-02-06 22:03:17 +01:00
Marijn Haverbeke
a08e589390
Handle built-in typenames in the resolve pass, rather than in parser
...
Closes #1728
Comments out a section of debuginfo.rs. This code was already broken
(only being called when --xg was passed, and only working on trivial
programs).
2012-02-06 17:06:19 +01:00
Marijn Haverbeke
8673c4f195
Make ty::t type self-sufficient
...
It is now no longer needed to have a ty::ctxt to get at the contents
of a ty::t. The straight-forward approach of doing this, simply making
ty::t a box type, unfortunately killed our compiler performance (~15%
slower) through refcounting cost. Thus, this patch now represents
ty::t as an unsafe pointer, assuming that the ty::ctxt, which holds
these boxes alive, outlives any uses of the ty::t values. In the
current compiler this trivially holds, but it is does of course add a
new potential pitfall.
ty::get takes a ty::t and returns a boxed representation of the type.
I've changed calls to ty::struct(X) to do ty::get(X).struct. Type
structs are full of vectors, and copying them every time we wanted to
access them was a bit of a cost.
2012-02-06 16:53:25 +01:00
Marijn Haverbeke
6ed8d03784
Make sure iface_methods are set before they are accessed
...
Closes #1761
2012-02-06 09:56:42 +01:00
Ian D. Bollinger
d1158ca333
Removed sendfn from badwords and made the precedence of XOR between that of OR and AND.
2012-02-06 09:56:41 +01:00
Marijn Haverbeke
91da710d86
Add monad iface test
2012-02-06 09:56:41 +01:00
Marijn Haverbeke
e0fa5cd2ed
Self types for ifaces
...
This allows a 'Name:' to appear in front of an iface declaration's
name, which will cause 'Name' to refer to the self type (with the same
number of type parameters as the iface has) in the method signatures
of the iface. For example:
iface F: functor<A> {
fn fmap<B>(f: fn(A) -> B) -> F<B>;
}
Issue #1718
2012-02-06 09:56:41 +01:00
Marijn Haverbeke
5c42e3df9c
Allow non-semicolon-requiring expressions to be followed by .field
...
There is no valid expression that starts with a dot token (.5 is a number token),
so this introduces no ambiguities.
Issue #1716
2012-02-06 09:13:32 +01:00
Brian Anderson
da61e1ff15
test: Add test for issue #1460
2012-02-05 20:42:05 -08:00
Erick Tryzelaar
be35893834
core: Implement str::escape with str::chars_iter.
2012-02-05 19:42:56 -08:00
Erick Tryzelaar
1a7aa20eab
vim: block is no longer a keyword.
2012-02-05 19:42:56 -08:00
Brian Anderson
1b3339df63
test: Issue #953 , not #959
2012-02-05 18:29:07 -08:00
Brian Anderson
292f3e0958
test: Add an xfailed test for issue #959
2012-02-05 18:27:15 -08:00
Brian Anderson
cbeeb13dfd
test: Add an xfailed test for issue #929
2012-02-05 18:24:17 -08:00
Brian Anderson
80cd6aa96e
test: Update and un-xfail compile-fail/tag-that-dare-not...
2012-02-05 18:06:54 -08:00
Brian Anderson
0b43bf9782
test: Add test for #901 . Closes #901
2012-02-05 17:54:52 -08:00
Brian Anderson
c04b897cb2
core: Resolve some FIXMEs
2012-02-05 17:30:47 -08:00
Brian Anderson
34aa956e68
test: Resolve some FIXMEs
2012-02-05 17:05:24 -08:00
Brian Anderson
67b1034989
rustdoc: Resolve some FIXMEs
2012-02-05 16:38:18 -08:00