]> git.lizzy.rs Git - rust.git/log
rust.git
11 years agoAllow expressions that are not just a single value for repeated fixed length vector...
Luqman Aden [Wed, 6 Mar 2013 01:45:12 +0000 (17:45 -0800)]
Allow expressions that are not just a single value for repeated fixed length vector syntax.

11 years agoNow actually allow using constants in those constant expressions for [T * n].
Luqman Aden [Wed, 6 Mar 2013 01:43:37 +0000 (17:43 -0800)]
Now actually allow using constants in those constant expressions for [T * n].

11 years agoAllow constant expressions in [Type * n].
Luqman Aden [Tue, 5 Mar 2013 02:03:21 +0000 (18:03 -0800)]
Allow constant expressions in [Type * n].

11 years agolibrustc: Make the compiler ignore purity.
Patrick Walton [Sat, 16 Mar 2013 18:11:31 +0000 (11:11 -0700)]
librustc: Make the compiler ignore purity.

For bootstrapping purposes, this commit does not remove all uses of
the keyword "pure" -- doing so would cause the compiler to no longer
bootstrap due to some syntax extensions ("deriving" in particular).
Instead, it makes the compiler ignore "pure". Post-snapshot, we can
remove "pure" from the language.

There are quite a few (~100) borrow check errors that were essentially
all the result of mutable fields or partial borrows of `@mut`. Per
discussions with Niko I think we want to allow partial borrows of
`@mut` but detect obvious footguns. We should also improve the error
message when `@mut` is erroneously reborrowed.

11 years agolibsyntax: Stop parsing old lifetimes, except for the ones on data type declarations.
Patrick Walton [Thu, 14 Mar 2013 19:25:48 +0000 (12:25 -0700)]
libsyntax: Stop parsing old lifetimes, except for the ones on data type declarations.

11 years agolibrustc: Convert all uses of old lifetime notation to new lifetime notation. rs...
Patrick Walton [Thu, 14 Mar 2013 18:22:51 +0000 (11:22 -0700)]
librustc: Convert all uses of old lifetime notation to new lifetime notation. rs=delifetiming

11 years agoUpdate rust.vim
Luqman Aden [Tue, 19 Mar 2013 00:19:40 +0000 (17:19 -0700)]
Update rust.vim

Column limit 78 -> 100.

11 years agoauto merge of #5420 : boggle/rust/sudoku-with-traits, r=graydon
bors [Mon, 18 Mar 2013 17:46:21 +0000 (10:46 -0700)]
auto merge of #5420 : boggle/rust/sudoku-with-traits, r=graydon

Came back to look at rust and found out that this had been broken by some refactoring work. Fixed and now has tests.

11 years agoRefactored sudoku benchmark to use traits and added some tests
Stefan Plantikow [Sun, 17 Mar 2013 10:41:03 +0000 (11:41 +0100)]
Refactored sudoku benchmark to use traits and added some tests

11 years agoauto merge of #5374 : z0w0/rust/rustdoc-explicit-self, r=z0w0
bors [Sun, 17 Mar 2013 01:57:43 +0000 (18:57 -0700)]
auto merge of #5374 : z0w0/rust/rustdoc-explicit-self, r=z0w0

11 years agorustdoc: Fix method printing tests
Zack Corr [Sun, 17 Mar 2013 01:45:22 +0000 (11:45 +1000)]
rustdoc: Fix method printing tests

11 years agoauto merge of #5415 : brson/rust/rustdoc, r=thestinger
bors [Sat, 16 Mar 2013 23:36:45 +0000 (16:36 -0700)]
auto merge of #5415 : brson/rust/rustdoc, r=thestinger

r? @thestinger

11 years agorustdoc: Show all impls of traits. #5406
Brian Anderson [Sat, 16 Mar 2013 23:17:56 +0000 (16:17 -0700)]
rustdoc: Show all impls of traits. #5406

11 years agoauto merge of #5342 : brson/rust/debug-mem, r=brson
bors [Sat, 16 Mar 2013 21:27:44 +0000 (14:27 -0700)]
auto merge of #5342 : brson/rust/debug-mem, r=brson

Fixes #5341

