]> git.lizzy.rs Git - rust.git/log
rust.git
9 years agorollup merge of #17236 : fhahn/issue-16723-multiple-items
Alex Crichton [Fri, 19 Sep 2014 17:00:06 +0000 (10:00 -0700)]
rollup merge of #17236 : fhahn/issue-16723-multiple-items

9 years agorollup merge of #17041 : pcwalton/right-unboxed-closure-sugar
Alex Crichton [Fri, 19 Sep 2014 16:59:45 +0000 (09:59 -0700)]
rollup merge of #17041 : pcwalton/right-unboxed-closure-sugar

9 years agoAllow syntax extensions to return multiple items, closes #16723.
Florian Hahn [Sat, 13 Sep 2014 10:55:00 +0000 (12:55 +0200)]
Allow syntax extensions to return multiple items, closes #16723.

This patch replaces `MacItem` with `MacItems`.

9 years agolibrustc: Implement the syntax in the RFC for unboxed closure sugar.
Patrick Walton [Sat, 6 Sep 2014 04:27:47 +0000 (21:27 -0700)]
librustc: Implement the syntax in the RFC for unboxed closure sugar.

Part of issue #16640. I am leaving this issue open to handle parsing of
higher-rank lifetimes in traits.

This change breaks code that used unboxed closures:

* Instead of `F:|&: int| -> int`, write `F:Fn(int) -> int`.

* Instead of `F:|&mut: int| -> int`, write `F:FnMut(int) -> int`.

* Instead of `F:|: int| -> int`, write `F:FnOnce(int) -> int`.

[breaking-change]

9 years agoauto merge of #17330 : brson/rust/bot-house-cleaning, r=alexcrichton
bors [Thu, 18 Sep 2014 21:20:38 +0000 (21:20 +0000)]
auto merge of #17330 : brson/rust/bot-house-cleaning, r=alexcrichton

Both these things were transitionary until bot upgrades.

9 years agojemalloc: Un-revert accidentally reverted jemalloc
Patrick Walton [Thu, 18 Sep 2014 20:40:15 +0000 (13:40 -0700)]
jemalloc: Un-revert accidentally reverted jemalloc

9 years agomk: Remove check-fast target
Brian Anderson [Wed, 17 Sep 2014 01:22:52 +0000 (18:22 -0700)]
mk: Remove check-fast target

9 years agoconfigure: Remove support for i686-pc-mingw32 triple
Brian Anderson [Wed, 17 Sep 2014 01:22:31 +0000 (18:22 -0700)]
configure: Remove support for i686-pc-mingw32 triple

9 years agoauto merge of #17249 : vadimcn/rust/env-keys, r=alexcrichton
bors [Thu, 18 Sep 2014 17:05:35 +0000 (17:05 +0000)]
auto merge of #17249 : vadimcn/rust/env-keys, r=alexcrichton

Closes #16937

9 years agoauto merge of #17364 : thestinger/rust/debuginfo, r=pnkfelix
bors [Thu, 18 Sep 2014 11:05:38 +0000 (11:05 +0000)]
auto merge of #17364 : thestinger/rust/debuginfo, r=pnkfelix

Closes #13611

9 years agoauto merge of #17349 : aturon/rust/rt-experimental, r=alexcrichton
bors [Thu, 18 Sep 2014 08:25:38 +0000 (08:25 +0000)]
auto merge of #17349 : aturon/rust/rt-experimental, r=alexcrichton

