]> git.lizzy.rs Git - rust.git/log
rust.git
9 years agoAdd test for #10618 and #16382
Piotr Jawniak [Sat, 23 Aug 2014 10:31:48 +0000 (12:31 +0200)]
Add test for #10618 and #16382

Closes #10618
Closes #16382

9 years agoauto merge of #16499 : cmr/rust/struct-undef-repr, r=pcwalton
bors [Thu, 21 Aug 2014 17:30:57 +0000 (17:30 +0000)]
auto merge of #16499 : cmr/rust/struct-undef-repr, r=pcwalton

r? @pcwalton

9 years agoFix FFI guide
Corey Richardson [Thu, 21 Aug 2014 16:58:42 +0000 (12:58 -0400)]
Fix FFI guide

9 years agoauto merge of #16632 : pcwalton/rust/unboxed-closures-euv, r=luqmana
bors [Thu, 21 Aug 2014 14:40:57 +0000 (14:40 +0000)]
auto merge of #16632 : pcwalton/rust/unboxed-closures-euv, r=luqmana

expression use visitor.

Closes #16166.

r? @huonw

9 years agoauto merge of #16631 : pcwalton/rust/unboxed-closures-wrong-trait, r=huonw
bors [Thu, 21 Aug 2014 12:55:54 +0000 (12:55 +0000)]
auto merge of #16631 : pcwalton/rust/unboxed-closures-wrong-trait, r=huonw

the right trait and take the method name into account.

Closes #16599.

r? @huonw

9 years agoauto merge of #16487 : steveklabnik/rust/guide_ownership, r=brson
bors [Thu, 21 Aug 2014 09:55:54 +0000 (09:55 +0000)]
auto merge of #16487 : steveklabnik/rust/guide_ownership, r=brson

Whew. This section was so important, I saved it for last.

/cc @wycats, @nikomatsakis

9 years agoauto merge of #16362 : nham/rust/std_rand_pi_example, r=huonw
bors [Thu, 21 Aug 2014 07:50:55 +0000 (07:50 +0000)]
auto merge of #16362 : nham/rust/std_rand_pi_example, r=huonw

Pros:
I like this example because it's concise without being trivial. The Monty Hall example code is somewhat lengthy and possibly inaccessible to those unfamiliar with probability.

Cons:
The Monty Hall example already exists. Do we need another example? Also, this is probably inaccessible to people who don't know basic geometry.

9 years agoUse unicode pi symbol in pi estimation example. Additional tweaks
nham [Thu, 21 Aug 2014 06:42:15 +0000 (02:42 -0400)]
Use unicode pi symbol in pi estimation example. Additional tweaks

9 years agoSurround formula in a 'notrust' code block
nham [Thu, 21 Aug 2014 06:08:17 +0000 (02:08 -0400)]
Surround formula in a 'notrust' code block

9 years agoauto merge of #16471 : EduardoBautista/rust/chapter-14-fixes, r=steveklabnik
bors [Thu, 21 Aug 2014 06:05:58 +0000 (06:05 +0000)]
auto merge of #16471 : EduardoBautista/rust/chapter-14-fixes, r=steveklabnik

Just some small fixes for the guide.  The cargo stuff is probably because of an update.

9 years agoauto merge of #16447 : steveklabnik/rust/guide_vectors_extra, r=brson
bors [Thu, 21 Aug 2014 04:20:57 +0000 (04:20 +0000)]
auto merge of #16447 : steveklabnik/rust/guide_vectors_extra, r=brson

Can't believe I forgot this!

9 years agoauto merge of #16443 : steveklabnik/rust/fix_path_docs, r=kballard
bors [Thu, 21 Aug 2014 02:36:00 +0000 (02:36 +0000)]
auto merge of #16443 : steveklabnik/rust/fix_path_docs, r=kballard

Originally discovered here: http://www.reddit.com/r/rust/comments/2dbg3j/hm_unwrap_is_being_renamed_to_assert/cjnxiax

9 years agoStage #[repr(packed)] in std::rt
Corey Richardson [Fri, 15 Aug 2014 05:47:28 +0000 (01:47 -0400)]
Stage #[repr(packed)] in std::rt

9 years agolibgreen: use FFI-safe types
Corey Richardson [Thu, 14 Aug 2014 19:49:26 +0000 (15:49 -0400)]
libgreen: use FFI-safe types