11 years agort: Add RUST_DEBUG_MEM to rust_env to avoid races
Brian Anderson [Tue, 12 Mar 2013 19:23:24 +0000 (12:23 -0700)]
rt: Add RUST_DEBUG_MEM to rust_env to avoid races

11 years agosyntax: Fix fun_to_str test
Zack Corr [Sat, 16 Mar 2013 07:36:39 +0000 (17:36 +1000)]
syntax: Fix fun_to_str test

11 years agoauto merge of #5408 : thestinger/rust/trie, r=pcwalton
bors [Sat, 16 Mar 2013 05:39:42 +0000 (22:39 -0700)]
auto merge of #5408 : thestinger/rust/trie, r=pcwalton

The chunk fix is cherry picked from @graydon's `gc` branch.

11 years agoauto merge of #5359 : luqmana/rust/inline-asm, r=pcwalton
bors [Sat, 16 Mar 2013 04:15:46 +0000 (21:15 -0700)]
auto merge of #5359 : luqmana/rust/inline-asm, r=pcwalton

Continuation of #5317. Actually use operands properly now, including any number of output operands.

Which means you can do things like call printf:
```Rust
fn main() {
    unsafe {
        do str::as_c_str(~"The answer is %d.\n") |c| {
            let a = 42;
            asm!("mov $0, %rdi\n\t\
                  mov $1, %rsi\n\t\
                  xorl %eax, %eax\n\t\
                  call _printf"
                 :
                 : "r"(c), "r"(a)
                 : "rdi", "rsi", "eax"
                 : "volatile","alignstack"
                 );
        }
    }
}
```

```
% rustc foo.rs
% ./foo
The answer is 42.
```

Or just add 2 numbers:
```Rust
fn add(a: int, b: int) -> int {
    let mut c = 0;
    unsafe {
        asm!("add $2, $0"
             : "=r"(c)
             : "0"(a), "r"(b)
             );
    }
    c
}

fn main() {
    io::println(fmt!("%d", add(1, 2)));
}
```

```
% rustc foo.rs
% ./foo
3
```

Multiple outputs!
```Rust
fn addsub(a: int, b: int) -> (int, int) {
    let mut c = 0;
    let mut d = 0;
    unsafe {
        asm!("add $4, $0\n\t\
              sub $4, $1"
             : "=r"(c), "=r"(d)
             : "0"(a), "1"(a), "r"(b)
             );
    }
    (c, d)
}

fn main() {
    io::println(fmt!("%?", addsub(5, 1)));
}
```
```
% rustc foo.rs
% ./foo
(6, 4)
```

This also classifies inline asm as RvalueStmtExpr instead of the somewhat arbitrary kind I made it initially. There are a few XXX's regarding what to do in the liveness and move passes.

11 years agoauto merge of #5404 : bstrie/rust/decopy, r=pcwalton
bors [Sat, 16 Mar 2013 03:15:44 +0000 (20:15 -0700)]
auto merge of #5404 : bstrie/rust/decopy, r=pcwalton

Also turn `copy` into `.clone()` in much of run-pass.

11 years agoFix type_use for inline asm.
Luqman Aden [Sat, 16 Mar 2013 01:54:39 +0000 (18:54 -0700)]
Fix type_use for inline asm.

11 years agoDon't use by_val for passing asm operands.
Luqman Aden [Wed, 13 Mar 2013 22:32:48 +0000 (15:32 -0700)]
Don't use by_val for passing asm operands.

11 years agoTidy.
Luqman Aden [Wed, 13 Mar 2013 20:47:15 +0000 (13:47 -0700)]
Tidy.

11 years agoActually use no or multiple operands properly.
Luqman Aden [Wed, 13 Mar 2013 20:21:54 +0000 (13:21 -0700)]
Actually use no or multiple operands properly.

11 years agoImplicitly use addr_of for output operands in asm.
Luqman Aden [Wed, 13 Mar 2013 17:11:36 +0000 (10:11 -0700)]
Implicitly use addr_of for output operands in asm.

11 years agoInitial support for output operands in asm.
Luqman Aden [Wed, 13 Mar 2013 08:21:52 +0000 (01:21 -0700)]
Initial support for output operands in asm.

