]> git.lizzy.rs Git - rust.git/log
rust.git
9 years agoRemove incorrect assert in trans
Brian Koropoff [Fri, 7 Nov 2014 04:40:32 +0000 (20:40 -0800)]
Remove incorrect assert in trans

As an optimization, once unboxed closures receive their environment by
value if it fits within the size of an `int`.  An assert in this code
path assumed that this would only occur if the environment had no more
than a single free variable in it, but multiple smaller free variables
can easily be packed into the space of an `int`, particularly if any
of them are 0-sized.  The assert can simply be removed.

Closes #18652

9 years agoauto merge of #18713 : juxiliary/rust/master, r=alexcrichton
bors [Fri, 7 Nov 2014 02:11:27 +0000 (02:11 +0000)]
auto merge of #18713 : juxiliary/rust/master, r=alexcrichton

* `from_str_radix_float` gives incorrect results for negative float strings. Changes the accumulator used to start at -0.0 instead of -1.0.
* Adds missing tests

9 years agoauto merge of #18719 : alexcrichton/rust/rollup, r=alexcrichton
bors [Fri, 7 Nov 2014 00:02:18 +0000 (00:02 +0000)]
auto merge of #18719 : alexcrichton/rust/rollup, r=alexcrichton

9 years agorollup merge of #18709 : alexcrichton/fix-windows
Alex Crichton [Thu, 6 Nov 2014 23:55:46 +0000 (15:55 -0800)]
rollup merge of #18709 : alexcrichton/fix-windows

9 years agofix EnumSet::is_subset
Alex Crichton [Thu, 6 Nov 2014 23:41:50 +0000 (15:41 -0800)]
fix EnumSet::is_subset

Fix by @Gankro!

9 years agoTest fixes and rebase conflicts
Alex Crichton [Thu, 6 Nov 2014 21:54:32 +0000 (13:54 -0800)]
Test fixes and rebase conflicts

9 years agorollup merge of #18625 : alexcrichton/no-more-rlibc
Alex Crichton [Thu, 6 Nov 2014 21:38:30 +0000 (13:38 -0800)]
rollup merge of #18625 : alexcrichton/no-more-rlibc

9 years agorollup merge of #18691 : subhashb/add_clone_trait_to_filetype
Alex Crichton [Thu, 6 Nov 2014 21:36:33 +0000 (13:36 -0800)]
rollup merge of #18691 : subhashb/add_clone_trait_to_filetype

9 years agorollup merge of #18654 : michaelwoerister/lldb-test-timeout
Alex Crichton [Thu, 6 Nov 2014 21:35:56 +0000 (13:35 -0800)]
rollup merge of #18654 : michaelwoerister/lldb-test-timeout

9 years agorollup merge of #18708 : qwitwa/master
Alex Crichton [Thu, 6 Nov 2014 21:33:00 +0000 (13:33 -0800)]
rollup merge of #18708 : qwitwa/master

9 years agorollup merge of #18707 : japaric/moar-dst
Alex Crichton [Thu, 6 Nov 2014 21:32:58 +0000 (13:32 -0800)]
rollup merge of #18707 : japaric/moar-dst

9 years agorollup merge of #18705 : fabricedesre/patch-1
Alex Crichton [Thu, 6 Nov 2014 21:32:56 +0000 (13:32 -0800)]
rollup merge of #18705 : fabricedesre/patch-1

9 years agorollup merge of #18696 : tshakah/patch-1
Alex Crichton [Thu, 6 Nov 2014 21:32:22 +0000 (13:32 -0800)]
rollup merge of #18696 : tshakah/patch-1

9 years agorollup merge of #18695 : steveklabnik/gh17023
Alex Crichton [Thu, 6 Nov 2014 21:32:20 +0000 (13:32 -0800)]
rollup merge of #18695 : steveklabnik/gh17023

9 years agorollup merge of #18684 : nathan7/patch-1
Alex Crichton [Thu, 6 Nov 2014 21:32:15 +0000 (13:32 -0800)]
rollup merge of #18684 : nathan7/patch-1

