Alex Crichton
97f61e7bbe
Remove @io::Writer from sys/repr/reflect
...
At the same time, this updates the TyVisitor to use a mutable self because it's
probably going to be mutating state as it goes along anyway.
2013-08-28 23:00:46 -07:00
bors
578e680477
auto merge of #8802 : pcwalton/rust/compile-speed, r=brson
...
r? @brson
2013-08-27 19:35:44 -07:00
Patrick Walton
aac9d6eee9
librustc: Fix merge fallout
2013-08-27 19:09:27 -07:00
Patrick Walton
2bd46e767c
librustc: Fix problem with cross-crate reexported static methods.
2013-08-27 18:47:59 -07:00
Patrick Walton
5c9f5ec397
test: xfail a test that relies on old path behavior.
2013-08-27 18:47:57 -07:00
Patrick Walton
8693943676
librustc: Ensure that type parameters are in the right positions in paths.
...
This removes the stacking of type parameters that occurs when invoking
trait methods, and fixes all places in the standard library that were
relying on it. It is somewhat awkward in places; I think we'll probably
want something like the `Foo::<for T>::new()` syntax.
2013-08-27 18:47:57 -07:00
Patrick Walton
3b6314c39b
librustc: Add support for type parameters in the middle of paths.
...
For example, `foo::<T>::bar::<U>`.
This doesn't enforce that the type parameters are in the right
positions, however.
2013-08-27 18:46:51 -07:00
Patrick Walton
5c3504799d
librustc: Remove &const
and *const
from the language.
...
They are still present as part of the borrow check.
2013-08-27 18:46:51 -07:00
bors
32117132bd
auto merge of #8799 : fhahn/rust/ticket_5783, r=catamorphism
...
I've added a testcase, as mentioned in #5783
2013-08-27 18:20:44 -07:00
bors
7f32ea8820
auto merge of #8771 : thestinger/rust/repr, r=catamorphism
2013-08-27 14:35:49 -07:00
Florian Hahn
890b589491
Add test for #5783
2013-08-27 23:27:10 +02:00
Daniel Micay
803f941867
reflect: rm unused visit_{var,var_integral,constr}
2013-08-27 16:31:48 -04:00
Daniel Micay
c2bc59e086
repr: print integer/float suffixes
2013-08-27 16:31:45 -04:00
bors
7841b77676
auto merge of #8772 : thestinger/rust/option, r=anasazi
...
Closes #6002
There is consensus that the current implementation should be changed or
removed, so removing it seems like the right decision for now.
2013-08-27 10:20:52 -07:00
Daniel Micay
9a63be1dbd
option: rm implementation of Add
...
Closes #6002
There is consensus that the current implementation should be changed or
removed, so removing it seems like the right decision for now.
2013-08-27 13:18:57 -04:00
Corey Richardson
6eb924d28e
Fix deriving-zero test
2013-08-26 19:47:58 -04:00
bors
501eea0842
auto merge of #8744 : jld/rust/discr64, r=nikomatsakis
...
This is in preparation for making discriminants not always be int (#1647 ), but it also makes compiles for a 64-bit target not behave differently — with respect to how many bits of discriminants are preserved — depending on the build host's word size, which is a nice property to have.
We may want to standardize how to abbreviate "discriminant" in a followup change.
2013-08-26 03:51:19 -07:00
Jed Davis
0db2b198f2
Add a test case for the preceding changes.
...
This would have failed on 32-to-64-bit cross-compiles.
2013-08-24 20:16:40 -07:00
Alex Crichton
a3e39b9454
Introduce alternate forms of logging
...
These new macros are all based on format! instead of fmt! and purely exist for
bootstrapping purposes. After the next snapshot, all uses of logging will be
migrated to these macros, and then after the next snapshot after that we can
drop the `2` suffix on everything
2013-08-24 17:07:30 -07:00
Alex Crichton
eb836dd61e
Settle on the format/write/print family of names
2013-08-24 12:48:10 -07:00
Alex Crichton
67512f717e
Implement a wrapper macro around fprintf -- ifmtf
2013-08-24 12:48:10 -07:00
Brian Anderson
c17447f8b3
rt: Move some test functions to rust_test_helpers
2013-08-23 18:38:59 -07:00
bors
9e1e152091
auto merge of #8596 : vadimcn/rust/master, r=alexcrichton
...
This resolves issue #908 .
Notable changes:
- On Windows, LLVM integrated assembler emits bad stack unwind tables when segmented stacks are enabled. However, unwind info directives in the assembly output are correct, so we generate assembly first and then run it through an external assembler, just like it is already done for Android builds.
- Linker is invoked via "g++" command instead of "gcc": g++ passes the appropriate magic parameters to the linker, which ensure correct registration of stack unwind tables in dynamic libraries.
2013-08-22 21:06:25 -07:00
Michael Sullivan
ad6eeb843b
Don't do a bogus substitution on the transformed self ty for objects. Closes #8664 .
2013-08-22 10:52:11 -07:00
Michael Sullivan
97d2b44f87
Substitute into the impl method rather than the trait method when emitting vtables. Closes #8601 .
2013-08-22 10:52:11 -07:00
bors
4e3dbf959a
auto merge of #8666 : nikomatsakis/rust/issue-3678-extern-fn-types, r=pcwalton
...
Change the type of crust fns like this one:
extern fn foo() { ... }
from `*u8` to `extern "C" fn()`.
r? @pcwalton (or whomever)
2013-08-22 07:01:27 -07:00
bors
b95c135621
auto merge of #8620 : brson/rust/issue-7563, r=alexcrichton
2013-08-22 01:41:30 -07:00
Vadim Chugunov
39fc0883fd
Enabled tests.
2013-08-22 00:12:44 -07:00
bors
8e776c75e9
auto merge of #8570 : catamorphism/rust/2013-08-16-rollup, r=catamorphism
...
Nothing arguable here, as far as I can tell.
2013-08-21 20:21:32 -07:00
bors
3ddfb72512
auto merge of #8562 : bblum/rust/superkinds, r=nikomatsakis
...
For #7083 .
The metadata issue with the old version is now fixed. Ready for review.
This is also not the full solution to #7083 , because this is not supported yet:
```
trait Foo : Send { }
impl <T: Send> Foo for T { }
fn foo<T: Foo>(val: T, chan: std::comm::Chan<T>) {
chan.send(val);
}
```
cc @nikomatsakis
2013-08-21 18:51:42 -07:00
Brian Anderson
a02a759f14
test: Add test for #7563 . Closes #7563
2013-08-21 17:50:18 -07:00
Ben Blum
b795fab046
oops v2, apparently writing std::comm::stream() doesn't work on check-fast; fix this
2013-08-21 20:33:56 -04:00
bors
fca75199c7
auto merge of #8595 : vadimcn/rust/print_link_args, r=alexcrichton
...
This resolves issue #8569
2013-08-21 17:21:33 -07:00
Tim Chevalier
5622ce10fe
testsuite: Un-xfail test for #5917
2013-08-21 17:17:50 -07:00
Tim Chevalier
8e3a4f13c5
testsuite: Test for #4447
...
Closes #4447
2013-08-21 17:17:50 -07:00
bors
9feaf1d023
auto merge of #8594 : bytewiseand/rust/static-fn-ptr, r=pcwalton
...
Fixes #8588
2013-08-21 15:51:34 -07:00
Ben Blum
22ad36d75b
oops, xfail-fast the cross-crate superkind tests
2013-08-21 15:52:31 -04:00
Andreas Martens
5ed9f60a97
Changed fn main
to pub fn main
2013-08-21 18:32:04 +02:00
Andreas Martens
0f6dd53948
Split cross-crate test into own test and xfail-fast it
2013-08-21 17:29:47 +02:00
Niko Matsakis
82a9abbf62
Change type of extern fns from *u8
to extern "ABI" fn
...
cc #3678
2013-08-21 10:50:37 -04:00
bors
d4d856b129
auto merge of #8582 : thestinger/rust/container, r=thestinger
...
5f3a637
r=huonw
934a5eb
r=thestinger
0f6e90a
r=cmr
2013-08-21 01:01:47 -07:00
bors
48dded95c6
auto merge of #8580 : bytewiseand/rust/tuple-struct-ctor-ptr, r=alexcrichton
...
Fixes #5315
2013-08-20 23:11:50 -07:00
bors
00dd9e9cc5
auto merge of #8573 : mrordinaire/rust/struct-new-as-field-name, r=alexcrichton
...
fix for #8088 , along with a test.
2013-08-20 21:41:50 -07:00
Daniel Micay
46fc549fa9
rm obsolete integer to_str{,_radix} free functions
2013-08-20 22:05:03 -04:00
Ben Blum
5796e9e49c
Add tests for self type using builtin kinds. ( #7083 )
2013-08-20 15:56:34 -04:00
Ben Blum
4fd404f2ca
Fixup style of test cases for #7083
2013-08-20 13:28:51 -04:00
Ben Blum
95089d3793
Add tests for super-builtin-kind capabilities ( #7083 )
2013-08-20 13:28:50 -04:00
Ben Blum
4ca2e55adb
Add tests for #7083 .
2013-08-20 13:28:50 -04:00
Vadim Chugunov
c8354ff958
Rename functional-struct-update.rs to avoid tripping Windows installer detector.
...
(The "update" keyword in the test name makes Windows want to run it with elevated privileges, which fails of course)
2013-08-19 18:45:09 -07:00
Graydon Hoare
29a449aae3
Add tests for cross-crate condition handling. Close #5446 .
2013-08-19 15:09:20 -07:00