11 years agoProperly handle input operands for inline asm.
Luqman Aden [Wed, 13 Mar 2013 07:32:23 +0000 (00:32 -0700)]
Properly handle input operands for inline asm.

11 years agoActually pass inline asm operands around.
Luqman Aden [Wed, 13 Mar 2013 00:53:25 +0000 (17:53 -0700)]
Actually pass inline asm operands around.

11 years agoInline asm exprs should be RvalueStmtExpr.
Luqman Aden [Tue, 12 Mar 2013 23:40:59 +0000 (16:40 -0700)]
Inline asm exprs should be RvalueStmtExpr.

11 years agoadd a test for the chunk function
Daniel Micay [Sat, 16 Mar 2013 01:43:54 +0000 (21:43 -0400)]
add a test for the chunk function

11 years agoauto merge of #5400 : thestinger/rust/misc, r=brson
bors [Sat, 16 Mar 2013 01:30:45 +0000 (18:30 -0700)]
auto merge of #5400 : thestinger/rust/misc, r=brson

11 years agocore: fix trie chunk function
Graydon Hoare [Wed, 6 Mar 2013 04:54:19 +0000 (20:54 -0800)]
core: fix trie chunk function

11 years agoadd constructor to TrieSet (was missing)
Daniel Micay [Sat, 16 Mar 2013 01:03:29 +0000 (21:03 -0400)]
add constructor to TrieSet (was missing)

11 years agoauto merge of #5396 : ILyoan/rust/fix_rt_tls, r=graydon
bors [Sat, 16 Mar 2013 00:18:44 +0000 (17:18 -0700)]
auto merge of #5396 : ILyoan/rust/fix_rt_tls, r=graydon

Add a conditional compile option for android

11 years agoauto merge of #5391 : brson/rust/to-bytes, r=graydon
bors [Fri, 15 Mar 2013 23:15:47 +0000 (16:15 -0700)]
auto merge of #5391 : brson/rust/to-bytes, r=graydon

r?

I want to use this function as a method. There's probably a better way to design this but the existing `ToBytes` trait is not what I am looking for (it has a parameter to indicate the byte order).

11 years agoClonify some of run-pass
Ben Striegel [Fri, 15 Mar 2013 22:27:15 +0000 (18:27 -0400)]
Clonify some of run-pass

11 years agoimpl Clone for ~T, ~[T], ~str
Ben Striegel [Fri, 15 Mar 2013 22:26:59 +0000 (18:26 -0400)]
impl Clone for ~T, ~[T], ~str

11 years agoauto merge of #5357 : jbclements/rust/add-nonempty-span-encoding, r=jbclements
bors [Fri, 15 Mar 2013 22:06:47 +0000 (15:06 -0700)]
auto merge of #5357 : jbclements/rust/add-nonempty-span-encoding, r=jbclements

r? @nikomatsakis
r? @erickt

Before this change, encoding an object containing a codemap::span
using the JSON encodeng produced invalid JSON, for instance:
[{"span":,"global":false,"idents":["abc"]}]
Since the decoder for codemap::span's ignores its argument, I
conjecture that this will not damage decoding, and should improve
it for many decoders.

11 years agoauto merge of #5354 : ILyoan/rust/normalize_triple, r=graydon
bors [Fri, 15 Mar 2013 21:15:50 +0000 (14:15 -0700)]
auto merge of #5354 : ILyoan/rust/normalize_triple, r=graydon

LLVM could not recognize target-os when target-triple was given as like 'arm-linux-androideabi'.
Normalizing target-triple fill the missing elements.
In the case of 'arm-linux-androideabi', nomalized target-triple will be "arm-unknown-linux-androideabi" and this let llvm recognize the triple correctly. (arch: arm, vendor: unknown, os: linux, environment: android)

11 years agotreemap: use each_mut instead of mutate
Daniel Micay [Fri, 15 Mar 2013 18:14:03 +0000 (14:14 -0400)]
treemap: use each_mut instead of mutate

11 years agotreemap: rm old FIXME
Daniel Micay [Fri, 15 Mar 2013 18:12:45 +0000 (14:12 -0400)]
treemap: rm old FIXME