9 years agorollup merge of #18683 : thestinger/typo
Alex Crichton [Thu, 6 Nov 2014 21:32:13 +0000 (13:32 -0800)]
rollup merge of #18683 : thestinger/typo

9 years agorollup merge of #18679 : brson/lint-trait
Alex Crichton [Thu, 6 Nov 2014 21:32:11 +0000 (13:32 -0800)]
rollup merge of #18679 : brson/lint-trait

9 years agoRemove rlibc from the distribution
Alex Crichton [Tue, 4 Nov 2014 19:22:32 +0000 (11:22 -0800)]
Remove rlibc from the distribution

To make progress on #18585 we're paring down the distribution to theoretically
"only libstd", and this commit makes progress on this by removing the rlibc
crate from the distribution.

The crate has now been moved into an external cargo package located in the rust
lang organization [1]. This is a breaking change due to this removal, and
existing crates depending on `rlibc` should use the Cargo crate instead.

[1]: https://github.com/rust-lang/rlibc

[breaking-change]
cc #18585

9 years agorollup merge of #18665 : scribu/patch-1
Alex Crichton [Thu, 6 Nov 2014 21:32:01 +0000 (13:32 -0800)]
rollup merge of #18665 : scribu/patch-1

9 years agorollup merge of #18664 : klutzy/getrandom
Alex Crichton [Thu, 6 Nov 2014 21:31:58 +0000 (13:31 -0800)]
rollup merge of #18664 : klutzy/getrandom

9 years agorollup merge of #18656 : thiagopnts/rename-deprecated-non_uppercase_statics
Alex Crichton [Thu, 6 Nov 2014 21:31:54 +0000 (13:31 -0800)]
rollup merge of #18656 : thiagopnts/rename-deprecated-non_uppercase_statics

9 years agorollup merge of #18647 : jbcrail/rename-dragonfly
Alex Crichton [Thu, 6 Nov 2014 21:31:52 +0000 (13:31 -0800)]
rollup merge of #18647 : jbcrail/rename-dragonfly

9 years agorollup merge of #18644 : luqmana/pefc
Alex Crichton [Thu, 6 Nov 2014 21:31:48 +0000 (13:31 -0800)]
rollup merge of #18644 : luqmana/pefc

9 years agorollup merge of #18636 : luqmana/armf
Alex Crichton [Thu, 6 Nov 2014 21:31:35 +0000 (13:31 -0800)]
rollup merge of #18636 : luqmana/armf

9 years agorollup merge of #18633 : huonw/target-spec-spelling
Alex Crichton [Thu, 6 Nov 2014 21:31:32 +0000 (13:31 -0800)]
rollup merge of #18633 : huonw/target-spec-spelling

9 years agorollup merge of #18630 : nikomatsakis/purge-the-bars
Alex Crichton [Thu, 6 Nov 2014 21:31:18 +0000 (13:31 -0800)]
rollup merge of #18630 : nikomatsakis/purge-the-bars

9 years agorollup merge of #18628 : aturon/fixup-error-comment
Alex Crichton [Thu, 6 Nov 2014 21:31:03 +0000 (13:31 -0800)]
rollup merge of #18628 : aturon/fixup-error-comment

9 years agorollup merge of #18615 : huonw/simd
Alex Crichton [Thu, 6 Nov 2014 21:30:41 +0000 (13:30 -0800)]
rollup merge of #18615 : huonw/simd

9 years agorollup merge of #18591 : nick29581/dst-bug-str
Alex Crichton [Thu, 6 Nov 2014 21:30:37 +0000 (13:30 -0800)]
rollup merge of #18591 : nick29581/dst-bug-str

9 years agorollup merge of #18555 : jakub-/e-needstest
Alex Crichton [Thu, 6 Nov 2014 21:30:16 +0000 (13:30 -0800)]
rollup merge of #18555 : jakub-/e-needstest

9 years agorollup merge of #18373 : steveklabnik/gh18288
Alex Crichton [Thu, 6 Nov 2014 21:30:10 +0000 (13:30 -0800)]
rollup merge of #18373 : steveklabnik/gh18288