9 years agoliblibc: don't use int/uint for intptr_t/uintptr_t
Corey Richardson [Thu, 14 Aug 2014 19:18:14 +0000 (15:18 -0400)]
liblibc: don't use int/uint for intptr_t/uintptr_t

int/uint aren't considered FFI safe, replace them with the actual type they
represent (i64/u64 or i32/u32). This is a breaking change, but at most a cast
to `uint` or `int` needs to be added.

[breaking-change]

9 years agoAdd detailed note about Substs to ty_enum
Corey Richardson [Wed, 9 Jul 2014 13:11:47 +0000 (06:11 -0700)]
Add detailed note about Substs to ty_enum

9 years agomanual: fix link
Corey Richardson [Thu, 29 May 2014 19:41:58 +0000 (12:41 -0700)]
manual: fix link

9 years agoAdd #[repr(C)] to all the things!
Corey Richardson [Wed, 28 May 2014 01:37:49 +0000 (18:37 -0700)]
Add #[repr(C)] to all the things!

9 years agolibrustc: handle repr on structs, require it for ffi, unify with packed
Corey Richardson [Tue, 27 May 2014 06:56:52 +0000 (23:56 -0700)]
librustc: handle repr on structs, require it for ffi, unify with packed

As of RFC 18, struct layout is undefined. Opting into a C-compatible struct
layout is now down with #[repr(C)]. For consistency, specifying a packed
layout is now also down with #[repr(packed)]. Both can be specified.

To fix errors caused by this, just add #[repr(C)] to the structs, and change
 #[packed] to #[repr(packed)]

Closes #14309

[breaking-change]

9 years agoauto merge of #16331 : steveklabnik/rust/guide_macros_and_unsafe, r=brson
bors [Thu, 21 Aug 2014 00:51:00 +0000 (00:51 +0000)]
auto merge of #16331 : steveklabnik/rust/guide_macros_and_unsafe, r=brson

The last two sections of the guide, and a small conclusion. I suck at conclusions.

I also realized I never covered strings, so I'm going to put that section up before we're actually 'done.'

9 years agodocs: don't claim struct layout is specified, but mention repr
Corey Richardson [Mon, 26 May 2014 02:57:17 +0000 (19:57 -0700)]
docs: don't claim struct layout is specified, but mention repr

9 years agoauto merge of #16280 : cburgdorf/rust/patch-3, r=steveklabnik
bors [Wed, 20 Aug 2014 23:06:02 +0000 (23:06 +0000)]
auto merge of #16280 : cburgdorf/rust/patch-3, r=steveklabnik

9 years agoGuide: unsafe
Steve Klabnik [Thu, 7 Aug 2014 22:17:57 +0000 (18:17 -0400)]
Guide: unsafe

9 years agoFix error message for WindowsPath::new
Steve Klabnik [Tue, 12 Aug 2014 10:36:40 +0000 (06:36 -0400)]
Fix error message for WindowsPath::new

Originally discovered here: http://www.reddit.com/r/rust/comments/2dbg3j/hm_unwrap_is_being_renamed_to_assert/cjnxiax

9 years agofixes some syntax highlighting annotations
Christoph Burgdorf [Wed, 20 Aug 2014 21:21:01 +0000 (23:21 +0200)]
fixes some syntax highlighting annotations

9 years agolibrustc: Fix bogus logic for static calls to unboxed closures in the
Patrick Walton [Wed, 20 Aug 2014 16:12:16 +0000 (09:12 -0700)]
librustc: Fix bogus logic for static calls to unboxed closures in the
expression use visitor.

Closes #16166.

9 years agoGuide: macros
Steve Klabnik [Thu, 7 Aug 2014 19:19:46 +0000 (15:19 -0400)]
Guide: macros

9 years agoauto merge of #16408 : steveklabnik/rust/guide_iterators, r=brson
bors [Wed, 20 Aug 2014 18:15:53 +0000 (18:15 +0000)]
auto merge of #16408 : steveklabnik/rust/guide_iterators, r=brson

An introduction to iterators. I kinda like this, but I kinda don't. Hmmm.

9 years agolibrustc: When checking static method calls to unboxed closures, look at
Patrick Walton [Wed, 20 Aug 2014 16:12:16 +0000 (09:12 -0700)]
librustc: When checking static method calls to unboxed closures, look at
the right trait and take the method name into account.

Closes #16599.