11 years agodeque: add documentation
Daniel Micay [Fri, 15 Mar 2013 17:41:02 +0000 (13:41 -0400)]
deque: add documentation

11 years agoauto merge of #5395 : thestinger/rust/iter, r=pcwalton
bors [Fri, 15 Mar 2013 16:21:56 +0000 (09:21 -0700)]
auto merge of #5395 : thestinger/rust/iter, r=pcwalton

11 years agoUpdate test case to conform to new restrictions on casting
John Clements [Fri, 15 Mar 2013 16:17:49 +0000 (09:17 -0700)]
Update test case to conform to new restrictions on casting

11 years agoTest case fixup (old one tested the old bad behavior).
John Clements [Thu, 14 Mar 2013 21:23:02 +0000 (14:23 -0700)]
Test case fixup (old one tested the old bad behavior).

11 years agoadd nonempty encoding for spans
John Clements [Wed, 13 Mar 2013 17:52:45 +0000 (10:52 -0700)]
add nonempty encoding for spans

Before this change, encoding an object containing a codemap::span
using the JSON encodeng produced invalid JSON, for instance:
[{"span":,"global":false,"idents":["abc"]}]
Since the decoder for codemap::span's ignores its argument, I
conjecture that this will not damage decoding, and should improve
it for many decoders.

11 years agoNormalize target triple so that llvm can recognize target os correctly
ILyoan [Wed, 13 Mar 2013 11:50:49 +0000 (20:50 +0900)]
Normalize target triple so that llvm can recognize target os correctly

11 years agoFix an android compilation fail
ILyoan [Fri, 15 Mar 2013 06:35:39 +0000 (15:35 +0900)]
Fix an android compilation fail

11 years agoauto merge of #5375 : z0w0/rust/rustdoc-private-hide, r=thestinger
bors [Fri, 15 Mar 2013 04:48:49 +0000 (21:48 -0700)]
auto merge of #5375 : z0w0/rust/rustdoc-private-hide, r=thestinger

11 years agoMutableIter impl for Option + use it in treemap
Daniel Micay [Fri, 15 Mar 2013 03:16:15 +0000 (23:16 -0400)]
MutableIter impl for Option + use it in treemap

11 years agoauto merge of #5371 : thestinger/rust/hidden, r=pcwalton
bors [Fri, 15 Mar 2013 03:06:44 +0000 (20:06 -0700)]
auto merge of #5371 : thestinger/rust/hidden, r=pcwalton

11 years agoauto merge of #5369 : thestinger/rust/iter, r=z0w0
bors [Fri, 15 Mar 2013 02:06:47 +0000 (19:06 -0700)]
auto merge of #5369 : thestinger/rust/iter, r=z0w0