9 years agorollup merge of #18605 : Gankro/collect-fruit
Alex Crichton [Thu, 6 Nov 2014 21:29:31 +0000 (13:29 -0800)]
rollup merge of #18605 : Gankro/collect-fruit

9 years agoFixing #18659
juxiliary [Thu, 6 Nov 2014 10:25:13 +0000 (20:25 +1000)]
Fixing #18659

Changes the radix multiplier to start at -0.0 instead of -1.0
when reading strings that start with '-'.

9 years agomk: Add -C prefer-dynamic to stage3 libs
Alex Crichton [Thu, 6 Nov 2014 19:29:49 +0000 (11:29 -0800)]
mk: Add -C prefer-dynamic to stage3 libs

Right now the windows nightlies are failing because they're encountering a
linker error when producing stage3 libs. The stage3 libs aren't actually used in
general, and we primarily just want to generate a static stage3 binary, not
static stage3 dylibs.

9 years ago14.3 - helpfully implied code sample is broken
qwitwa [Thu, 6 Nov 2014 19:25:00 +0000 (19:25 +0000)]
14.3 - helpfully implied code sample is broken

As a new user, I spent a while confused when flycheck told me the code sample I'd typed in was invalid. I ended up figuring out some of what comes after the code sample more painfully by myself because there was no indication that it was broken in the text beforehand. This one line change makes it clear that the code following it is an experiment that may not work rather than something to assume just works.

9 years agoAdd tests
Jorge Aparicio [Thu, 6 Nov 2014 16:49:08 +0000 (11:49 -0500)]
Add tests

9 years agoImplement Default for Box<[T]>
Jorge Aparicio [Thu, 6 Nov 2014 17:52:45 +0000 (12:52 -0500)]
Implement Default for Box<[T]>

9 years agoDTSify libserialize traits
Jorge Aparicio [Thu, 6 Nov 2014 16:25:09 +0000 (11:25 -0500)]
DTSify libserialize traits

- ToBase64
- FromBase64
- ToHex
- FromHex
- ToJson
- Encodable

9 years agolink to raw string docs in libregex docs
Steve Klabnik [Thu, 6 Nov 2014 15:19:53 +0000 (10:19 -0500)]
link to raw string docs in libregex docs

Fixes #17023

9 years agoFix a couple of build warnings
Fabrice Desré [Thu, 6 Nov 2014 17:37:54 +0000 (09:37 -0800)]
Fix a couple of build warnings

9 years agoFallout from collection conventions
Alexis Beingessner [Thu, 6 Nov 2014 17:25:16 +0000 (12:25 -0500)]
Fallout from collection conventions

9 years agoImplement low-hanging fruit of collection conventions
Alexis Beingessner [Thu, 6 Nov 2014 17:24:47 +0000 (12:24 -0500)]
Implement low-hanging fruit of collection conventions

* Renames/deprecates the simplest and most obvious methods
* Adds FIXME(conventions)s for outstanding work
* Marks "handled" methods as unstable

NOTE: the semantics of reserve and reserve_exact have changed!
Other methods have had their semantics changed as well, but in a
way that should obviously not typecheck if used incorrectly.

Lots of work and breakage to come, but this handles most of the core
APIs and most eggregious breakage. Future changes should *mostly* focus on
niche collections, APIs, or simply back-compat additions.

[breaking-change]

9 years agoauto merge of #18559 : aturon/rust/prelude_cleanup, r=alexcrichton
bors [Thu, 6 Nov 2014 16:52:09 +0000 (16:52 +0000)]
auto merge of #18559 : aturon/rust/prelude_cleanup, r=alexcrichton

This commit renames a number of extension traits for slices and string slices, now that they have been refactored for DST. In many cases, multiple extension traits could now be consolidated. Further consolidation will be possible with generalized where clauses.

