Daniel Micay
65a0125f7f
add Option map_consume_default method
2013-01-13 01:37:58 -05:00
Daniel Micay
a33966b2f2
add Option methods for swap_unwrap and map_consume
2013-01-13 00:48:30 -05:00
Peter Williams
e4571446f9
doc: Fix spelling error in macro tutorial
2013-01-12 18:36:46 -05:00
Patrick Walton
802d475190
libstd: "target_os = win32", not "target_os = windows". rs=bustage
2013-01-12 10:11:44 -08:00
Jed Davis
3aca4a1663
Regression tests for passing enum-typed consts by reference.
...
If the PointerCast in trans_def_lvalue is removed, these cases cause
LLVM assertion failures.
2013-01-11 23:42:51 -08:00
Jed Davis
79f0d67d28
Add more tests for enum constants.
...
The tests have consts defined both before and after their uses in order
to prevent bugs that depend on the order in which they are translated.
2013-01-11 23:42:51 -08:00
Jed Davis
349fa1e550
Omit needless zeroes for C-like variants of non-C-like enums
2013-01-11 23:42:51 -08:00
Jed Davis
abae61257c
Allow consts to be non-nullary enum constructors
2013-01-11 23:42:51 -08:00
Jed Davis
f76e28aa1c
Allow consts' LLVM types to depend on their initializers.
...
Loosening the connection between the LLVM type and the Rust type
is necessary to use non-nullary enum constructors as const initializers,
because the const needs to be initialized with data of the actual type of
the variant in question, which is (generally) not the same as the u8
array in the `type_of` type.
Thus, referring to a const now requires casting the LLVM global to the
expected pointer type instead of using it as-is.
2013-01-11 23:42:51 -08:00
Jed Davis
452642422d
Factor out base::get_discrim_val from const translation
2013-01-11 23:42:51 -08:00
Tim Chevalier
f38e9724e6
Add William Ting to AUTHORS
2013-01-11 20:13:07 -08:00
Tim Chevalier
0bc730f9b0
Merge pull request #4443 from wting/4386_add_privs
...
Adds priv qualifiers where they have been commented out before implementation.
2013-01-11 20:11:57 -08:00
Tim Chevalier
847d30db66
Merge pull request #4445 from apasel422/notop
...
Allow logical negation operator (!) to be overloaded
2013-01-11 20:10:51 -08:00
Tim Chevalier
5b9cbbbb85
Merge pull request #4452 from apasel422/cond-macro-fix
...
libsyntax: Fix name generation in condition! macro
2013-01-11 20:09:54 -08:00
Tim Chevalier
d707be6cb7
Merge pull request #4453 from crabtw/clang3.2
...
support clang 3.2
2013-01-11 20:09:14 -08:00
Jyun-Yan You
37f97ff504
support clang 3.2
2013-01-12 12:02:22 +08:00
Andrew Paseltiner
92810089b5
libsyntax: Fix name generation in condition! macro
2013-01-11 21:32:10 -05:00
Brian Anderson
f99d6cab43
Long lines
2013-01-11 17:59:35 -08:00
Patrick Walton
063a7ad481
libstd: Ignore failing test on Windows
2013-01-11 15:47:11 -08:00
Tim Chevalier
cfa62cd5ee
Make ast_util::path_name_i take a slice vector, eliminate a bad copy
2013-01-11 15:19:05 -08:00
Brian Anderson
1b1700f44b
Add core::private::run_in_bare_thread
...
This begins executing Rust code in a fresh context with no runtime environment
2013-01-11 14:53:28 -08:00
Tim Chevalier
4c441e95d6
Comment out test_decode_form_urlencoded again. Filed issue 4449. rs=breakage
2013-01-11 13:40:49 -08:00
Andrew Paseltiner
ea937dca89
test: add test for overloading logical negation operator
2013-01-11 16:27:12 -05:00
Andrew Paseltiner
0de7aa5506
allow logical negation operator (!) to be overloaded
2013-01-11 14:31:44 -05:00
Patrick Walton
a82c8b3da2
test: XFAIL issue_3882 due to strange Windows failure. rs=failure
2013-01-11 10:57:24 -08:00
Patrick Walton
9b3452e10a
libstd: Fix std test. rs=busted
2013-01-11 09:22:23 -08:00
Jens Nockert
6df643981b
Make std::sync::semaphore() public
2013-01-11 12:51:16 +01:00
William Ting
9fd970ad13
Adds priv qualifiers where they have been commented out before implementation.
...
Updates #4386 .
2013-01-11 02:30:10 -06:00
Patrick Walton
ad2fc50ca1
libcore: Fix core test more. rs=broken
2013-01-10 23:08:17 -08:00
Patrick Walton
c6fe93d9b5
libcore: Fix core test. rs=broken
2013-01-10 22:36:54 -08:00
Patrick Walton
83675895af
libcore: Fix windows bustage. rs=bustage
2013-01-10 21:58:30 -08:00
Patrick Walton
b71381dcc9
libcore: Fix linux/windows bustage. rs=fire
2013-01-10 21:49:31 -08:00
Patrick Walton
a0c2a9b743
librustc: Implement a #[no_mangle] attribute to suppress name mangling. r=brson
...
This is very helpful for SDL, as SDL wants you to define a function named
`SDL_main`.
2013-01-10 21:44:59 -08:00
Tim Chevalier
0c05a6c092
Use filtered instead of filter in rustdoc. Fixes segfault.
...
...of course, it shouldn't be segfaulting, but this fixes the
build.
rs=breakage
2013-01-10 21:26:56 -08:00
Patrick Walton
f0fa67d6bf
doc: Fold information from the memory model interlude in the tutorial elsewhere
2013-01-10 21:24:55 -08:00
Patrick Walton
ca71c6ec5b
librustc: Make all external functions unsafe. r=tjc
2013-01-10 21:24:08 -08:00
Brian Anderson
d97ab7888f
Add John Clements to AUTHORS
2013-01-10 20:49:28 -08:00
John Clements
08275826ca
corrected imprecision in description of mutable fields
2013-01-10 20:48:49 -08:00
Tim Chevalier
42095221f4
Properly suppress derived type error messages
...
Previously, the typechecker suppressed many but not all errors,
by suppressing errors where the actual type was either ty_err, or
a function type whose result was ty_err. Added a has_ty_err flag
to the type flags so as to suppress errors for any types involving
ty_err.
r=nmatsakis
2013-01-10 20:15:04 -08:00
Tim Chevalier
0274292bed
std: Address XXXes in flatpipes
2013-01-10 20:10:10 -08:00
Tim Chevalier
3e7da96fd2
std: Fix pattern match on reference, address an XXX
2013-01-10 20:10:10 -08:00
Tim Chevalier
30c308b952
std: Fix net_url test that was commented out
2013-01-10 20:10:09 -08:00
Tim Chevalier
0ce0f83a38
std: Fix test that was commented out
2013-01-10 20:10:09 -08:00
Tim Chevalier
e1c52a4a9f
core: Change XXXs into proper FIXMEs with issue numbers
2013-01-10 20:10:09 -08:00
Lindsey Kuper
3702e4b23c
Update Lindsey's email address
2013-01-10 16:37:52 -08:00
Tim Chevalier
90a0dd4008
core: Change XXXs into proper FIXMEs with issue numbers
2013-01-10 15:35:41 -08:00
Tim Chevalier
603e13cc02
Use deriving_eq for Task
2013-01-10 15:35:41 -08:00
Tim Chevalier
329a57882f
Add xfailed test for #3973
2013-01-10 15:35:41 -08:00
Brian Anderson
22ed202b61
tutorial: Remove memory model section
2013-01-10 15:22:22 -08:00
Niko Matsakis
fe0f84823a
add two more copies required in word-count rs=breakage
2013-01-10 15:02:31 -08:00