This can eventually be implemented on other sequence containers like `deque` (it's missing `each` too at the moment).

11 years agocore: Add to_bytes method to StrSlice trait
Brian Anderson [Fri, 15 Mar 2013 01:08:20 +0000 (18:08 -0700)]
core: Add to_bytes method to StrSlice trait

11 years agoauto merge of #5367 : brson/rust/5299, r=thestinger
bors [Fri, 15 Mar 2013 00:51:47 +0000 (17:51 -0700)]
auto merge of #5367 : brson/rust/5299, r=thestinger

r?

11 years agoauto merge of #5366 : tedhorst/rust/threadring, r=brson
bors [Thu, 14 Mar 2013 23:57:48 +0000 (16:57 -0700)]
auto merge of #5366 : tedhorst/rust/threadring, r=brson

11 years agoauto merge of #5365 : thestinger/rust/map, r=catamorphism
bors [Thu, 14 Mar 2013 22:06:49 +0000 (15:06 -0700)]
auto merge of #5365 : thestinger/rust/map, r=catamorphism

11 years agoauto merge of #5364 : xenocons/rust/patch-1, r=z0w0
bors [Thu, 14 Mar 2013 21:07:01 +0000 (14:07 -0700)]
auto merge of #5364 : xenocons/rust/patch-1, r=z0w0

11 years agoauto merge of #5360 : thestinger/rust/doc, r=graydon
bors [Thu, 14 Mar 2013 19:22:05 +0000 (12:22 -0700)]
auto merge of #5360 : thestinger/rust/doc, r=graydon

* make the changes regarding move semantics clearer
* expand on the container work

11 years agoauto merge of #5355 : yichoi/rust/pull-0314, r=graydon
bors [Thu, 14 Mar 2013 18:25:02 +0000 (11:25 -0700)]
auto merge of #5355 : yichoi/rust/pull-0314, r=graydon

ar in rt.mk should be desinated by target-triples.
lt has been worked on linux but failed on mac

11 years agotest: Remove deprecated features from benchmark tests. rs=burningtree
Patrick Walton [Thu, 14 Mar 2013 18:22:14 +0000 (11:22 -0700)]
test: Remove deprecated features from benchmark tests. rs=burningtree

11 years agolibrustc: Remove another deprecated use of `as Trait`. rs=burningtree
Patrick Walton [Thu, 14 Mar 2013 15:03:05 +0000 (08:03 -0700)]
librustc: Remove another deprecated use of `as Trait`. rs=burningtree

11 years agorustdoc: Filter out private definitions. Closes #3538
Zack Corr [Thu, 14 Mar 2013 07:21:48 +0000 (17:21 +1000)]
rustdoc: Filter out private definitions. Closes #3538

11 years agorustdoc: Document explicit self in methods. Closes #5254
Zack Corr [Thu, 14 Mar 2013 06:39:36 +0000 (16:39 +1000)]
rustdoc: Document explicit self in methods. Closes #5254

11 years agolibsyntax: Remove a use of deprecated Encodable from libsyntax. rs=burningtree
Patrick Walton [Thu, 14 Mar 2013 04:54:51 +0000 (21:54 -0700)]
libsyntax: Remove a use of deprecated Encodable from libsyntax. rs=burningtree

11 years agotest: Fix tests. rs=tests
Patrick Walton [Thu, 14 Mar 2013 00:57:30 +0000 (17:57 -0700)]
test: Fix tests. rs=tests

11 years agolibrustc: Allow path-qualified constants in patterns
Patrick Walton [Wed, 13 Mar 2013 05:39:32 +0000 (22:39 -0700)]
librustc: Allow path-qualified constants in patterns

11 years agolibrustc: Don't require the "static" keyword to define a static method
Patrick Walton [Wed, 13 Mar 2013 05:36:46 +0000 (22:36 -0700)]
librustc: Don't require the "static" keyword to define a static method

11 years agotest: Some test fixes
Patrick Walton [Wed, 13 Mar 2013 05:36:24 +0000 (22:36 -0700)]
test: Some test fixes

11 years agolibrustc: Remove implicit self from the language, except for old-style drop blocks.
Patrick Walton [Wed, 13 Mar 2013 02:32:14 +0000 (19:32 -0700)]
librustc: Remove implicit self from the language, except for old-style drop blocks.

11 years agolibrustc: Remove "base types" from the language.
Patrick Walton [Wed, 13 Mar 2013 00:33:54 +0000 (17:33 -0700)]
librustc: Remove "base types" from the language.

11 years agolibrustc: Remove overloaded operator autoderef.
Patrick Walton [Tue, 12 Mar 2013 22:06:57 +0000 (15:06 -0700)]
librustc: Remove overloaded operator autoderef.

11 years agolibrustc: Don't accept `as Trait` anymore; fix all occurrences of it.
Patrick Walton [Tue, 12 Mar 2013 20:00:50 +0000 (13:00 -0700)]
librustc: Don't accept `as Trait` anymore; fix all occurrences of it.

11 years agolibrustc: Separate out trait storage from evec/estr storage
Patrick Walton [Sat, 9 Mar 2013 05:16:09 +0000 (21:16 -0800)]
librustc: Separate out trait storage from evec/estr storage

11 years agoauto merge of #5336 : ILyoan/rust/remove_unused, r=sanxiyn
bors [Thu, 14 Mar 2013 03:03:52 +0000 (20:03 -0700)]
auto merge of #5336 : ILyoan/rust/remove_unused, r=sanxiyn

Remove unused imports to get rid of warnings.

11 years agorm FIXME from use of #[doc(hidden)] on pub mod
Daniel Micay [Thu, 14 Mar 2013 02:12:55 +0000 (22:12 -0400)]
rm FIXME from use of #[doc(hidden)] on pub mod

11 years agohide the linkhack module in the docs
Daniel Micay [Thu, 14 Mar 2013 02:12:43 +0000 (22:12 -0400)]
hide the linkhack module in the docs

11 years agoadd a trait for mutable iterators
Daniel Micay [Thu, 14 Mar 2013 00:55:42 +0000 (20:55 -0400)]
add a trait for mutable iterators

11 years agocore: Add spawn, stream and friends to prelude. #5299
Brian Anderson [Thu, 14 Mar 2013 01:17:12 +0000 (18:17 -0700)]
core: Add spawn, stream and friends to prelude. #5299

11 years agoRemove unused import in librustc
ILyoan [Tue, 12 Mar 2013 11:37:40 +0000 (20:37 +0900)]
Remove unused import in librustc

11 years agoRemove unused imports in std
ILyoan [Tue, 12 Mar 2013 11:37:23 +0000 (20:37 +0900)]
Remove unused imports in std

11 years agoRemove unused import in core
ILyoan [Tue, 12 Mar 2013 11:36:33 +0000 (20:36 +0900)]
Remove unused import in core

11 years agoRemove unused variable
ILyoan [Tue, 12 Mar 2013 11:35:54 +0000 (20:35 +0900)]
Remove unused variable

11 years agoreinstate test/bench/shootout-threadring.rs
Ted Horst [Thu, 14 Mar 2013 00:09:28 +0000 (19:09 -0500)]
reinstate test/bench/shootout-threadring.rs

11 years agoadd the mutate_values method to the Map trait
Daniel Micay [Wed, 13 Mar 2013 21:07:23 +0000 (17:07 -0400)]
add the mutate_values method to the Map trait

11 years agoauto merge of #5340 : brson/rust/column, r=brson
bors [Wed, 13 Mar 2013 23:01:00 +0000 (16:01 -0700)]
auto merge of #5340 : brson/rust/column, r=brson

#5274

11 years agoupdated from L to ull for easier mingw32 builds.
xenocons [Wed, 13 Mar 2013 22:06:33 +0000 (09:06 +1100)]
updated from L to ull for easier mingw32 builds.

11 years agoauto merge of #5307 : nikomatsakis/rust/remove-by-val, r=nikomatsakis
bors [Wed, 13 Mar 2013 21:57:55 +0000 (14:57 -0700)]
auto merge of #5307 : nikomatsakis/rust/remove-by-val, r=nikomatsakis

This is done in two steps:

First, we make foreign functions not consider modes at all.  This is because previously ++ mode was the only way to pass structs to foreign functions and so forth.  We also add a lint mode warning if you use `&&` mode in a foreign function, since the semantics of that change (it used to pass a pointer to the C function, now it doesn't).

Then, we remove by value and make it equivalent to `+` mode.  At the same time, we stop parsing `-` mode and convert all uses of it to `+` mode (it was already being parsed to `+` mode anyhow).

This obsoletes pull request #5298.

r? @brson

11 years agoRemove `++` mode from the compiler (it is parsed as `+` mode)
Niko Matsakis [Sun, 10 Mar 2013 15:02:16 +0000 (11:02 -0400)]
Remove `++` mode from the compiler (it is parsed as `+` mode)
and obsolete `-` mode altogether (it *was* parsed as `+` mode).

11 years agoRevamp foreign code not to consider the Rust modes. This requires
Niko Matsakis [Sat, 9 Mar 2013 01:44:37 +0000 (20:44 -0500)]
Revamp foreign code not to consider the Rust modes.  This requires
adjusting a few foreign functions that were declared with by-ref
mode.  This also allows us to remove by-val mode in the near future.

With copy mode, though, we have to be careful because Rust will implicitly pass
somethings by pointer but this may not be the C ABI rules.  For example, rust
will pass a struct Foo as a Foo*.  So I added some code into the adapters to
fix this (though the C ABI rules may put the pointer back, oh well).

This patch also includes a lint mode for the use of by-ref mode
in foreign functions as the semantics of this have changed.

11 years agoauto merge of #5339 : catamorphism/rust/less-copy, r=catamorphism
bors [Wed, 13 Mar 2013 20:57:56 +0000 (13:57 -0700)]
auto merge of #5339 : catamorphism/rust/less-copy, r=catamorphism

11 years agowork on release notes
Daniel Micay [Wed, 13 Mar 2013 20:47:49 +0000 (16:47 -0400)]
work on release notes

* make the changes regarding move semantics clearer
* expand on the container work

11 years agoauto merge of #5337 : yichoi/rust/pull-0312, r=sanxiyn
bors [Wed, 13 Mar 2013 20:04:07 +0000 (13:04 -0700)]
auto merge of #5337 : yichoi/rust/pull-0312, r=sanxiyn

libuv submodule regression patch for ARM android compilation

11 years agoauto merge of #5319 : brson/rust/debuginfo, r=brson
bors [Wed, 13 Mar 2013 18:34:00 +0000 (11:34 -0700)]
auto merge of #5319 : brson/rust/debuginfo, r=brson

Continuing #5140

For the sake of getting this merged I've disabled debuginfo tests on mac (where running gdb needs root). Please feel free to follow up with further improvements.

11 years agoauto merge of #5293 : brson/rust/logging, r=brson
bors [Wed, 13 Mar 2013 17:40:07 +0000 (10:40 -0700)]
auto merge of #5293 : brson/rust/logging, r=brson

r? @graydon

This removes `log` from the language. Because we can't quite implement it as a syntax extension (probably need globals at the least) it simply renames the keyword to `__log` and hides it behind macros.

After this the only way to log is with `debug!`, `info!`, etc. I figure that if there is demand for `log!` we can add it back later.

I am not sure that we ever agreed on this course of action, though I *think* there is consensus that `log` shouldn't be a statement.

11 years agomk: rt.mk ar desinated by target-triples
Young-il Choi [Wed, 13 Mar 2013 17:26:09 +0000 (02:26 +0900)]
mk: rt.mk ar desinated by target-triples

11 years agoWork around linkage bug cross-compiling from x86_64-apple-darwin to i686-apple-darwin
Brian Anderson [Wed, 13 Mar 2013 03:06:20 +0000 (20:06 -0700)]
Work around linkage bug cross-compiling from x86_64-apple-darwin to i686-apple-darwin

The correct opendir/readdir to use appear to be the 64-bit versions called
opendir$INODE64, etc. but for some reason I can't get them to link properly
on i686. Putting them in librustrt and making gcc figure it out works.
This mystery will have to wait for another day.

11 years agolibcore: Attempt to put out burning tree on Mac by using the old symbol on 32 bit...
Patrick Walton [Tue, 12 Mar 2013 22:27:45 +0000 (15:27 -0700)]
libcore: Attempt to put out burning tree on Mac by using the old symbol on 32 bit. rs=bustage

11 years agocore: Turn off rtdebug logging
Brian Anderson [Tue, 12 Mar 2013 20:05:45 +0000 (13:05 -0700)]
core: Turn off rtdebug logging

11 years agoDisable debuginfo tests on mac since gdb requires root
Brian Anderson [Tue, 12 Mar 2013 18:58:50 +0000 (11:58 -0700)]
Disable debuginfo tests on mac since gdb requires root

11 years agoauto merge of #5332 : jdm/rust/transitivelink, r=graydon
bors [Tue, 12 Mar 2013 18:06:55 +0000 (11:06 -0700)]
auto merge of #5332 : jdm/rust/transitivelink, r=graydon

The original change bit Servo because rust-harfbuzz includes libharfbuzz.a in its link_args. This works fine in the rust-harfbuzz subdirectory where the static library resides, but when this is propagated to servo_gfx, the lirbrary can no longer be found since it's a relative path.

11 years agoIncrease tidy column limit to 100
Brian Anderson [Tue, 12 Mar 2013 17:55:39 +0000 (10:55 -0700)]
Increase tidy column limit to 100