The renamings are consistent with the [new `-Prelude` suffix](https://github.com/rust-lang/rfcs/pull/344). There are probably a few more candidates for being renamed this way, but that is left for API stabilization of the relevant modules.

Because this renames traits, it is a:

[breaking-change]

However, I do not expect any code that currently uses the standard library to actually break.

Closes #17917

9 years agoPrelude: rename and consolidate extension traits
Aaron Turon [Mon, 3 Nov 2014 01:04:32 +0000 (17:04 -0800)]
Prelude: rename and consolidate extension traits

This commit renames a number of extension traits for slices and string
slices, now that they have been refactored for DST. In many cases,
multiple extension traits could now be consolidated. Further
consolidation will be possible with generalized where clauses.

The renamings are consistent with the [new `-Prelude`
suffix](https://github.com/rust-lang/rfcs/pull/344). There are probably
a few more candidates for being renamed this way, but that is left for
API stabilization of the relevant modules.

Because this renames traits, it is a:

[breaking-change]

However, I do not expect any code that currently uses the standard
library to actually break.

Closes #17917

9 years agoUpdate guide.md
tshakah [Thu, 6 Nov 2014 15:19:00 +0000 (15:19 +0000)]
Update guide.md

Corrected singular/plural reference to enums

9 years agoexpand description of the link attribute
Steve Klabnik [Mon, 27 Oct 2014 18:28:04 +0000 (14:28 -0400)]
expand description of the link attribute

Fixes #18288

9 years agoauto merge of #18608 : alexcrichton/rust/lint-some-crates, r=aturon
bors [Thu, 6 Nov 2014 14:06:59 +0000 (14:06 +0000)]
auto merge of #18608 : alexcrichton/rust/lint-some-crates, r=aturon

This commit adds support for linting `extern crate` statements for stability
attributes attached to the crate itself. This is likely to be the mechanism used
to deny access to experimental crates that are part of the standard
distribution.

cc #18585

r? @aturon

9 years agoMake Filetype Clonable
Subhash Bhushan [Tue, 4 Nov 2014 18:50:05 +0000 (00:20 +0530)]
Make Filetype Clonable

9 years agostd::rand::OsRng: Use `getrandom` syscall on Linux
klutzy [Wed, 5 Nov 2014 18:53:27 +0000 (03:53 +0900)]
std::rand::OsRng: Use `getrandom` syscall on Linux

`getrandom(2)` system call [1] has been added on Linux 3.17.
This patch makes `OsRng` use `getrandom` if available, and use
traditional `/dev/urandom` fallback if not.

[1]:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c6e9d6f38894798696f23c8084ca7edbf16ee895

9 years agoRemove the unboxed closure `|:|` notation from types and trait references completely.
Niko Matsakis [Tue, 4 Nov 2014 21:25:15 +0000 (16:25 -0500)]
Remove the unboxed closure `|:|` notation from types and trait references completely.

9 years agoSupport parenthesized paths `Foo(A,B) -> C` that expand to `Foo<(A,B),C>`. These...
Niko Matsakis [Tue, 4 Nov 2014 02:52:52 +0000 (21:52 -0500)]
Support parenthesized paths `Foo(A,B) -> C` that expand to `Foo<(A,B),C>`. These paths also bind anonymous regions (or will, once HRTB is fully working).

Fixes #18423.

9 years agoRestructure parsing of paths, which is quite tortured
Niko Matsakis [Wed, 29 Oct 2014 22:03:40 +0000 (18:03 -0400)]
Restructure parsing of paths, which is quite tortured

9 years agoauto merge of #18467 : japaric/rust/eq, r=alexcrichton
bors [Thu, 6 Nov 2014 08:06:50 +0000 (08:06 +0000)]
auto merge of #18467 : japaric/rust/eq, r=alexcrichton

`eq`, `ne`, `cmp`, etc methods now require one less level of indirection when dealing with `&str`/`&[T]`

``` rust
"foo".ne(&"bar") -> "foo".ne("bar")
slice.cmp(&another_slice) -> slice.cmp(another_slice)
// slice and another_slice have type `&[T]`
```

[breaking-change]

9 years agoMake x86_64-unknown-linux-gnu.json true to its name
Nathan Zadoks [Thu, 6 Nov 2014 05:37:40 +0000 (06:37 +0100)]
Make x86_64-unknown-linux-gnu.json true to its name

9 years agofix typo in librustc target spec
Daniel Micay [Thu, 6 Nov 2014 05:17:56 +0000 (00:17 -0500)]
fix typo in librustc target spec

9 years agoauto merge of #18388 : nikomatsakis/rust/fn-trait-hierarchy, r=acrichto
bors [Thu, 6 Nov 2014 04:21:49 +0000 (04:21 +0000)]
auto merge of #18388 : nikomatsakis/rust/fn-trait-hierarchy, r=acrichto

Add blanket impls to allow the various `Fn` traits to be interconverted.

Fixes #18387.

9 years agoCorrect tests that were supposed to fail but now pass due to the fn trait hierarchy.
Niko Matsakis [Mon, 3 Nov 2014 19:48:17 +0000 (14:48 -0500)]
Correct tests that were supposed to fail but now pass due to the fn trait hierarchy.

9 years agoPartial fix for #17901: Be less conservative around unbound type
Niko Matsakis [Mon, 3 Nov 2014 19:48:03 +0000 (14:48 -0500)]
Partial fix for #17901: Be less conservative around unbound type
variables in the intracrate case. This requires a deeper distinction
between inter- and intra-crate so as to keep coherence working.

I suspect the best fix is to generalize the recursion check that
exists today, but this requires a bit more refactoring to achieve.

(In other words, where today it says OK for an exact match, we'd want
to not detect exact matches but rather skolemize each trait-reference
fresh and return AMBIG -- but that requires us to make builtin bounds
work shallowly like everything else and move the cycle detection into
the fulfillment context.)

9 years agoReverse order of lookup
Niko Matsakis [Mon, 3 Nov 2014 17:36:48 +0000 (12:36 -0500)]
Reverse order of lookup

9 years agoAdd blanket impls to allow the various `Fn` traits to be interconverted.
Niko Matsakis [Tue, 28 Oct 2014 11:24:25 +0000 (07:24 -0400)]
Add blanket impls to allow the various `Fn` traits to be interconverted.

Fixes #18387.

9 years agorustc: Add some more checks to the stability lint
Brian Anderson [Wed, 5 Nov 2014 23:49:37 +0000 (15:49 -0800)]
rustc: Add some more checks to the stability lint

This catches uses of unstable traits in

```
trait Foo: UnstableTrait { }
```

and

```
impl UnstableTrait for Foo { }
```

9 years agoFix tests
Jorge Aparicio [Mon, 3 Nov 2014 19:55:19 +0000 (14:55 -0500)]
Fix tests

9 years agoAdd test for the first half of issue #15689
Jorge Aparicio [Mon, 3 Nov 2014 14:42:17 +0000 (09:42 -0500)]
Add test for the first half of issue #15689

cc #15689

9 years agoDSTify Box<T> implementation of PartialEq, PartialOrd, Eq, Ord
Jorge Aparicio [Thu, 30 Oct 2014 20:33:47 +0000 (15:33 -0500)]
DSTify Box<T> implementation of PartialEq, PartialOrd, Eq, Ord

9 years agoFix fallout of DSTifying PartialEq, PartialOrd, Eq, Ord
Jorge Aparicio [Thu, 30 Oct 2014 01:21:37 +0000 (20:21 -0500)]
Fix fallout of DSTifying PartialEq, PartialOrd, Eq, Ord

9 years agoDSTify PartialEq, PartialOrd, Eq, Ord
Jorge Aparicio [Thu, 30 Oct 2014 01:11:16 +0000 (20:11 -0500)]
DSTify PartialEq, PartialOrd, Eq, Ord

9 years agoFix fallout of changing the expansion of `#[deriving(PartialEq)]`
Jorge Aparicio [Wed, 29 Oct 2014 23:48:20 +0000 (18:48 -0500)]
Fix fallout of changing the expansion of `#[deriving(PartialEq)]`

9 years agoUse operator sugar in the expansion of `#[deriving(PartialEq)]`
Jorge Aparicio [Wed, 29 Oct 2014 23:31:41 +0000 (18:31 -0500)]
Use operator sugar in the expansion of `#[deriving(PartialEq)]`

9 years agoauto merge of #18486 : nikomatsakis/rust/operator-dispatch, r=pcwalton
bors [Wed, 5 Nov 2014 22:31:44 +0000 (22:31 +0000)]
auto merge of #18486 : nikomatsakis/rust/operator-dispatch, r=pcwalton

This branch cleans up overloaded operator resolution so that it is strictly based on the traits in `ops`, rather than going through the normal method lookup mechanism. It also adds full support for autoderef to overloaded index (whereas before autoderef only worked for non-overloaded index) as well as for the slicing operators.

This is a [breaking-change]: in the past, we were accepting combinations of operands that were not intended to be accepted. For example, it was possible to compare a fixed-length array and a slice, or apply the `!` operator to a `&int`. See the first two commits in this pull-request for examples.

One downside of this change is that comparing fixed-length arrays doesn't always work as smoothly as it did before. Before this, comparisons sometimes worked due to various coercions to slices. I've added impls for `Eq`, `Ord`, etc for fixed-lengths arrays up to and including length 32, but if the array is longer than that you'll need to either newtype the array or convert to slices. Note that this plays better with deriving in any case than the previous scheme.

Fixes #4920.
Fixes #16821.
Fixes #15757.

cc @alexcrichton
cc @aturon

9 years agoFix example in HashMap::new() docs
Cristi Burcă [Wed, 5 Nov 2014 20:11:52 +0000 (22:11 +0200)]
Fix example in HashMap::new() docs

9 years agoauto merge of #18462 : netvl/rust/to-socket-addr, r=alexcrichton
bors [Wed, 5 Nov 2014 18:01:53 +0000 (18:01 +0000)]
auto merge of #18462 : netvl/rust/to-socket-addr, r=alexcrichton

This is a follow-up to [RFC PR #173](https://github.com/rust-lang/rfcs/pull/173). I was told there that changes like this don't need to go through the RFC process, so I'm submitting this directly.

This PR introduces `ToSocketAddr` trait as defined in said RFC. This trait defines a conversion from different types like `&str`, `(&str, u16)` or even `SocketAddr` to `SocketAddr`. Then this trait is used in all constructor methods for `TcpStream`, `TcpListener` and `UdpSocket`.

This unifies these constructor methods - previously they were using different types of input parameters (TCP ones used `(&str, u16)` pair while UDP ones used `SocketAddr`), which is not consistent by itself and sometimes inconvenient - for example, when the address initially is available as `SocketAddr`, you still need to convert it to string to pass it to e.g. `TcpStream`. This is very prominently demonstrated by the unit tests for TCP functionality. This PR makes working with network objects much like with `Path`, which also uses similar trait to be able to be constructed from `&[u8]`, `Vec<u8>` and other `Path`s.

This is a breaking change. If constant literals were used before, like this:
```rust
TcpStream::connect("localhost", 12345)
```
then the nicest fix is to change it to this:
```rust
TcpStream::connect("localhost:12345")
```

If variables were used before, like this:
```rust
TcpStream::connect(some_address, some_port)
```
then the arguments should be wrapped in another set of parentheses:
```rust
TcpStream::connect((some_address, some_port))
```

`UdpSocket` usages won't break because its constructor method accepted `SocketAddr` which implements `ToSocketAddr`, so `bind()` calls:
```rust
UdpSocket::bind(some_socket_addr)
```
will continue working as before.

I haven't changed `UdpStream` constructor because it is deprecated anyway.

9 years agodebuginfo: Add a timeout for LLDB tests.
Michael Woerister [Wed, 5 Nov 2014 10:44:46 +0000 (11:44 +0100)]
debuginfo: Add a timeout for LLDB tests.

Fixes #18649.

9 years agoBetter debug printouts
Niko Matsakis [Wed, 5 Nov 2014 10:36:53 +0000 (05:36 -0500)]
Better debug printouts

9 years agoRemove incorrect doc annotation, mark experimental since we haven't discussed in...
Niko Matsakis [Mon, 3 Nov 2014 02:00:23 +0000 (21:00 -0500)]
Remove incorrect doc annotation, mark experimental since we haven't discussed in an API meeting

9 years agoUpdate the guide examples and try not to leave user hanging as to what
Niko Matsakis [Sat, 1 Nov 2014 01:42:35 +0000 (21:42 -0400)]
Update the guide examples and try not to leave user hanging as to what
this `&x` sigil is all about.

9 years agoImplement new operator dispatch semantics.
Niko Matsakis [Fri, 31 Oct 2014 09:44:10 +0000 (05:44 -0400)]
Implement new operator dispatch semantics.

Key points are:
1. `a + b` maps directly to `Add<A,B>`, where `A` and `B` are the types of `a` and `b`.
2. Indexing and slicing autoderefs consistently.

9 years agoFixed not compiling code in docstring
Vladimir Matveev [Wed, 5 Nov 2014 16:18:30 +0000 (19:18 +0300)]
Fixed not compiling code in docstring

9 years agoAdd missing dragonfly module.
Joseph Crail [Wed, 5 Nov 2014 15:36:09 +0000 (10:36 -0500)]
Add missing dragonfly module.

9 years agoRename misspelled module reference.
Joseph Crail [Wed, 5 Nov 2014 04:18:30 +0000 (23:18 -0500)]
Rename misspelled module reference.

9 years agoAdd impls of the comparison operators for fixed-length arrays of lengths 0...32 and...
Niko Matsakis [Fri, 31 Oct 2014 09:41:25 +0000 (05:41 -0400)]
Add impls of the comparison operators for fixed-length arrays of lengths 0...32 and repair various cases where slices and fixed-length arrays were being compared.

9 years agoRepair various cases where values of distinct types were being operated
Niko Matsakis [Fri, 31 Oct 2014 09:40:15 +0000 (05:40 -0400)]
Repair various cases where values of distinct types were being operated
upon (e.g., `&int` added to `int`).

9 years agorename deprecated non_uppercase_statics to non_upper_case_globals
thiagopnts [Wed, 5 Nov 2014 14:04:26 +0000 (12:04 -0200)]
rename deprecated non_uppercase_statics to non_upper_case_globals

9 years agodebuginfo: Add timeout before running executable in LLDB tests.
Michael Woerister [Wed, 5 Nov 2014 09:54:16 +0000 (10:54 +0100)]
debuginfo: Add timeout before running executable in LLDB tests.

This should help with a potential race condition.

9 years agodebuginfo: Make LLDB test make targets dependent on lldb python scripts.
Michael Woerister [Wed, 5 Nov 2014 09:53:07 +0000 (10:53 +0100)]
debuginfo: Make LLDB test make targets dependent on lldb python scripts.

9 years agoauto merge of #18646 : eddyb/rust/snapshots, r=alexcrichton
bors [Wed, 5 Nov 2014 12:26:34 +0000 (12:26 +0000)]
auto merge of #18646 : eddyb/rust/snapshots, r=alexcrichton

9 years agoRegister snapshots.
Eduard Burtescu [Sat, 1 Nov 2014 17:51:16 +0000 (19:51 +0200)]
Register snapshots.

9 years agoauto merge of #18546 : bkoropoff/rust/unboxed-closures-cross-crate, r=nick29581
bors [Wed, 5 Nov 2014 10:21:38 +0000 (10:21 +0000)]
auto merge of #18546 : bkoropoff/rust/unboxed-closures-cross-crate, r=nick29581

This fixes some metadata/AST encoding problems that lead to ICEs.  The way this is currently handled will need revisiting if abstract return types are added, as unboxed closure types from extern crates could show up without being inlined into the local crate.

Closes #16790 (I think this was fixed earlier by accident and just needed a test case)
Closes #18378
Closes #18543

r? @pcwalton

9 years agoAdded more documentation on ToSocketAddr trait
Vladimir Matveev [Tue, 4 Nov 2014 10:05:12 +0000 (13:05 +0300)]
Added more documentation on ToSocketAddr trait

9 years agoFixed tidy errors
Vladimir Matveev [Fri, 31 Oct 2014 08:09:09 +0000 (11:09 +0300)]
Fixed tidy errors

9 years agoFixed other tests to pass make check
Vladimir Matveev [Thu, 30 Oct 2014 20:22:40 +0000 (23:22 +0300)]
Fixed other tests to pass make check

9 years agoMigrated io::net::udp over to ToSocketAddr
Vladimir Matveev [Wed, 29 Oct 2014 19:59:43 +0000 (22:59 +0300)]
Migrated io::net::udp over to ToSocketAddr

UdpSocket constructor methods now use ToSocketAddr trait instead of
SocketAddr.

[breaking-change]

9 years agoSwitched io::net::tcp to use ToSocketAddr
Vladimir Matveev [Wed, 22 Oct 2014 19:00:47 +0000 (23:00 +0400)]
Switched io::net::tcp to use ToSocketAddr

TcpListener and TcpStream are converted to use ToSocketAddr trait in
their constructor methods.

[breaking-change]

9 years agoAdded ToSocketAddr trait
Vladimir Matveev [Sun, 19 Oct 2014 19:02:21 +0000 (23:02 +0400)]
Added ToSocketAddr trait

This commit adds ToSocketAddr trait to std::io::net::ip module. This
trait is used for generic conversion from different types (strings,
(string, u16) tuples, etc.) into a SocketAddr instance. It supports
multiple output SocketAddresses when it is appropriate (e.g. DNS name
resolution).

This trait is going to be used by TcpStream, TcpListener and UdpSocket
structures.

9 years agoauto merge of #18592 : alexcrichton/rust/dylib-harder, r=pcwalton
bors [Wed, 5 Nov 2014 07:01:38 +0000 (07:01 +0000)]
auto merge of #18592 : alexcrichton/rust/dylib-harder, r=pcwalton

If a dylib is being produced, the compiler will now first check to see if it can
be created entirely statically before falling back to dynamic dependencies. This
behavior can be overridden with `-C prefer-dynamic`.

Due to the alteration in behavior, this is a breaking change. Any previous users
relying on dylibs implicitly maximizing dynamic dependencies should start
passing `-C prefer-dynamic` to compilations.

Closes #18499
[breaking-change]

9 years agoTest
Nick Cameron [Mon, 3 Nov 2014 22:52:57 +0000 (11:52 +1300)]
Test

9 years agoMake trans::adt know that some structs are unsized
Nick Cameron [Mon, 3 Nov 2014 22:37:18 +0000 (11:37 +1300)]
Make trans::adt know that some structs are unsized

9 years agolibrustc: Call return_type only for functions.
Luqman Aden [Wed, 5 Nov 2014 03:31:20 +0000 (22:31 -0500)]
librustc: Call return_type only for functions.

9 years agoauto merge of #18504 : pcwalton/rust/small-escapes, r=pcwalton
bors [Wed, 5 Nov 2014 03:31:33 +0000 (03:31 +0000)]
auto merge of #18504 : pcwalton/rust/small-escapes, r=pcwalton

Use `\u0080`-`\u00ff` instead. ASCII/byte literals are unaffected.

This PR introduces a new function, `escape_default`, into the ASCII
module. This was necessary for the pretty printer to continue to
function.

RFC #326.

Closes #18062.

[breaking-change]

r? @aturon

9 years agolibrustc_back: Fix triple for linux armhf.
Luqman Aden [Tue, 4 Nov 2014 23:13:37 +0000 (18:13 -0500)]
librustc_back: Fix triple for linux armhf.

9 years agolibsyntax: Forbid escapes in the inclusive range `\x80`-`\xff` in
Patrick Walton [Mon, 27 Oct 2014 16:13:51 +0000 (09:13 -0700)]
libsyntax: Forbid escapes in the inclusive range `\x80`-`\xff` in
Unicode characters and strings.

Use `\u0080`-`\u00ff` instead. ASCII/byte literals are unaffected.

This PR introduces a new function, `escape_default`, into the ASCII
module. This was necessary for the pretty printer to continue to
function.

RFC #326.

Closes #18062.

[breaking-change]