]> git.lizzy.rs Git - rust.git/log
rust.git
10 years agoauto merge of #9019 : alexcrichton/rust/reconfigure-llvm, r=brson
bors [Fri, 6 Sep 2013 23:51:00 +0000 (16:51 -0700)]
auto merge of #9019 : alexcrichton/rust/reconfigure-llvm, r=brson

@Chris-Morgan ran into this, turns out if we have a clean llvm in the old location we won't rebuild/reconfigure even though we should.

10 years agoauto merge of #8994 : alexcrichton/rust/upgrade-libuv, r=brson
bors [Fri, 6 Sep 2013 18:16:12 +0000 (11:16 -0700)]
auto merge of #8994 : alexcrichton/rust/upgrade-libuv, r=brson

This is a reopening of the libuv-upgrade part of #8645. Hopefully this won't
cause random segfaults all over the place. The windows regression in testing
should also be fixed (it shouldn't build the whole compiler twice).

A notable difference from before is that gyp is now a git submodule instead of
always git-cloned at make time. This allows bundling for releases more easily.

Closes #8850

10 years agoUpgrade libuv to the current master (again)
Alex Crichton [Mon, 19 Aug 2013 00:11:45 +0000 (17:11 -0700)]
Upgrade libuv to the current master (again)

This is a reopening of the libuv-upgrade part of #8645. Hopefully this won't
cause random segfaults all over the place. The windows regression in testing
should also be fixed (it shouldn't build the whole compiler twice).

A notable difference from before is that gyp is now a git submodule instead of
always git-cloned at make time. This allows bundling for releases more easily.

Closes #8850

10 years agoauto merge of #9017 : vadimcn/rust/rustllvm-build, r=alexcrichton
bors [Fri, 6 Sep 2013 12:05:59 +0000 (05:05 -0700)]
auto merge of #9017 : vadimcn/rust/rustllvm-build, r=alexcrichton

After recent build directory reorg, building from scratch fails (at least on Windows), because it can't find llvm-config.h.

10 years agoauto merge of #9002 : brson/rust/issue-8769, r=catamorphism
bors [Fri, 6 Sep 2013 10:50:57 +0000 (03:50 -0700)]
auto merge of #9002 : brson/rust/issue-8769, r=catamorphism

This is an unsafe implementation detail of `push`.

10 years agoauto merge of #9000 : brson/rust/dns, r=anasazi
bors [Fri, 6 Sep 2013 09:31:02 +0000 (02:31 -0700)]
auto merge of #9000 : brson/rust/dns, r=anasazi

This exposes a very simple function for resolving host names. There's a lot more that needs to be done, but this is probably enough for servo to get started connecting to real websites again.

10 years agoauto merge of #9018 : alexcrichton/rust/fix-bots, r=huonw
bors [Fri, 6 Sep 2013 07:36:07 +0000 (00:36 -0700)]
auto merge of #9018 : alexcrichton/rust/fix-bots, r=huonw

The new glob tests created tmp/glob-tests as a directory, but the never removed
it. The `make clean` target then attempted to `rm -f` on this, but it couldn't
remove the directory. This both changes the clean target to `rm -rf` tmp files,
and also alters the tests to delete the directory that all the files are added
into.

10 years agoUn-hork the bots by removing intermediate files
Alex Crichton [Fri, 6 Sep 2013 07:17:14 +0000 (00:17 -0700)]
Un-hork the bots by removing intermediate files

The new glob tests created tmp/glob-tests as a directory, but the never removed
it. The `make clean` target then attempted to `rm -f` on this, but it couldn't
remove the directory. This both changes the clean target to `rm -rf` tmp files,
and also alters the tests to delete the directory that all the files are added
into.

10 years agoBe sure to reconfigure LLVM even when relocated
Alex Crichton [Fri, 6 Sep 2013 07:09:36 +0000 (00:09 -0700)]
Be sure to reconfigure LLVM even when relocated

10 years agoFixed makefile to point to the new llvm build directory.
Vadim Chugunov [Fri, 6 Sep 2013 06:18:18 +0000 (23:18 -0700)]
Fixed makefile to point to the new llvm build directory.

10 years agostd::rt: Fix addrinfo definition on BSD
Brian Anderson [Fri, 6 Sep 2013 05:15:02 +0000 (22:15 -0700)]
std::rt: Fix addrinfo definition on BSD

10 years agoauto merge of #8914 : Dretch/rust/native-glob, r=alexcrichton
bors [Fri, 6 Sep 2013 05:00:58 +0000 (22:00 -0700)]
auto merge of #8914 : Dretch/rust/native-glob, r=alexcrichton

This is #8201 with a bunch of amendments to address the comments (and re-based).

10 years agoauto merge of #8909 : lkuper/rust/default-methods-refactor, r=alexcrichton
bors [Fri, 6 Sep 2013 03:50:53 +0000 (20:50 -0700)]
auto merge of #8909 : lkuper/rust/default-methods-refactor, r=alexcrichton

 (cc: #3227)

Parts I'm unsure about and would like a reviewer to look at are:

  * `pub trait GenericPath : Clone + Eq + ToStr` -- is this the done thing?  I've never done trait inheritance before, let alone from multiple traits, but it seemed to be necessary to be able to call all the methods we have to be able to call on `self`.

  * changing the argument of `components` from `self` to `&self`, and having it return `self.components.clone()` instead of `self.components`; this was necessary to avoid move errors, but I'm not sure if it's the right thing.  (The default methods impls now all have to call `self.components()` instead of just referencing the field `self.components`.)

10 years agoauto merge of #9011 : alexcrichton/rust/fix-lint, r=thestinger
bors [Fri, 6 Sep 2013 02:40:54 +0000 (19:40 -0700)]
auto merge of #9011 : alexcrichton/rust/fix-lint, r=thestinger

10 years agoDon't run lint over gyp files (they just fail anyway)
Alex Crichton [Fri, 6 Sep 2013 02:20:30 +0000 (19:20 -0700)]
Don't run lint over gyp files (they just fail anyway)

10 years agoauto merge of #9004 : brson/rust/issue-8660, r=thestinger
bors [Thu, 5 Sep 2013 23:40:48 +0000 (16:40 -0700)]
auto merge of #9004 : brson/rust/issue-8660, r=thestinger

The new scheduler makes better use of threads than the old.

10 years agoextra: Don't overcommit test tasks. Closes #8660
Brian Anderson [Thu, 5 Sep 2013 23:36:39 +0000 (16:36 -0700)]
extra: Don't overcommit test tasks. Closes #8660

The new scheduler makes better use of threads than the old.

10 years agostd: Remove push_fast from OwnedVector. Closes #8769
Brian Anderson [Thu, 5 Sep 2013 22:55:59 +0000 (15:55 -0700)]
std: Remove push_fast from OwnedVector. Closes #8769

This is an unsafe implementation detail of `push`.

10 years agoauto merge of #8997 : fhahn/rust/issue_8985, r=catamorphism,brson
bors [Thu, 5 Sep 2013 22:00:49 +0000 (15:00 -0700)]
auto merge of #8997 : fhahn/rust/issue_8985, r=catamorphism,brson

Patch for #8985

10 years agostd::rt: Add get_host_addresses function
Brian Anderson [Thu, 5 Sep 2013 21:16:17 +0000 (14:16 -0700)]
std::rt: Add get_host_addresses function

This is a very simplistic method for host name resolution. It converts
a host name to a vector of IP addresses. Should be enough to get started.

10 years agostd::rt: Add libuv bindings for getaddrinfo
Brian Anderson [Thu, 5 Sep 2013 01:51:14 +0000 (18:51 -0700)]
std::rt: Add libuv bindings for getaddrinfo

10 years agostd::rt: Some I/O cleanup
Brian Anderson [Wed, 4 Sep 2013 23:31:55 +0000 (16:31 -0700)]
std::rt: Some I/O cleanup

10 years agoauto merge of #8992 : chris-morgan/rust/unreachable-macro, r=brson
bors [Thu, 5 Sep 2013 20:50:46 +0000 (13:50 -0700)]
auto merge of #8992 : chris-morgan/rust/unreachable-macro, r=brson

Rationale: having a function which fails means that the location of
failure which is output is that of the unreachable() function, rather
than the caller.

This is part of #8991 but is not all of it; current usage of
``std::util::unreachable()`` must remain so for the moment, until a new
snapshot is made; then I will remove that function entirely in favour of
using this macro.

10 years agoReplace os::glob with extra::glob, which is written in rust,
Gareth Smith [Thu, 1 Aug 2013 22:48:22 +0000 (23:48 +0100)]
Replace os::glob with extra::glob, which is written in rust,
fixing issue #6100.

10 years agoauto merge of #8984 : chris-morgan/rust/auto-stream-impl, r=huonw
bors [Thu, 5 Sep 2013 19:10:46 +0000 (12:10 -0700)]
auto merge of #8984 : chris-morgan/rust/auto-stream-impl, r=huonw

This is consistent with the existing documentation but was not the
actual behaviour, which I've found to be rather a nuisance, actually.

10 years agoRename str::from_bytes to str::from_utf8, closes #8985
Florian Hahn [Thu, 5 Sep 2013 12:17:24 +0000 (14:17 +0200)]
Rename str::from_bytes to str::from_utf8, closes #8985

10 years agoauto merge of #8993 : pnkfelix/rust/fsk-fix-7740-dont-recur-on-items-during-gather...
bors [Thu, 5 Sep 2013 11:55:44 +0000 (04:55 -0700)]
auto merge of #8993 : pnkfelix/rust/fsk-fix-7740-dont-recur-on-items-during-gather-loans-of-block, r=nikomatsakis

Fix #7740

r? anyone, @nikomatsakis especially.

10 years agoMinor doc cleanup.
Lindsey Kuper [Sun, 1 Sep 2013 05:33:41 +0000 (01:33 -0400)]
Minor doc cleanup.

10 years agoFactor shared code out into default GenericPath methods.
Lindsey Kuper [Sun, 1 Sep 2013 03:51:07 +0000 (23:51 -0400)]
Factor shared code out into default GenericPath methods.

10 years agoauto merge of #8990 : thestinger/rust/str, r=alexcrichton
bors [Thu, 5 Sep 2013 10:00:49 +0000 (03:00 -0700)]
auto merge of #8990 : thestinger/rust/str, r=alexcrichton

mapping a function against the elements should not require allocating a
new container, but `collect` still provides the functionality as-needed

10 years agoauto merge of #8975 : alexcrichton/rust/reorganize, r=pnkfelix
bors [Thu, 5 Sep 2013 08:05:47 +0000 (01:05 -0700)]
auto merge of #8975 : alexcrichton/rust/reorganize, r=pnkfelix

Closes #2302

10 years agoregression test for #7740.
Felix S. Klock II [Thu, 5 Sep 2013 07:25:29 +0000 (09:25 +0200)]
regression test for #7740.

10 years agoauto merge of #8875 : alexcrichton/rust/fix-inner-static-library-bug, r=huonw
bors [Thu, 5 Sep 2013 06:55:46 +0000 (23:55 -0700)]
auto merge of #8875 : alexcrichton/rust/fix-inner-static-library-bug, r=huonw

These commits fix bugs related to identically named statics in functions of implementations in various situations. The commit messages have most of the information about what bugs are being fixed and why.

As a bonus, while I was messing around with name mangling, I improved the backtraces we'll get in gdb by removing `__extensions__` for the trait/type being implemented and by adding the method name as well. Yay!

10 years agoAdd an ``unreachable!()`` macro.
Chris Morgan [Thu, 5 Sep 2013 06:41:27 +0000 (16:41 +1000)]
Add an ``unreachable!()`` macro.

Rationale: having a function which fails means that the location of
failure which is output is that of the unreachable() function, rather
than the caller.

This is part of #8991 but is not all of it; current usage of
``std::util::unreachable()`` must remain so for the moment, until a new
snapshot is made; then I will remove that function entirely in favour of
using this macro.

10 years agoMove the `rt` build directory under $target
Alex Crichton [Wed, 4 Sep 2013 07:45:01 +0000 (00:45 -0700)]
Move the `rt` build directory under $target

Closes #2302

10 years agoImprove name mangling for gdb
Alex Crichton [Tue, 3 Sep 2013 05:34:37 +0000 (22:34 -0700)]
Improve name mangling for gdb

Remove __extensions__ from method symbols as well as the meth_XXX. The XXX is
now used to append a few characters at the end of the name of the symbol.

Closes #6602

10 years agostr: rm `map_chars`, replaced by iterators
Daniel Micay [Thu, 5 Sep 2013 05:59:42 +0000 (01:59 -0400)]
str: rm `map_chars`, replaced by iterators

mapping a function against the elements should not require allocating a
new container, but `collect` still provides the functionality as-needed

10 years agoauto merge of #8944 : alexcrichton/rust/issue-8938, r=huonw
bors [Thu, 5 Sep 2013 05:25:42 +0000 (22:25 -0700)]
auto merge of #8944 : alexcrichton/rust/issue-8938, r=huonw

Otherwise extra stuff after a lone '}' character is simply ignored, which is
very bad.

Closes #8938

10 years agoauto merge of #8980 : thestinger/rust/bool, r=thestinger
bors [Thu, 5 Sep 2013 04:15:43 +0000 (21:15 -0700)]
auto merge of #8980 : thestinger/rust/bool, r=thestinger

This is currently unsound since `bool` is represented as `i8`. It will
become sound when `bool` is stored as `i8` but always used as `i1`.

However, the current behaviour will always be identical to `x & 1 != 0`,
so there's no need for it. It's also surprising, since `x != 0` is the
expected behaviour.

Closes #7311

d0a1176 r=huonw
e4a76e6 r=thestinger

10 years agostd::str: Deny surrogates in is_utf8
blake2-ppc [Wed, 4 Sep 2013 00:36:55 +0000 (02:36 +0200)]
std::str: Deny surrogates in is_utf8

Reject codepoints \uD800 to \uDFFF which are the surrogates
(reserved/unused codepoints that are invalid to encode into UTF-8)

The surrogates is the only hole of invalid codepoints in the range from
\u0 to \u10FFFF.

10 years agoforbid cast as bool
Daniel Micay [Wed, 4 Sep 2013 21:05:31 +0000 (17:05 -0400)]
forbid cast as bool

This is currently unsound since `bool` is represented as `i8`. It will
become sound when `bool` is stored as `i8` but always used as `i1`.

However, the current behaviour will always be identical to `x & 1 != 0`,
so there's no need for it. It's also surprising, since `x != 0` is the
expected behaviour.

Closes #7311

10 years agoauto merge of #8986 : metajack/rust/rem-1866-xfail-comment, r=huonw
bors [Thu, 5 Sep 2013 03:05:44 +0000 (20:05 -0700)]
auto merge of #8986 : metajack/rust/rem-1866-xfail-comment, r=huonw

It's no longer xfailed.

10 years agoRemove spurious comment in test for #1866.
Jack Moffitt [Thu, 5 Sep 2013 01:19:20 +0000 (19:19 -0600)]
Remove spurious comment in test for #1866.

It's no longer xfailed.

10 years agoauto merge of #8978 : pnkfelix/rust/make-path-api-less-allocation-happy, r=huonw
bors [Thu, 5 Sep 2013 01:10:45 +0000 (18:10 -0700)]
auto merge of #8978 : pnkfelix/rust/make-path-api-less-allocation-happy, r=huonw

A [dialogue](https://github.com/mozilla/rust/pull/8909#discussion-diff-6102725) on PR #8909 inspired me to make this change.

r? anyone

(It is possible that `std::path` itself will soon be replaced with a new implementation that kballard's working on, as mentioned in the dialogue linked above, but this revision is simple enough that I figured I'd offer it up.)

10 years agoImplement Stream automatically for Reader + Writer
Chris Morgan [Thu, 5 Sep 2013 00:52:18 +0000 (10:52 +1000)]
Implement Stream automatically for Reader + Writer

This is consistent with the existing documentation but was not the
actual behaviour, which I've found to be rather a nuisance, actually.

10 years agoFix #7740: gather_loans should not recur into the items of the block.
Felix S. Klock II [Thu, 5 Sep 2013 00:22:06 +0000 (02:22 +0200)]
Fix #7740: gather_loans should not recur into the items of the block.

gather_loans does not need to recurse into any items declared in the
current block.  Rather than special-case `fk_item_fn` and `fk_method`,
just make the GatherLoanVisitor's visit_item method a no-op.

This indirectly implies that the example of #7740 is fixed:

    fn f() {
        static A: &'static char = &'A';
    }

Since we do not recurse into items, we no longer encounter `&'A'`.

10 years agoauto merge of #8977 : pnkfelix/rust/fsk-followup-on-6009-rebased, r=alexcrichton
bors [Wed, 4 Sep 2013 23:20:46 +0000 (16:20 -0700)]
auto merge of #8977 : pnkfelix/rust/fsk-followup-on-6009-rebased, r=alexcrichton

Fix #6009.  Rebased version of #8970.  Inherits review from alexcrichton.

10 years agoauto merge of #8935 : blake2-ppc/rust/reader-bytes, r=brson
bors [Wed, 4 Sep 2013 21:20:46 +0000 (14:20 -0700)]
auto merge of #8935 : blake2-ppc/rust/reader-bytes, r=brson

An iterator that simply calls `.read_bytes()` each iteration.

I think choosing to own the Reader value and implementing Decorator to
allow extracting it is the most generically useful. The Reader type
variable can of course be some kind of reference type that implements
Reader.

In the generic form the `Bytes` iterator is well behaved itself and does not read ahead.
It performs abysmally on top of a FileStream, and much better if a buffering reader is inserted inbetween.

10 years agoauto merge of #8880 : fhahn/rust/issue_8703, r=brson
bors [Wed, 4 Sep 2013 20:05:50 +0000 (13:05 -0700)]
auto merge of #8880 : fhahn/rust/issue_8703, r=brson

I've started working on #8703.

RUST_LOG="::help" should work, I hope I'll be able to finish the rest this weekend.

10 years agoauto merge of #8855 : michaelwoerister/rust/captured_vars, r=jdm
bors [Wed, 4 Sep 2013 18:55:52 +0000 (11:55 -0700)]
auto merge of #8855 : michaelwoerister/rust/captured_vars, r=jdm

This pull request includes
* support for variables captured in closures*,
* a fix for issue #8512: arguments of non-immediate type (structs, tuples, etc) passed by value can now be accessed correctly in GDB. (I managed to fix this by using `llvm::DIBuilder::createComplexVariable()`. ~~However, I am not sure if this relies on unstable implementation details of LLVM's debug info handling. I'll try to clarify this on the LLVM mailing list~~).
* simplification of the `debuginfo` module's public interface: the caller of functions like `create_local_var_metadata()` doesn't have to know and catch all cases when it mustn't call the function,
* a cleanup refactoring with unified handling for locals, [self] arguments, captured variables, and match bindings,
* and proper span information for self arguments.

\* However, see comment at https://github.com/michaelwoerister/rust/blob/1d916ace136a27e354d73d65f488603c65f65bd2/src/test/debug-info/var-captured-in-nested-closure.rs#L62 . This is the same problem as with the fix for issue #8512 above: We are probably using `llvm.dbg.declare` in an unsupported way that works today but might not work after the next LLVM update.

Cheers,
Michael

Fixes #8512
Fixes #1341

10 years agodebuginfo: Fixed some merge fallout
Michael Woerister [Wed, 4 Sep 2013 17:31:13 +0000 (19:31 +0200)]
debuginfo: Fixed some merge fallout

10 years agoauto merge of #8901 : adridu59/rust/issue-8511, r=huonw
bors [Wed, 4 Sep 2013 17:00:56 +0000 (10:00 -0700)]
auto merge of #8901 : adridu59/rust/issue-8511, r=huonw

Android has no /tmp partition, cf. #8511.

10 years agodebuginfo: Much improved handling of captured variables and by-value arguments.
Michael Woerister [Tue, 3 Sep 2013 16:23:59 +0000 (18:23 +0200)]
debuginfo: Much improved handling of captured variables and by-value arguments.

10 years agodebuginfo: Fixed some merge fallout
Michael Woerister [Tue, 3 Sep 2013 10:15:56 +0000 (12:15 +0200)]
debuginfo: Fixed some merge fallout

10 years agodebuginfo: Always copy args to allocas if debuginfo is enabled
Michael Woerister [Tue, 3 Sep 2013 09:53:06 +0000 (11:53 +0200)]
debuginfo: Always copy args to allocas if debuginfo is enabled

10 years agodebuginfo: Added test cases for structs, tuples, enums, etc passed by value.
Michael Woerister [Thu, 29 Aug 2013 09:44:11 +0000 (11:44 +0200)]
debuginfo: Added test cases for structs, tuples, enums, etc passed by value.

Also updated documentation comments in debuginfo and renamed DebugContext to CrateDebugContext.

10 years agodebuginfo: Support for by-value arguments (still excluding some cases of self arguments)
Michael Woerister [Wed, 28 Aug 2013 15:47:31 +0000 (17:47 +0200)]
debuginfo: Support for by-value arguments (still excluding some cases of self arguments)

10 years agodebuginfo: Support for variables captured in closures and closure type descriptions.
Michael Woerister [Fri, 23 Aug 2013 16:45:02 +0000 (18:45 +0200)]
debuginfo: Support for variables captured in closures and closure type descriptions.

10 years agoAnother followup on #6009.
Felix S. Klock II [Wed, 4 Sep 2013 16:07:56 +0000 (18:07 +0200)]
Another followup on #6009.

Odd that my earlier make checks did not catch this.

10 years agolibstd/os: set tmp dir to /data/tmp on Android
adridu59 [Sun, 1 Sep 2013 11:31:05 +0000 (13:31 +0200)]
libstd/os: set tmp dir to /data/tmp on Android

Android has no /tmp partition, return /data/tmp instead. Cf. #8511.

10 years agoauto merge of #8966 : FlaPer87/rust/issue/7473, r=bblum
bors [Wed, 4 Sep 2013 15:50:57 +0000 (08:50 -0700)]
auto merge of #8966 : FlaPer87/rust/issue/7473, r=bblum

Current access methods are nestable and unsafe. This patch renames
current methods implementation - prepends unsafe_ - and implements 2 new
methods that are both safe and un-nestable.

Fixes #7473

10 years agoauto merge of #8956 : thestinger/rust/test, r=huonw
bors [Wed, 4 Sep 2013 13:20:57 +0000 (06:20 -0700)]
auto merge of #8956 : thestinger/rust/test, r=huonw

10 years agoConvert rust_log.cpp to Rust, closes #8703
Florian Hahn [Fri, 30 Aug 2013 14:42:49 +0000 (16:42 +0200)]
Convert rust_log.cpp to Rust, closes #8703

10 years agoauto merge of #8974 : thestinger/rust/char, r=huonw
bors [Wed, 4 Sep 2013 12:10:55 +0000 (05:10 -0700)]
auto merge of #8974 : thestinger/rust/char, r=huonw

Closes #7609

10 years agostop treating char as an integer type
Daniel Micay [Tue, 3 Sep 2013 23:24:12 +0000 (19:24 -0400)]
stop treating char as an integer type

Closes #7609

10 years agoadd test for tydesc name
Daniel Micay [Tue, 3 Sep 2013 22:22:11 +0000 (18:22 -0400)]
add test for tydesc name

10 years agoUpdate clients of path.rs to use new API.
Felix S. Klock II [Wed, 4 Sep 2013 11:10:22 +0000 (13:10 +0200)]
Update clients of path.rs to use new API.

In most cases this involved removing a ~str allocations or clones
(yay), or coercing a ~str to a slice.  In a few places, I had to bind
an intermediate Path (e.g. path.pop() return values), so that it would
live long enough to support the borrowed &str.

And in a few places, where the code was actively using the property
that the old API returned ~str's, I had to put in to_owned() or
clone(); but in those cases, we're trading an allocation within the
path.rs code for one in the client code, so they neutralize each
other.

10 years agoRevise path.rs API to not allocate ~str so much.
Felix S. Klock II [Wed, 4 Sep 2013 11:04:47 +0000 (13:04 +0200)]
Revise path.rs API to not allocate ~str so much.

Note that I left dirname as returning ~str, because both of its
implementations work by calling dir_path, which produces a new path,
and thus we cannot borrow the result from &'a self passed to dirname
(because the new path returned by dir_path will not live long enough
to satisfy the lifetime 'a).

10 years agoauto merge of #8976 : alexcrichton/rust/issue-5425, r=pnkfelix
bors [Wed, 4 Sep 2013 10:20:56 +0000 (03:20 -0700)]
auto merge of #8976 : alexcrichton/rust/issue-5425, r=pnkfelix

Closes #5425

10 years agoauto merge of #8960 : Kimundi/rust/master, r=alexcrichton
bors [Wed, 4 Sep 2013 08:35:58 +0000 (01:35 -0700)]
auto merge of #8960 : Kimundi/rust/master, r=alexcrichton

Changed ToStr impl for Ascii
Added ToStr impl for char

10 years agoDon't die with an ICE on a blank library name
Alex Crichton [Wed, 4 Sep 2013 08:07:36 +0000 (01:07 -0700)]
Don't die with an ICE on a blank library name

Closes #5425

10 years agoMake non-pub condition! expand to non-pub mod. Fix #6009.
Felix S. Klock II [Wed, 4 Sep 2013 02:39:57 +0000 (04:39 +0200)]
Make non-pub condition! expand to non-pub mod.  Fix #6009.

10 years agoAdded explicit pub to several conditions. Enables completion of #6009.
Felix S. Klock II [Wed, 4 Sep 2013 02:39:14 +0000 (04:39 +0200)]
Added explicit pub to several conditions.  Enables completion of #6009.

10 years agoauto merge of #8951 : chris-morgan/rust/vim-update-highlighting, r=alexcrichton
bors [Wed, 4 Sep 2013 07:25:56 +0000 (00:25 -0700)]
auto merge of #8951 : chris-morgan/rust/vim-update-highlighting, r=alexcrichton

Several changes with appropriate commit messages to explain them.

The final two commits, highlighting everything in the prelude, may be a little controversial. I think it's the sensible way forward with it.

10 years agoUse MuextArc and RWArc in docstrings
Flaper Fesp [Wed, 4 Sep 2013 07:14:56 +0000 (09:14 +0200)]
Use MuextArc and RWArc in docstrings

10 years agoBuild rustllvm into $target/rustllvm
Alex Crichton [Wed, 4 Sep 2013 06:48:45 +0000 (23:48 -0700)]
Build rustllvm into $target/rustllvm

10 years agoMove the llvm auto-clean stamp into $target/llvm
Alex Crichton [Wed, 4 Sep 2013 06:47:13 +0000 (23:47 -0700)]
Move the llvm auto-clean stamp into $target/llvm

10 years agoauto merge of #8950 : sanxiyn/rust/cross-xfail, r=brson
bors [Wed, 4 Sep 2013 06:15:56 +0000 (23:15 -0700)]
auto merge of #8950 : sanxiyn/rust/cross-xfail, r=brson

10 years agoRaise errors on format strings with unmatched `}`
Alex Crichton [Tue, 3 Sep 2013 06:38:43 +0000 (23:38 -0700)]
Raise errors on format strings with unmatched `}`

Otherwise extra stuff after a lone '}' character is simply ignored, which is
very bad.

Closes #8938

10 years agoauto merge of #8943 : alexcrichton/rust/issue-8904, r=brson
bors [Wed, 4 Sep 2013 05:05:59 +0000 (22:05 -0700)]
auto merge of #8943 : alexcrichton/rust/issue-8904, r=brson

We already do this for libstd tests automatically, and compiletest runs into the
same problems where when forking lots of processes lots of file descriptors are
created. On OSX we can use specific syscalls to raise the limits, in this
situation, though.

Closes #8904

10 years agoMove llvm into the artifacts build directory
Alex Crichton [Tue, 3 Sep 2013 07:11:36 +0000 (00:11 -0700)]
Move llvm into the artifacts build directory

10 years agoauto merge of #8942 : novalis/rust/fmt, r=alexcrichton
bors [Wed, 4 Sep 2013 03:56:19 +0000 (20:56 -0700)]
auto merge of #8942 : novalis/rust/fmt, r=alexcrichton

10 years agoTest and document escaping on format!()
novalis [Tue, 3 Sep 2013 04:38:46 +0000 (00:38 -0400)]
Test and document escaping on format!()

10 years agoSilence fo+=j error for users of Vim < 7.3.541.
Chris Morgan [Wed, 4 Sep 2013 03:33:40 +0000 (13:33 +1000)]
Silence fo+=j error for users of Vim < 7.3.541.

10 years agoauto merge of #8963 : jmgrosen/rust/issue-8881, r=alexcrichton
bors [Wed, 4 Sep 2013 02:46:42 +0000 (19:46 -0700)]
auto merge of #8963 : jmgrosen/rust/issue-8881, r=alexcrichton

10 years agoAdded ToStr impl for char
Marvin Löbel [Wed, 4 Sep 2013 01:04:36 +0000 (03:04 +0200)]
Added ToStr impl for char
Changed ToStr impl for Ascii

10 years agoFixed docs and styles
Flaper Fesp [Wed, 4 Sep 2013 00:24:04 +0000 (02:24 +0200)]
Fixed docs and styles

10 years agoAdd a safe implementation of MutexArc::access* methods
Flaper Fesp [Tue, 3 Sep 2013 23:07:11 +0000 (01:07 +0200)]
Add a safe implementation of MutexArc::access* methods

Current access methods are nestable and unsafe. This patch renames
current methods implementation - prepends unsafe_ - and implements 2 new
methods that are both safe and un-nestable.

Fixes #7473

10 years agoRename MutexArc access methods to unsafe_access
Flaper Fesp [Fri, 30 Aug 2013 18:52:19 +0000 (20:52 +0200)]
Rename MutexArc access methods to unsafe_access

10 years agoFixes #8881. condition! imports parent's pub identifiers
jmgrosen [Tue, 3 Sep 2013 23:11:00 +0000 (16:11 -0700)]
Fixes #8881. condition! imports parent's pub identifiers

10 years agoauto merge of #8954 : anasazi/rust/tcp-acceptor, r=catamorphism
bors [Tue, 3 Sep 2013 21:56:22 +0000 (14:56 -0700)]
auto merge of #8954 : anasazi/rust/tcp-acceptor, r=catamorphism

The Listener trait takes two type parameters, the type of connection and the type of Acceptor,
and specifies only one method, listen, which consumes the listener and produces an Acceptor.

The Acceptor trait takes one type parameter, the type of connection, and defines two methods.
The accept() method waits for an incoming connection attempt and returns the result.
The incoming() method creates an iterator over incoming connections and is a default method.

Example:

```rust
let listener = TcpListener.bind(addr); // Bind to a socket
let acceptor = listener.listen(); // Start the listener
for stream in acceptor.incoming() {
    // Process incoming connections forever (a failure will kill the task).
}
```

Closes #8689

10 years agoauto merge of #8921 : huonw/rust/stability, r=brson
bors [Tue, 3 Sep 2013 19:22:16 +0000 (12:22 -0700)]
auto merge of #8921 : huonw/rust/stability, r=brson

Significant progress on #6875, enough that I'll open new bugs and turn that into a metabug when this lands.

Description & example in the commit message.

10 years agort::io: Rename Bytes to ByteIterator and add note about iteration
blake2-ppc [Tue, 3 Sep 2013 18:00:32 +0000 (20:00 +0200)]
rt::io: Rename Bytes to ByteIterator and add note about iteration

10 years agoauto merge of #8934 : sfackler/rust/bufreader, r=brson
bors [Tue, 3 Sep 2013 18:01:17 +0000 (11:01 -0700)]
auto merge of #8934 : sfackler/rust/bufreader, r=brson

10 years agoauto merge of #8945 : alexcrichton/rust/ifmt-dont-move, r=thestinger
bors [Tue, 3 Sep 2013 16:50:58 +0000 (09:50 -0700)]
auto merge of #8945 : alexcrichton/rust/ifmt-dont-move, r=thestinger

10 years agoUpdate highlighting for prelude changes.
Chris Morgan [Tue, 3 Sep 2013 16:38:41 +0000 (02:38 +1000)]
Update highlighting for prelude changes.

10 years agoHighlight everything in the prelude in Vim.
Chris Morgan [Thu, 29 Aug 2013 16:15:01 +0000 (02:15 +1000)]
Highlight everything in the prelude in Vim.

This is a rather more extensive change than the last, but *ever* so much
easier to maintain reasonably, as there's then something to track
directly.

10 years agoUpdate a handful of keywords highlighted in Vim.
Chris Morgan [Thu, 29 Aug 2013 05:52:01 +0000 (15:52 +1000)]
Update a handful of keywords highlighted in Vim.

I added a few and removed a few and corrected a couple, all with
reference to the prelude. It ends up a slightly arbitrary decision
precisely what ends up in and what doesn't, unfortunately.

10 years agoModernise some Vim syntax highlighting.
Chris Morgan [Thu, 29 Aug 2013 05:22:34 +0000 (15:22 +1000)]
Modernise some Vim syntax highlighting.

- Remove highlighting of ``L"..."`` (obsolete syntax)
- Remove backslash at end of line being a line continuation always
  (obsolete syntax; this only affects comments, actually)
- Add highlighting for backslash at end of line and leading whitespace
  on the following line inside a string (a genuine line continuation)

10 years agoauto merge of #8947 : thestinger/rust/name, r=huonw
bors [Tue, 3 Sep 2013 15:06:04 +0000 (08:06 -0700)]
auto merge of #8947 : thestinger/rust/name, r=huonw

Storing the type name in the `tydesc` aims to avoid the need to pass a type name in almost every single visitor method.

It would likely be much saner for `repr` to simply be passed the `TyDesc` corresponding to the function or just the type name, but this is good enough for now.