9 years agoauto merge of #16257 : steveklabnik/rust/guide_patterns, r=brson
bors [Wed, 20 Aug 2014 16:25:53 +0000 (16:25 +0000)]
auto merge of #16257 : steveklabnik/rust/guide_patterns, r=brson

Fixes #4417.

9 years agoauto merge of #16621 : tshepang/rust/grammar, r=steveklabnik
bors [Wed, 20 Aug 2014 13:55:52 +0000 (13:55 +0000)]
auto merge of #16621 : tshepang/rust/grammar, r=steveklabnik

9 years agoauto merge of #16620 : tshepang/rust/tasks, r=steveklabnik
bors [Wed, 20 Aug 2014 12:10:58 +0000 (12:10 +0000)]
auto merge of #16620 : tshepang/rust/tasks, r=steveklabnik

9 years agoauto merge of #16618 : nham/rust/strslice_examples, r=alexcrichton
bors [Wed, 20 Aug 2014 10:25:54 +0000 (10:25 +0000)]
auto merge of #16618 : nham/rust/strslice_examples, r=alexcrichton

(By chance, the `contains` example was actually what I was trying to write when I discovered #16589)

9 years agoauto merge of #16615 : pcwalton/rust/unboxed-closures-prelude, r=huonw
bors [Wed, 20 Aug 2014 08:00:56 +0000 (08:00 +0000)]
auto merge of #16615 : pcwalton/rust/unboxed-closures-prelude, r=huonw

Closes #16600.

r? @huonw

9 years agoauto merge of #16614 : cdwort/rust/pointer-guide-typo, r=steveklabnik
bors [Wed, 20 Aug 2014 06:15:58 +0000 (06:15 +0000)]
auto merge of #16614 : cdwort/rust/pointer-guide-typo, r=steveklabnik

This appears to be a minor typo. This example implies that x is mutable otherwise the compiler would error on the line before the comment implies.

Please let me know if I'm missing something - I'd love to learn what I got wrong!

9 years agoauto merge of #16606 : pczarn/rust/inline-asm, r=alexcrichton
bors [Wed, 20 Aug 2014 03:25:58 +0000 (03:25 +0000)]
auto merge of #16606 : pczarn/rust/inline-asm, r=alexcrichton

It's unfortunate that the read+write operands need special treatment in the AST. A separate vec for all expressions is an alternative, but it doesn't play nicely with trans.

Fixes #14936

9 years agoauto merge of #16603 : SiegeLord/rust/nullable, r=alexcrichton
bors [Wed, 20 Aug 2014 01:40:58 +0000 (01:40 +0000)]
auto merge of #16603 : SiegeLord/rust/nullable, r=alexcrichton

A few reasons:

* `Nullable` is basically unused, save for one argument in the `glob` function in `liblibc`, so this change likely impacts nobody negatively. The constructors are never used, and I don't foresee people using them. The people implementing the glob functionality don't seem to be reaching for this POSIX `glob` function, so it seems unlikely to be used heavily.
* At the same time, the old name, `Some`, needlessly conflicted with the same re-exported name in the prelude, which impacted everybody who use glob imports with `libc`. Changing it to something else would simplify things greatly for those people.
* `NotNull` seemed like the best option (others included `Just`, `Valid`, etc. which all had somewhat different connotations than what this type was going for (even `Some` doesn't quite seem like the opposite of `Null`)). Other options included removing the type completely and adding a special, `glob`-specific type. This latter approach doesn't seem future-proof.

Overall, I feel like this is a mildly positive change.

9 years agoauto merge of #16584 : luqmana/rust/psfo, r=alexcrichton
bors [Tue, 19 Aug 2014 23:56:02 +0000 (23:56 +0000)]
auto merge of #16584 : luqmana/rust/psfo, r=alexcrichton

Fixes #16574.

9 years agodoc: small tasks guide improvements
Tshepang Lekhonkhobe [Tue, 19 Aug 2014 23:34:41 +0000 (01:34 +0200)]
doc: small tasks guide improvements

9 years agodoc: grammar fixes
Tshepang Lekhonkhobe [Tue, 19 Aug 2014 23:31:07 +0000 (01:31 +0200)]
doc: grammar fixes

9 years agoAdd examples for some StrSlice methods.
nham [Tue, 19 Aug 2014 22:02:38 +0000 (18:02 -0400)]
Add examples for some StrSlice methods.

9 years agoauto merge of #16201 : erickt/rust/json-ints, r=acrichto
bors [Tue, 19 Aug 2014 22:10:55 +0000 (22:10 +0000)]
auto merge of #16201 : erickt/rust/json-ints, r=acrichto

This patch allows json to deserialize integers larger than 2^53 without losing precision. It does this by first keeping the integer portion of a number as a `i64`, and only casting it over to a `f64` if we have a decimal or exponent.

9 years agolibstd: Add `Fn`/`FnMut`/`FnOnce` to the prelude.
Patrick Walton [Tue, 19 Aug 2014 20:56:38 +0000 (13:56 -0700)]
libstd: Add `Fn`/`FnMut`/`FnOnce` to the prelude.

Closes #16600.

9 years agoMake variable mutable to allow mutable reference
Amy Unger [Tue, 19 Aug 2014 20:41:12 +0000 (15:41 -0500)]
Make variable mutable to allow mutable reference

9 years agoDon't fail if an object is keyed with a string and we're expecting a number
Erick Tryzelaar [Tue, 19 Aug 2014 20:35:16 +0000 (13:35 -0700)]
Don't fail if an object is keyed with a string and we're expecting a number

9 years agoserialize: add json bounds checks, support for u64s, and tests
Erick Tryzelaar [Thu, 7 Aug 2014 12:35:06 +0000 (08:35 -0400)]
serialize: add json bounds checks, support for u64s, and tests

9 years agoAdd fix for test on windows.
Luqman Aden [Tue, 19 Aug 2014 20:32:41 +0000 (13:32 -0700)]
Add fix for test on windows.

9 years agoauto merge of #16241 : P1start/rust/doc-fixes, r=alexcrichton
bors [Tue, 19 Aug 2014 20:25:49 +0000 (20:25 +0000)]
auto merge of #16241 : P1start/rust/doc-fixes, r=alexcrichton

For crates `alloc`–`collections`. This is mostly just updating a few function/method descriptions to use the indicative style.

cc #4361; I’ve sort of assumed that the third-person indicative style has been decided on, but I could update this to use the imperative style if that’s preferred, or even update this to remove all function-style-related changes. (I think that standardising on one thing, even if it’s not the ‘best’ option, is still better than having no standard at all.) The indicative style seems to be more common in the Rust standard library at the moment, especially in the newer modules (e.g. `collections::vec`), more popular in the discussion about it, and also more popular amongst other languages (see https://github.com/rust-lang/rust/issues/4361#issuecomment-33470215).

9 years agoFix double evaluation of read+write operands
Piotr Czarnecki [Tue, 19 Aug 2014 19:39:26 +0000 (20:39 +0100)]
Fix double evaluation of read+write operands

Stop read+write expressions from expanding into two occurences
in the AST. Add a bool to indicate whether an operand in output
position if read+write or not.

Fixes #14936

9 years agoRemove repeated section and make file path generic
Eduardo Bautista [Tue, 19 Aug 2014 07:19:22 +0000 (00:19 -0700)]
Remove repeated section and make file path generic

9 years agoUse new Cargo starting version number
Eduardo Bautista [Wed, 13 Aug 2014 22:26:49 +0000 (17:26 -0500)]
Use new Cargo starting version number

9 years agoUse new Cargo file syntax
Eduardo Bautista [Wed, 13 Aug 2014 22:25:13 +0000 (17:25 -0500)]
Use new Cargo file syntax

9 years ago`input_num` is used is used instead of `guess` further in the guide
Eduardo Bautista [Wed, 13 Aug 2014 06:04:32 +0000 (01:04 -0500)]
`input_num` is used is used instead of `guess` further in the guide

9 years agoCargo generates "Hello, world!" instead of "Hello world!"
Eduardo Bautista [Sun, 10 Aug 2014 03:47:28 +0000 (22:47 -0500)]
Cargo generates "Hello, world!" instead of "Hello world!"

9 years agoCargo begins version number at 0.0.1 instead of 0.1.0
Eduardo Bautista [Sun, 10 Aug 2014 03:45:18 +0000 (22:45 -0500)]
Cargo begins version number at 0.0.1 instead of 0.1.0

9 years agoauto merge of #16590 : nham/rust/str_searcher_underflow, r=alexcrichton
bors [Tue, 19 Aug 2014 16:35:51 +0000 (16:35 +0000)]
auto merge of #16590 : nham/rust/str_searcher_underflow, r=alexcrichton

This incidentally fixes #16589, because it will cause `MatchIndices` to use `NaiveSearcher` instead of `TwoWaySearcher`, but I'm not sure #16589 should be closed until the underlying problem in `TwoWaySearcher` is found.

9 years agoserialize: add json::{Integer,Floating} to parse large integers properly
Erick Tryzelaar [Sat, 2 Aug 2014 16:54:40 +0000 (09:54 -0700)]
serialize: add json::{Integer,Floating} to parse large integers properly

[breaking-change]

9 years agoauto merge of #16588 : thestinger/rust/aslr, r=pcwalton
bors [Tue, 19 Aug 2014 14:50:51 +0000 (14:50 +0000)]
auto merge of #16588 : thestinger/rust/aslr, r=pcwalton

Closes #16514

9 years agoauto merge of #16585 : steveklabnik/rust/random_remarks, r=pcwalton
bors [Tue, 19 Aug 2014 13:05:52 +0000 (13:05 +0000)]
auto merge of #16585 : steveklabnik/rust/random_remarks, r=pcwalton

Fixes #15954 and #16354.

9 years agoRename Nullable::Some to Nullable::NotNull
SiegeLord [Tue, 19 Aug 2014 12:58:20 +0000 (08:58 -0400)]
Rename Nullable::Some to Nullable::NotNull

9 years agoauto merge of #16583 : steveklabnik/rust/gh16569, r=pcwalton
bors [Tue, 19 Aug 2014 10:20:54 +0000 (10:20 +0000)]
auto merge of #16583 : steveklabnik/rust/gh16569, r=pcwalton

Fixes #16569

9 years agoauto merge of #16582 : Gankro/rust/bitv, r=alexcrichton
bors [Tue, 19 Aug 2014 08:35:55 +0000 (08:35 +0000)]
auto merge of #16582 : Gankro/rust/bitv, r=alexcrichton

This was bothering me (and some other people). The macro was necessary in a transient step of my development, but I converged on a design where it was unnecessary, but it didn't really click that that had happened.

This fixes it up.

9 years agoauto merge of #16364 : tbu-/rust/pr_checkeddiv0, r=alexcrichton
bors [Tue, 19 Aug 2014 06:50:55 +0000 (06:50 +0000)]
auto merge of #16364 : tbu-/rust/pr_checkeddiv0, r=alexcrichton

9 years agoA few minor documentation fixes
P1start [Mon, 4 Aug 2014 10:48:39 +0000 (22:48 +1200)]
A few minor documentation fixes

9 years agoauto merge of #16573 : ruud-v-a/rust/timespec-arithmetic, r=alexcrichton
bors [Tue, 19 Aug 2014 04:56:10 +0000 (04:56 +0000)]
auto merge of #16573 : ruud-v-a/rust/timespec-arithmetic, r=alexcrichton

This implements `Add` and `Sub` for `Timespec`, which enables `Timespec` to be used as a time span. For example:

```rust
let begin = get_time();
// Do some stuff.
let end = get_time();
let delta = end - begin;
println!("Doing stuff took {}.{:09d} seconds.", delta.sec, delta.nsec);
```
This resolves one of the points mentioned in #2153.

9 years agoAdd a test for the fix of issue 16589
nham [Tue, 19 Aug 2014 01:43:43 +0000 (21:43 -0400)]
Add a test for the fix of issue 16589

9 years agoauto merge of #16345 : EduardoBautista/rust/fix-error-message-in-guide, r=steveklabnik
bors [Tue, 19 Aug 2014 03:11:12 +0000 (03:11 +0000)]
auto merge of #16345 : EduardoBautista/rust/fix-error-message-in-guide, r=steveklabnik

Just some simple changes to the guide.

9 years agoauto merge of #16580 : steveklabnik/rust/gh1498, r=pcwalton
bors [Tue, 19 Aug 2014 01:26:14 +0000 (01:26 +0000)]
auto merge of #16580 : steveklabnik/rust/gh1498, r=pcwalton

Fixes #14948

9 years agoauto merge of #16579 : steveklabnik/rust/gh9099, r=pcwalton
bors [Mon, 18 Aug 2014 22:46:19 +0000 (22:46 +0000)]
auto merge of #16579 : steveklabnik/rust/gh9099, r=pcwalton

Fixes #9099

9 years agoFix underflow bug in core::str::Searcher::new for haystacks of length < 20
nham [Mon, 18 Aug 2014 21:51:51 +0000 (17:51 -0400)]
Fix underflow bug in core::str::Searcher::new for haystacks of length < 20

9 years agoMake comment about small bias in %.
Steve Klabnik [Mon, 18 Aug 2014 19:50:42 +0000 (15:50 -0400)]
Make comment about small bias in %.

Fixes #16354.

9 years agoFixing bitvset is_disjoint, fixes #16587
Alexis Beingessner [Mon, 18 Aug 2014 20:59:52 +0000 (16:59 -0400)]
Fixing bitvset is_disjoint, fixes #16587

9 years agoauto merge of #16578 : steveklabnik/rust/gh16239, r=pcwalton
bors [Mon, 18 Aug 2014 21:01:19 +0000 (21:01 +0000)]
auto merge of #16578 : steveklabnik/rust/gh16239, r=pcwalton

Fies #16239.

9 years agoExplain modulo in the guide.
Steve Klabnik [Mon, 18 Aug 2014 19:38:47 +0000 (15:38 -0400)]
Explain modulo in the guide.

Fixes #15954

9 years agowork around MinGW linker bug for ASLR on Windows
Daniel Micay [Mon, 18 Aug 2014 18:15:05 +0000 (14:15 -0400)]
work around MinGW linker bug for ASLR on Windows

Closes #16514

9 years agoExplain EOF behavior in File.eof().
Steve Klabnik [Mon, 18 Aug 2014 17:17:27 +0000 (13:17 -0400)]
Explain EOF behavior in File.eof().

Fies #16239.

9 years agoauto merge of #16575 : pcwalton/rust/import-foo-as-bar, r=aturon
bors [Mon, 18 Aug 2014 19:16:15 +0000 (19:16 +0000)]
auto merge of #16575 : pcwalton/rust/import-foo-as-bar, r=aturon

of `use bar as foo`.

Change all uses of `use foo = bar` to `use bar as foo`.

Implements RFC #47.

Closes #16461.

[breaking-change]

r? @aturon

9 years agoAdd test for passing/getting packed structs with ffi.
Luqman Aden [Mon, 18 Aug 2014 18:12:46 +0000 (14:12 -0400)]
Add test for passing/getting packed structs with ffi.

9 years agolibrustc: Fix field offsets for packed structs.
Luqman Aden [Mon, 18 Aug 2014 18:03:20 +0000 (14:03 -0400)]
librustc: Fix field offsets for packed structs.

9 years agoManual: add information about //!
Steve Klabnik [Mon, 18 Aug 2014 18:26:14 +0000 (14:26 -0400)]
Manual: add information about //!

Fixes #16569

9 years agoRefactor BitV internals to not use macro, reduce duplication
Alexis Beingessner [Mon, 18 Aug 2014 15:53:07 +0000 (11:53 -0400)]
Refactor BitV internals to not use macro, reduce duplication

9 years agoRemove innapropriate string mutability section.
Steve Klabnik [Mon, 18 Aug 2014 18:00:31 +0000 (14:00 -0400)]
Remove innapropriate string mutability section.

Fixes #14948

9 years agoImprove text of Option.unwrap()
Steve Klabnik [Mon, 18 Aug 2014 17:47:13 +0000 (13:47 -0400)]
Improve text of Option.unwrap()

Fixes #9099

9 years agoGuide: ownership
Steve Klabnik [Thu, 14 Aug 2014 00:19:44 +0000 (20:19 -0400)]
Guide: ownership

9 years agoauto merge of #16576 : steveklabnik/rust/static_analysis_gate, r=pcwalton
bors [Mon, 18 Aug 2014 17:26:07 +0000 (17:26 +0000)]
auto merge of #16576 : steveklabnik/rust/static_analysis_gate, r=pcwalton

This has certain implications that are wrong.

Fixes #16299.

9 years agoRemove 'static analysis'
Steve Klabnik [Mon, 18 Aug 2014 17:10:25 +0000 (13:10 -0400)]
Remove 'static analysis'

This has certain implications that are wrong.

Fixes #16299.

9 years agolibsyntax: Remove the `use foo = bar` syntax from the language in favor
Patrick Walton [Mon, 18 Aug 2014 15:29:44 +0000 (08:29 -0700)]
libsyntax: Remove the `use foo = bar` syntax from the language in favor
of `use bar as foo`.

Change all uses of `use foo = bar` to `use bar as foo`.

Implements RFC #47.

Closes #16461.

[breaking-change]

9 years agoauto merge of #16571 : pcwalton/rust/register-snapshots, r=pcwalton
bors [Mon, 18 Aug 2014 13:41:05 +0000 (13:41 +0000)]
auto merge of #16571 : pcwalton/rust/register-snapshots, r=pcwalton

9 years agosnapshots: Register new snapshots.
Patrick Walton [Sun, 17 Aug 2014 23:50:55 +0000 (16:50 -0700)]
snapshots: Register new snapshots.

9 years agolibtime: Implement Add and Sub for Timespec.
Ruud van Asseldonk [Mon, 18 Aug 2014 09:24:23 +0000 (11:24 +0200)]
libtime: Implement Add and Sub for Timespec.

9 years agoauto merge of #16568 : jakub-/rust/needstest, r=pcwalton
bors [Mon, 18 Aug 2014 10:11:03 +0000 (10:11 +0000)]
auto merge of #16568 : jakub-/rust/needstest, r=pcwalton

Closes #8761.
Closes #16010.
Closes #13033.
Closes #15094.

9 years agoauto merge of #16556 : pczarn/rust/wbr, r=alexcrichton
bors [Mon, 18 Aug 2014 08:26:05 +0000 (08:26 +0000)]
auto merge of #16556 : pczarn/rust/wbr, r=alexcrichton

Prevents zero-width spaces from appearing in copy-pasted paths.

Fixes #16555

9 years agoauto merge of #16450 : klutzy/rust/win-fixme-cleanup, r=alexcrichton
bors [Mon, 18 Aug 2014 06:01:08 +0000 (06:01 +0000)]
auto merge of #16450 : klutzy/rust/win-fixme-cleanup, r=alexcrichton

First commit enables regex test on Windows. It was not working at some point (#13725), but it works now.

Second commit removes various FIXMEs regarding #13793, since upstream bug has been fixed.

9 years agoRemove workaround of #13793/#10872
klutzy [Tue, 12 Aug 2014 14:25:30 +0000 (23:25 +0900)]
Remove workaround of #13793/#10872

LLVM assertion error has been fixed recently:
http://llvm.org/bugs/show_bug.cgi?id=18993

Fixes #13793

9 years agoregex: Enable test on Windows
klutzy [Tue, 12 Aug 2014 14:23:10 +0000 (23:23 +0900)]
regex: Enable test on Windows

Fixes #13725

9 years agoauto merge of #16567 : jakub-/rust/issue-16149, r=pcwalton
bors [Mon, 18 Aug 2014 04:16:12 +0000 (04:16 +0000)]
auto merge of #16567 : jakub-/rust/issue-16149, r=pcwalton

Fixes #16149.

9 years agoauto merge of #16566 : thestinger/rust/aslr, r=pcwalton
bors [Mon, 18 Aug 2014 02:31:11 +0000 (02:31 +0000)]
auto merge of #16566 : thestinger/rust/aslr, r=pcwalton

This is enough for dynamic libraries, but not executables because MinGW
does not output a .reloc section even with `--dynamicbase`. It could
either be worked around by exporting a DLL symbol from the executable or
fixed in MinGW itself.

9 years agoauto merge of #16559 : Gankro/rust/bitv, r=pcwalton
bors [Mon, 18 Aug 2014 00:46:10 +0000 (00:46 +0000)]
auto merge of #16559 : Gankro/rust/bitv, r=pcwalton

These were the only differing-size-based errors I noticed. Might be more.

9 years agoAdd missing tests for fixed issues
Jakub Wieczorek [Sun, 17 Aug 2014 23:29:10 +0000 (01:29 +0200)]
Add missing tests for fixed issues

Closes #8761.
Closes #16010.
Closes #13033.
Closes #15094.

9 years agoauto merge of #16565 : kaseyc/rust/documentation_fixes, r=pcwalton
bors [Sun, 17 Aug 2014 23:01:10 +0000 (23:01 +0000)]
auto merge of #16565 : kaseyc/rust/documentation_fixes, r=pcwalton

Corrected the sample rustdoc command to use --output instead of --output-dir and fixed markdown formatting in debuginfo.rs.