The `std::rt` module was marked `unstable` [a while back](https://github.com/rust-lang/rust/commit/b6d4d117f4c2770649c7ddc2ad9ad4ce4c3b13b1), and this change was not reverted when we moved to an `experimental` baseline for `std`.

9 years agoPacify lint gods.
Vadim Chugunov [Thu, 18 Sep 2014 06:40:27 +0000 (23:40 -0700)]
Pacify lint gods.

9 years agoauto merge of #17341 : alexcrichton/rust/unignore, r=brson
bors [Thu, 18 Sep 2014 05:50:38 +0000 (05:50 +0000)]
auto merge of #17341 : alexcrichton/rust/unignore, r=brson

I've confirmed that these are working on the snapshot builders

Closes #16919

9 years agostop clamping the DWARF version to 3 on Linux
Daniel Micay [Thu, 18 Sep 2014 05:10:12 +0000 (01:10 -0400)]
stop clamping the DWARF version to 3 on Linux

Closes #13611

9 years agoauto merge of #17335 : TeXitoi/rust/relicense-shootout, r=brson
bors [Thu, 18 Sep 2014 03:20:39 +0000 (03:20 +0000)]
auto merge of #17335 : TeXitoi/rust/relicense-shootout, r=brson

Everyone agreed.  Fix #17064, fix #17072

@brson OK?

9 years agoauto merge of #16377 : pcwalton/rust/associated-items, r=nikomatsakis
bors [Wed, 17 Sep 2014 23:45:36 +0000 (23:45 +0000)]
auto merge of #16377 : pcwalton/rust/associated-items, r=nikomatsakis

This is waiting on an RFC, but this basic functionality should be
straightforward. The implementation essentially desugars during type
collection and AST type conversion time into the parameter scheme we
have now.

r? @nikomatsakis

9 years agolibrustc: Implement associated types behind a feature gate.
Patrick Walton [Wed, 6 Aug 2014 02:44:21 +0000 (19:44 -0700)]
librustc: Implement associated types behind a feature gate.

The implementation essentially desugars during type collection and AST
type conversion time into the parameter scheme we have now. Only fully
qualified names--e.g. `<T as Foo>::Bar`--are supported.

9 years agoauto merge of #17331 : kballard/rust/rust_log_pattern_inverted, r=alexcrichton
bors [Wed, 17 Sep 2014 21:15:38 +0000 (21:15 +0000)]
auto merge of #17331 : kballard/rust/rust_log_pattern_inverted, r=alexcrichton

RUST_LOG supports regex filtering of log messages with a syntax like
`RUST_LOG=main/foo` to use the regex filter 'foo'. Unfortunately, the
filter was inverted, so `RUST_LOG=main/foo` would actually show all
messages except the ones containing 'foo'.

9 years agoFix the inverted RUST_LOG filter
Kevin Ballard [Wed, 17 Sep 2014 01:16:19 +0000 (18:16 -0700)]
Fix the inverted RUST_LOG filter

RUST_LOG supports regex filtering of log messages with a syntax like
`RUST_LOG=main/foo` to use the regex filter 'foo'. Unfortunately, the
filter was inverted, so `RUST_LOG=main/foo` would actually show all
messages except the ones containing 'foo'.

9 years agoRemove unstable marker from std::rt
Aaron Turon [Wed, 17 Sep 2014 18:55:07 +0000 (11:55 -0700)]
Remove unstable marker from std::rt

The `std::rt` module was marked `unstable` [a while
back](https://github.com/rust-lang/rust/commit/b6d4d117f4c2770649c7ddc2ad9ad4ce4c3b13b1),
and this change was not reverted when we moved to an `experimental`
baseline for `std`.

9 years agoauto merge of #17343 : alexcrichton/rust/rollup, r=alexcrichton
bors [Wed, 17 Sep 2014 18:26:14 +0000 (18:26 +0000)]
auto merge of #17343 : alexcrichton/rust/rollup, r=alexcrichton

9 years agoTest fixes from the rollup
Alex Crichton [Wed, 17 Sep 2014 16:26:26 +0000 (09:26 -0700)]
Test fixes from the rollup

9 years agoauto merge of #16836 : P1start/rust/closure_ret_bang, r=alexcrichton
bors [Wed, 17 Sep 2014 15:51:11 +0000 (15:51 +0000)]
auto merge of #16836 : P1start/rust/closure_ret_bang, r=alexcrichton

Fixes #13490.

9 years agorollup merge of #17333 : mo/drop_unused_diagnostic_codes
Alex Crichton [Wed, 17 Sep 2014 15:50:16 +0000 (08:50 -0700)]
rollup merge of #17333 : mo/drop_unused_diagnostic_codes

9 years agorollup merge of #17329 : alexcrichton/snapshots
Alex Crichton [Wed, 17 Sep 2014 15:50:05 +0000 (08:50 -0700)]
rollup merge of #17329 : alexcrichton/snapshots

9 years agorollup merge of #17326 : brson/wintest
Alex Crichton [Wed, 17 Sep 2014 15:50:04 +0000 (08:50 -0700)]
rollup merge of #17326 : brson/wintest

9 years agorollup merge of #17312 : Manishearth/builtin-shrink
Alex Crichton [Wed, 17 Sep 2014 15:49:46 +0000 (08:49 -0700)]
rollup merge of #17312 : Manishearth/builtin-shrink

9 years agorollup merge of #17311 : jakub-/issue-17302
Alex Crichton [Wed, 17 Sep 2014 15:49:41 +0000 (08:49 -0700)]
rollup merge of #17311 : jakub-/issue-17302

9 years agorollup merge of #17310 : nikomatsakis/type-bounds-generalize-to-multiple-object-bounds
Alex Crichton [Wed, 17 Sep 2014 15:49:39 +0000 (08:49 -0700)]
rollup merge of #17310 : nikomatsakis/type-bounds-generalize-to-multiple-object-bounds

9 years agorollup merge of #17309 : aturon/deprecate-libnum
Alex Crichton [Wed, 17 Sep 2014 15:49:37 +0000 (08:49 -0700)]
rollup merge of #17309 : aturon/deprecate-libnum

9 years agorollup merge of #17297 : treeman/net-unix
Alex Crichton [Wed, 17 Sep 2014 15:49:33 +0000 (08:49 -0700)]
rollup merge of #17297 : treeman/net-unix

9 years agorollup merge of #17294 : theevocater/master
Alex Crichton [Wed, 17 Sep 2014 15:49:31 +0000 (08:49 -0700)]
rollup merge of #17294 : theevocater/master

9 years agorollup merge of #17292 : thestinger/tasks
Alex Crichton [Wed, 17 Sep 2014 15:49:28 +0000 (08:49 -0700)]
rollup merge of #17292 : thestinger/tasks

9 years agorollup merge of #17290 : bkoropoff/issue-17283
Alex Crichton [Wed, 17 Sep 2014 15:49:26 +0000 (08:49 -0700)]
rollup merge of #17290 : bkoropoff/issue-17283

9 years agorollup merge of #17285 : brson/relchan
Alex Crichton [Wed, 17 Sep 2014 15:49:21 +0000 (08:49 -0700)]
rollup merge of #17285 : brson/relchan

9 years agorollup merge of #17281 : saysjonathan/missing-semicolon
Alex Crichton [Wed, 17 Sep 2014 15:49:12 +0000 (08:49 -0700)]
rollup merge of #17281 : saysjonathan/missing-semicolon

9 years agorollup merge of #17279 : jakub-/for-loop-unused-variable
Alex Crichton [Wed, 17 Sep 2014 15:49:10 +0000 (08:49 -0700)]
rollup merge of #17279 : jakub-/for-loop-unused-variable

9 years agorollup merge of #17278 : steveklabnik/gh17242
Alex Crichton [Wed, 17 Sep 2014 15:49:08 +0000 (08:49 -0700)]
rollup merge of #17278 : steveklabnik/gh17242

9 years agorollup merge of #17277 : steveklabnik/doc_fix_rollup
Alex Crichton [Wed, 17 Sep 2014 15:49:06 +0000 (08:49 -0700)]
rollup merge of #17277 : steveklabnik/doc_fix_rollup

9 years agorollup merge of #17276 : treeman/json-comma
Alex Crichton [Wed, 17 Sep 2014 15:49:04 +0000 (08:49 -0700)]
rollup merge of #17276 : treeman/json-comma

9 years agorollup merge of #17226 : P1start/rustdoc-colour
Alex Crichton [Wed, 17 Sep 2014 15:48:53 +0000 (08:48 -0700)]
rollup merge of #17226 : P1start/rustdoc-colour

9 years agorollup merge of #16936 : nham/two_way_makeover
Alex Crichton [Wed, 17 Sep 2014 15:48:33 +0000 (08:48 -0700)]
rollup merge of #16936 : nham/two_way_makeover

9 years agorollup merge of #16931 : omasanori/unnecessary-path-brackets
Alex Crichton [Wed, 17 Sep 2014 15:48:31 +0000 (08:48 -0700)]
rollup merge of #16931 : omasanori/unnecessary-path-brackets

9 years agorollup merge of #16889 : P1start/array-not-vector
Alex Crichton [Wed, 17 Sep 2014 15:48:27 +0000 (08:48 -0700)]
rollup merge of #16889 : P1start/array-not-vector

9 years agotest: Un-ignore some GDB pretty printing tests
Alex Crichton [Wed, 17 Sep 2014 14:50:09 +0000 (07:50 -0700)]
test: Un-ignore some GDB pretty printing tests

I've confirmed that these are working on the snapshot builders

Closes #16919

9 years agoauto merge of #17264 : bkoropoff/rust/issue-17252, r=nick29581
bors [Wed, 17 Sep 2014 14:06:19 +0000 (14:06 +0000)]
auto merge of #17264 : bkoropoff/rust/issue-17252, r=nick29581

Recursive items are currently detected in the `check_const` pass which runs after type checking.  This means a recursive static item used as an array length will cause type checking to blow the stack.  This PR separates the recursion check out into a separate pass which is run before type checking.

Closes issue #17252

r? @nick29581

9 years agoauto merge of #17254 : gamazeps/rust/issue17210, r=alexcrichton
bors [Wed, 17 Sep 2014 12:06:22 +0000 (12:06 +0000)]
auto merge of #17254 : gamazeps/rust/issue17210, r=alexcrichton

Closes #17210

9 years agoauto merge of #17247 : huonw/rust/toggle-clone, r=alexcrichton
bors [Wed, 17 Sep 2014 10:21:17 +0000 (10:21 +0000)]
auto merge of #17247 : huonw/rust/toggle-clone, r=alexcrichton

This needs a clone otherwise each successive insertion detaches `toggle`
from the previous position.

Fixes #17125.

9 years agoauto merge of #17246 : bkoropoff/rust/issue-17216, r=pnkfelix
bors [Wed, 17 Sep 2014 08:31:18 +0000 (08:31 +0000)]
auto merge of #17246 : bkoropoff/rust/issue-17216, r=pnkfelix

Trans the cleanup scope of for loop bindings so we don't leak resources.  Regression test included.

Closes #17216

9 years agoCase-insensitive environment keys.
Vadim Chugunov [Sun, 14 Sep 2014 08:33:21 +0000 (01:33 -0700)]
Case-insensitive environment keys.

9 years agorustdoc: Correctly distinguish enums and types
P1start [Mon, 15 Sep 2014 21:13:00 +0000 (09:13 +1200)]
rustdoc: Correctly distinguish enums and types

This is done by adding a new field to the `DefTy` variant of `middle::def::Def`,
which also clarifies an error message in the process.

Closes #16712.

9 years agoRelicense shootout-fasta.rs ti the shootout license.
Guillaume Pinot [Wed, 17 Sep 2014 06:44:44 +0000 (08:44 +0200)]
Relicense shootout-fasta.rs ti the shootout license.

Everyone agreed.

Fix #17072

9 years agoRelicense shootout-spectralnorm.rs to the shootout license
Guillaume Pinot [Wed, 17 Sep 2014 06:33:57 +0000 (08:33 +0200)]
Relicense shootout-spectralnorm.rs to the shootout license

Everyone agreed.

Fix #17064

9 years agoauto merge of #17160 : nick29581/rust/front, r=pcwalton
bors [Wed, 17 Sep 2014 05:56:15 +0000 (05:56 +0000)]
auto merge of #17160 : nick29581/rust/front, r=pcwalton

r?

9 years agoRestore colour to rustdoc, add colour to ffi functions and methods
P1start [Sat, 13 Sep 2014 02:46:23 +0000 (14:46 +1200)]
Restore colour to rustdoc, add colour to ffi functions and methods

9 years agorebasing fixes
Nick Cameron [Tue, 16 Sep 2014 23:58:11 +0000 (11:58 +1200)]
rebasing fixes

9 years agomove feature_gate to libsyntax
Nick Cameron [Thu, 11 Sep 2014 00:55:42 +0000 (12:55 +1200)]
move feature_gate to libsyntax

9 years agomove std_inject to libsyntax
Nick Cameron [Wed, 10 Sep 2014 22:35:21 +0000 (10:35 +1200)]
move std_inject to libsyntax

9 years agomove most of front to libsyntax
Nick Cameron [Fri, 25 Jul 2014 02:44:24 +0000 (14:44 +1200)]
move most of front to libsyntax

9 years agoDrop a few unused diagnostic codes
Martin Olsson [Tue, 16 Sep 2014 21:11:03 +0000 (23:11 +0200)]
Drop a few unused diagnostic codes

Avoids warnings during bootstrap, similar to:

  src/librustc/lib.rs:149:1: 149:39 warning: diagnostic code E0099 never used
  src/librustc/lib.rs:149 __build_diagnostic_array!(DIAGNOSTICS)

All of these codes stopped being used in this commit:
688ddf7 ("typeck/kind -- stop using old trait framework.")

See also similar fix: https://github.com/rust-lang/rust/issues/16449

9 years agoauto merge of #17227 : tshepang/rust/stronger-break, r=aturon
bors [Wed, 17 Sep 2014 03:46:15 +0000 (03:46 +0000)]
auto merge of #17227 : tshepang/rust/stronger-break, r=aturon

Remove trailing whitespace while at it

9 years agoAdd regression test for issue #17283
Brian Koropoff [Tue, 16 Sep 2014 02:22:17 +0000 (19:22 -0700)]
Add regression test for issue #17283

9 years agoPropagate restrictions against struct literals to the RHS of assignments
Brian Koropoff [Tue, 16 Sep 2014 02:06:27 +0000 (19:06 -0700)]
Propagate restrictions against struct literals to the RHS of assignments

This prevents confusing errors when accidentally using an assignment
in an `if` expression.  For example:

```rust
fn main() {
    let x = 1u;
    if x = x {
        println!("{}", x);
    }
}
```

Previously, this yielded:

```
test.rs:4:16: 4:17 error: expected `:`, found `!`
test.rs:4         println!("{}", x);
                         ^
```

With this change, it now yields:

```
test.rs:3:8: 3:13 error: mismatched types: expected `bool`, found `()` (expected bool, found ())
test.rs:3     if x = x {
                 ^~~~~
```

Closes issue #17283

9 years agoConvert restriction enum into bitflags
Brian Koropoff [Tue, 16 Sep 2014 05:22:12 +0000 (22:22 -0700)]
Convert restriction enum into bitflags

This makes having multiple restrictions at once cleaner.
Also drop NO_DOUBLEBAR restriction since it is never used.

9 years agoRegister new snapshots
Alex Crichton [Wed, 17 Sep 2014 01:16:38 +0000 (18:16 -0700)]
Register new snapshots

This is the first linux snapshot created on our new CentOS 5.10 builders.

Closes #9545

9 years agoauto merge of #17223 : retep998/rust/into_string, r=huonw
bors [Wed, 17 Sep 2014 01:16:14 +0000 (01:16 +0000)]
auto merge of #17223 : retep998/rust/into_string, r=huonw

Replaces some usage of `.to_string()` with `.into_string()`

9 years agoauto merge of #17268 : aturon/rust/mut-conventions, r=alexcrichton
bors [Tue, 16 Sep 2014 23:26:11 +0000 (23:26 +0000)]
auto merge of #17268 : aturon/rust/mut-conventions, r=alexcrichton

As per [RFC 52](https://github.com/rust-lang/rfcs/blob/master/active/0052-ownership-variants.md), use `_mut` suffixes to mark mutable variants, and `into_iter` for moving iterators. Additional details and motivation in the RFC.

Note that the iterator *type* names are not changed by this RFC; those are awaiting a separate RFC for standardization.

Closes #13660
Closes #16810

[breaking-change]

9 years agoFallout from renaming
Aaron Turon [Mon, 15 Sep 2014 03:27:36 +0000 (20:27 -0700)]
Fallout from renaming

9 years agoauto merge of #17213 : mo/rust/fix_typos, r=aturon
bors [Tue, 16 Sep 2014 21:36:08 +0000 (21:36 +0000)]
auto merge of #17213 : mo/rust/fix_typos, r=aturon

9 years agoUse PATH instead of HOME in env! example
Brian Anderson [Tue, 16 Sep 2014 20:51:01 +0000 (13:51 -0700)]
Use PATH instead of HOME in env! example

HOME does not exist under typical windows environments.

9 years agoAlign with _mut conventions
Aaron Turon [Sun, 14 Sep 2014 22:57:55 +0000 (15:57 -0700)]
Align with _mut conventions

As per [RFC
52](https://github.com/rust-lang/rfcs/blob/master/active/0052-ownership-variants.md),
use `_mut` suffixes to mark mutable variants, and `into_iter` for moving
iterators.

[breaking-change]

9 years agoRun cleanup for base struct in functional struct update expressions
Jakub Wieczorek [Tue, 16 Sep 2014 18:11:16 +0000 (20:11 +0200)]
Run cleanup for base struct in functional struct update expressions

Fixes #17302.

9 years agoDeprecate libnum in favor of rust-lang/num
Aaron Turon [Tue, 16 Sep 2014 17:39:08 +0000 (10:39 -0700)]
Deprecate libnum in favor of rust-lang/num

This is part of the migration of crates into the Cargo ecosystem. There
is now an external repository https://github.com/rust-lang/num for bignums.

The single use of libnum elsewhere in the repository is for a shootout
benchmark, which is being moved into the external crate.

Due to deprecation, this is a:

[breaking-change]

9 years agoGeneralize lifetime bounds on type parameters to support multiple
Niko Matsakis [Thu, 14 Aug 2014 22:05:27 +0000 (18:05 -0400)]
Generalize lifetime bounds on type parameters to support multiple
lifetime bounds. This doesn't really cause any difficulties, because
we already had to accommodate the fact that multiple implicit bounds
could accumulate. Object types still require precisely one lifetime
bound. This is a pre-step towards generalized where clauses (once you
have lifetime bounds in where clauses, it is harder to restrict them
to exactly one).

9 years agoClean up code for unused_must_use lint
Manish Goregaokar [Tue, 16 Sep 2014 17:23:19 +0000 (22:53 +0530)]
Clean up code for unused_must_use lint

9 years agoauto merge of #17266 : Gankro/rust/vec-move, r=alexcrichton
bors [Tue, 16 Sep 2014 17:06:00 +0000 (17:06 +0000)]
auto merge of #17266 : Gankro/rust/vec-move, r=alexcrichton

Seems to correctly report exact size, so it should claim to do so formally.

9 years agoUpdate triple per comments
Jake Kaufman [Tue, 16 Sep 2014 15:44:47 +0000 (08:44 -0700)]
Update triple per comments

9 years agoauto merge of #17197 : nikomatsakis/rust/issue-5527-trait-reform-revisited, r=pcwalton
bors [Tue, 16 Sep 2014 15:25:59 +0000 (15:25 +0000)]
auto merge of #17197 : nikomatsakis/rust/issue-5527-trait-reform-revisited, r=pcwalton

This patch does not make many functional changes, but does a lot of restructuring towards the goals of #5527. This is the biggest patch, basically, that should enable most of the other patches in a relatively straightforward way.

Major changes:

- Do not track impls through trans, instead recompute as needed.
- Isolate trait matching code into its own module, carefully structure to distinguish various phases (selection vs confirmation vs fulfillment)
- Consider where clauses in their more general form
- Integrate checking of builtin bounds into the  trait matching process, rather than doing it separately in kind.rs (important for opt-in builtin bounds)

What is not included:

- Where clauses are still not generalized. This should be a straightforward follow-up patch.
- Caching. I did not include much caching. I have plans for various kinds of caching we can do. Should be straightforward. Preliminary perf measurements suggested that this branch keeps compilation times roughly what they are.
- Method resolution. The initial algorithm I proposed for #5527 does not work as well as I hoped. I have a revised plan which is much more similar to what we do today.
- Deref vs deref-mut. The initial fix I had worked great for autoderef, but not for explicit deref.
- Permitting blanket impls to overlap with specific impls. Initial plan to consider all nested obligations before considering an impl to match caused many compilation errors. We have a revised plan but it is not implemented here, should be a relatively straightforward extension.

9 years agoauto merge of #17245 : sfackler/rust/enumset-show, r=alexcrichton
bors [Tue, 16 Sep 2014 13:41:00 +0000 (13:41 +0000)]
auto merge of #17245 : sfackler/rust/enumset-show, r=alexcrichton

9 years agoauto merge of #17244 : spastorino/rust/patch-1, r=alexcrichton
bors [Tue, 16 Sep 2014 11:11:03 +0000 (11:11 +0000)]
auto merge of #17244 : spastorino/rust/patch-1, r=alexcrichton

9 years agoRename std::io::net::unix to std::io::net::pipe.
Jonas Hietala [Tue, 16 Sep 2014 08:10:56 +0000 (10:10 +0200)]
Rename std::io::net::unix to std::io::net::pipe.

Renamed as we may support pipes for other platforms.

Closes #12093

[breaking-change]

9 years agoauto merge of #17232 : untitaker/rust/patch-1, r=alexcrichton
bors [Tue, 16 Sep 2014 09:26:03 +0000 (09:26 +0000)]
auto merge of #17232 : untitaker/rust/patch-1, r=alexcrichton

The wording is correct if you consider that two of these lines were extracted from the original example. It still tripped me up while reading, so i just removed any reference to the linecount.

9 years agoCorrect windows install link in guide
Jake Kaufman [Tue, 16 Sep 2014 06:36:17 +0000 (23:36 -0700)]
Correct windows install link in guide

This closes #17260. The guide references the old install location for
the windows rust install before it was split into 64bit and 32bit
installers. This adds a link to each binary.

9 years agoauto merge of #17280 : thestinger/rust/heap, r=pcwalton
bors [Tue, 16 Sep 2014 04:56:01 +0000 (04:56 +0000)]
auto merge of #17280 : thestinger/rust/heap, r=pcwalton

9 years agostop spawning so many tasks in guide-tasks
Daniel Micay [Tue, 16 Sep 2014 04:45:29 +0000 (00:45 -0400)]
stop spawning so many tasks in guide-tasks

1000 tasks * 2MiB stack size -> 2GiB of virtual memory

On a 64-bit OS, a 32-bit executable has 4GiB available, but the kernel
gets half of the available address space so the limit is 2GiB on 32-bit.

Closes #17044

9 years agoauto merge of #17288 : alexcrichton/rust/change-snap, r=brson
bors [Tue, 16 Sep 2014 02:26:01 +0000 (02:26 +0000)]
auto merge of #17288 : alexcrichton/rust/change-snap, r=brson

I'm rotating in some CentOS 5.10 bots so we *actually* build on Linux 2.6.18
like we advertise doing so. Currently the snapshots are incompatible with CentOS
5.10 due to snapshots requiring glibc 2.6 and CentOS 5.10 having glibc 2.5.

It turns out that rustc only requires *one* symbol from glibc 2.6, which is
`futimens`. The rust distribution itself does not use this symbol, but LLVM
conditionally detects it and then uses it. This symbol isn't even called as part
of the compilation process, so we don't even need it!

The new snapshot was generated following these instructions [1]:

1. Download the current x86_64 linux snapshot and unpack it.
2. Open the rustc binary in a hex editor.
3. Change the linkage against glibc 2.6 from strong to *weak*
4. Write changes and re-run src/etc/make-snapshot.py
5. Upload new tarball to S3

On CentOS 5.10 a warning is printed each time the snapshot runs that the symbol
cannot be found (anyone with glibc 2.6+ does not have this warning printed). The
key part is that we can *bootstrap* on CentOS 5.10 at this point. The next
snapshot will be naturally compatible with glibc 2.3 (even older!) and will not
need to be manually edited.

[1]: http://jamesbond3142.no-ip.org/wiki/wiki.cgi/NewAppsOnOldGlibc

9 years agoChange the last linux 64-bit snapshot
Alex Crichton [Mon, 15 Sep 2014 18:17:00 +0000 (11:17 -0700)]
Change the last linux 64-bit snapshot

I'm rotating in some CentOS 5.10 bots so we *actually* build on Linux 2.6.18
like we advertise doing so. Currently the snapshots are incompatible with CentOS
5.10 due to snapshots requiring glibc 2.6 and CentOS 5.10 having glibc 2.5.

It turns out that rustc only requires *one* symbol from glibc 2.6, which is
`futimens`. The rust distribution itself does not use this symbol, but LLVM
conditionally detects it and then uses it. This symbol isn't even called as part
of the compilation process, so we don't even need it!

The new snapshot was generated following these instructions [1]:

1. Download the current x86_64 linux snapshot and unpack it.
2. Open the rustc binary in a hex editor.
3. Change the linkage against glibc 2.6 from strong to *weak*
4. Write changes and re-run src/etc/make-snapshot.py
5. Upload new tarball to S3

On CentOS 5.10 a warning is printed each time the snapshot runs that the symbol
cannot be found (anyone with glibc 2.6+ does not have this warning printed). The
key part is that we can *bootstrap* on CentOS 5.10 at this point. The next
snapshot will be naturally compatible with glibc 2.3 (even older!) and will not
need to be manually edited.

[1]: http://jamesbond3142.no-ip.org/wiki/wiki.cgi/NewAppsOnOldGlibc

9 years agomk: Update how the build deals with version labels. #16677
Brian Anderson [Mon, 15 Sep 2014 20:40:30 +0000 (13:40 -0700)]
mk: Update how the build deals with version labels. #16677

Adds a new configure flag, --release-channel, which determines how the version
number should be augmented with a release label, as well as how the distribution
artifacts will be named. This is entirely for use by the build automation.

--release-channel can be either 'source', 'nightly', 'beta', or 'stable'.

Here's a summary of the affect of these values on version number and
artifact naming, respectively:

* source - '0.12.0-pre', 'rust-0.12.0-pre-...'
* nightly - '0.12.0-nightly', 'rust-nightly-...'
* beta - '0.12.0-beta', 'rust-beta-...'
* stable - '0.12.0', 'rust-0.12.0-...'

Per http://discuss.rust-lang.org/t/rfc-impending-changes-to-the-release-process/508/1

9 years agoUpdate docs to include Sized trait, which is needed
Niko Matsakis [Mon, 15 Sep 2014 22:52:20 +0000 (18:52 -0400)]
Update docs to include Sized trait, which is needed

9 years agoremove the closure_exchange_malloc lang item
Daniel Micay [Mon, 15 Sep 2014 20:31:32 +0000 (16:31 -0400)]
remove the closure_exchange_malloc lang item

9 years agoauto merge of #17221 : bkoropoff/rust/strinterner-unsafe, r=sfackler
bors [Mon, 15 Sep 2014 21:56:00 +0000 (21:56 +0000)]
auto merge of #17221 : bkoropoff/rust/strinterner-unsafe, r=sfackler

The `StrInterner::clear()` method takes self immutably but can invalidate references returned by `StrInterner::get_ref`. Since `get_ref` is unused, just remove it.

Closes #17181

9 years agoadd missing semicolon to fix configure on darwin
Jonathan Boyett [Mon, 15 Sep 2014 21:08:04 +0000 (17:08 -0400)]
add missing semicolon to fix configure on darwin

9 years agoFix two typos
Martin Olsson [Sun, 7 Sep 2014 19:47:55 +0000 (21:47 +0200)]
Fix two typos

9 years agoheap: optimize EMPTY to avoid relocations
Daniel Micay [Mon, 15 Sep 2014 19:37:01 +0000 (15:37 -0400)]
heap: optimize EMPTY to avoid relocations

Sized deallocation makes it pointless to provide an address that never
overlaps with pointers returned by an allocator. Code can branch on the
capacity of the allocation instead of a comparison with this sentinel.

This improves the situation in #8859, and the remaining issues are only
from the logging API, which should be disabled by default in optimized
release builds anyway along with debug assertions. The remaining issues
are part of #17081.

Closes #8859

9 years agoAdd missing unused variable warnings for for loop bindings
Jakub Wieczorek [Mon, 15 Sep 2014 20:07:00 +0000 (22:07 +0200)]
Add missing unused variable warnings for for loop bindings

9 years agoheap: rm out-of-date FIXMEs
Daniel Micay [Mon, 15 Sep 2014 19:28:25 +0000 (15:28 -0400)]
heap: rm out-of-date FIXMEs

9 years agosilence various warnings in stdlib, no idea why they suddenly started
Niko Matsakis [Fri, 12 Sep 2014 16:10:13 +0000 (12:10 -0400)]
silence various warnings in stdlib, no idea why they suddenly started

9 years agoadd Send bound on impl because stricter trait checking requires it
Niko Matsakis [Fri, 12 Sep 2014 16:09:54 +0000 (12:09 -0400)]
add Send bound on impl because stricter trait checking requires it

9 years agomisc ppaux changes
Niko Matsakis [Fri, 12 Sep 2014 16:09:17 +0000 (12:09 -0400)]
misc ppaux changes

9 years agotypeck/kind -- stop using old trait framework.
Niko Matsakis [Fri, 12 Sep 2014 15:47:33 +0000 (11:47 -0400)]
typeck/kind -- stop using old trait framework.

- Unify the "well-formedness" checking that typeck was already doing with what
  was taking place in kind.
- Move requirements that things be sized into typeck.
- I left the checking on upvars in kind, though I think it should eventually be
  refactored into regionck (which would perhaps be renamed).

This reflects a general plan to convert typeck so that it registers
obligations or other pending things for conditions it cannot check
eventually. This makes it easier to identify all the conditions that
apply to an AST expression, but can also influence inference in somec
cases (e.g., `Send` implies `'static`, so I already had to promote a lot
of the checking that `kind.rs` was doing into typeck, this branch just
continues the process).