]> git.lizzy.rs Git - rust.git/log
rust.git
9 years agoFallout from stabilization.
Aaron Turon [Sun, 18 Jan 2015 00:15:52 +0000 (16:15 -0800)]
Fallout from stabilization.

9 years agoDeprecate slicing methods in favor of notation
Aaron Turon [Sun, 18 Jan 2015 00:15:47 +0000 (16:15 -0800)]
Deprecate slicing methods in favor of notation

This commit deprecates `slice`, `slice_from`, `slice_to` and their
mutable variants in favor of slice notation.

The `as_slice` methods are left intact, for now.

[breaking-change]

9 years agoStabilize Index traits and most range notation
Aaron Turon [Fri, 16 Jan 2015 04:00:09 +0000 (20:00 -0800)]
Stabilize Index traits and most range notation

This commit marks as `#[stable]`:

* The `Index` and `IndexMut` traits. These are stabilized as taking the
  index itself *by reference*; after extensive discussion it was
  determined that this is a better match with our choices
  elsewhere (e.g. making comparison operators auto-reference), and that
  the use cases for by-value indices are better handled through
  `IndexSet`.

* The `Range`, `RangeFrom` and `RangeTo` structs, introduced for range
  notation.

* Various impls of `Index` and `IndexMut`.

The `FullRange` struct is left unstable as we may wish to rename it to
`RangeFull` in the future.

This commit also *removes* the `Step` trait in favor of direct
implementation of iterator traits on ranges for integers. The `Step`
trait was not a terribly useful factoring internally, and it is likely
that external integer types are best off implementing range iterators
directly. It was removed to simplify the API surface. We can always
reintroduce `Step` later if it turns out to be useful.

Due to this removal, this is a:

[breaking-change]

9 years agodocs: fix fallout of merging ast::ViewItem into ast::Item.
Eduard Burtescu [Fri, 26 Dec 2014 08:55:22 +0000 (10:55 +0200)]
docs: fix fallout of merging ast::ViewItem into ast::Item.

9 years agorustdoc: fix fallout of merging ast::ViewItem into ast::Item.
Eduard Burtescu [Fri, 26 Dec 2014 08:55:16 +0000 (10:55 +0200)]
rustdoc: fix fallout of merging ast::ViewItem into ast::Item.

9 years agorustc_resolve: fix fallout of merging ast::ViewItem into ast::Item.
Eduard Burtescu [Tue, 23 Dec 2014 19:34:36 +0000 (21:34 +0200)]
rustc_resolve: fix fallout of merging ast::ViewItem into ast::Item.

9 years agorustc_driver: fix fallout of merging ast::ViewItem into ast::Item.
Eduard Burtescu [Tue, 23 Dec 2014 19:34:26 +0000 (21:34 +0200)]
rustc_driver: fix fallout of merging ast::ViewItem into ast::Item.

9 years agorustc_trans: fix fallout of merging ast::ViewItem into ast::Item.
Eduard Burtescu [Tue, 23 Dec 2014 19:34:08 +0000 (21:34 +0200)]
rustc_trans: fix fallout of merging ast::ViewItem into ast::Item.

9 years agorustc_typeck: fix fallout of merging ast::ViewItem into ast::Item.
Eduard Burtescu [Tue, 23 Dec 2014 19:33:57 +0000 (21:33 +0200)]
rustc_typeck: fix fallout of merging ast::ViewItem into ast::Item.

9 years agorustc: fix fallout of merging ast::ViewItem into ast::Item.
Eduard Burtescu [Tue, 23 Dec 2014 19:33:44 +0000 (21:33 +0200)]
rustc: fix fallout of merging ast::ViewItem into ast::Item.

9 years agorustc_back: fix fallout of merging ast::ViewItem into ast::Item.
Eduard Burtescu [Tue, 23 Dec 2014 13:11:24 +0000 (15:11 +0200)]
rustc_back: fix fallout of merging ast::ViewItem into ast::Item.

9 years agosyntax: fix fallout of merging ast::ViewItem into ast::Item.
Eduard Burtescu [Tue, 13 Jan 2015 15:30:17 +0000 (17:30 +0200)]
syntax: fix fallout of merging ast::ViewItem into ast::Item.

9 years agosyntax: merge ast::ViewItem into ast::Item.
Eduard Burtescu [Tue, 23 Dec 2014 13:07:30 +0000 (15:07 +0200)]
syntax: merge ast::ViewItem into ast::Item.

9 years agoRemove feature(import_shadowing).
Eduard Burtescu [Sat, 20 Dec 2014 10:27:36 +0000 (12:27 +0200)]
Remove feature(import_shadowing).

9 years agoaddress review comments: reuse Escape etc.
Liigo Zhuang [Fri, 16 Jan 2015 12:56:26 +0000 (20:56 +0800)]
address review comments: reuse Escape etc.

9 years agofix fallout
Liigo Zhuang [Thu, 25 Dec 2014 07:01:24 +0000 (15:01 +0800)]
fix fallout

9 years agorustdoc: eliminates raw markdown code (links, headers, etc.) from tooltips of sidebar
Liigo Zhuang [Thu, 25 Dec 2014 05:39:29 +0000 (13:39 +0800)]
rustdoc: eliminates raw markdown code (links, headers, etc.) from tooltips of sidebar

9 years agodisplay plain summary line in javascript
Liigo Zhuang [Tue, 23 Dec 2014 12:22:50 +0000 (20:22 +0800)]
display plain summary line in javascript

9 years agorustdoc: add tooltips to sidebar
Liigo Zhuang [Tue, 23 Dec 2014 01:58:38 +0000 (09:58 +0800)]
rustdoc: add tooltips to sidebar

9 years agoDe-mut the parser
Seo Sanghyeon [Wed, 21 Jan 2015 11:44:49 +0000 (20:44 +0900)]
De-mut the parser

9 years agoAuto merge of #21242 - richo:no-perl, r=brson
bors [Wed, 21 Jan 2015 11:07:31 +0000 (11:07 +0000)]
Auto merge of #21242 - richo:no-perl, r=brson

There's only one build-critical path in which perl is used, and it was to do a text replacement trivially achievable with sed(1).

I ported the indenter script because it [appears to be used][indenter], but removed check links because it appears to be entirely out of date.

[indenter]: https://github.com/rust-lang/rust/blob/master/src/librustc/util/common.rs#L60-70

9 years agodebuginfo: Make debuginfo source location assignment more stable (Pt. 1)
Michael Woerister [Thu, 11 Dec 2014 12:53:30 +0000 (13:53 +0100)]
debuginfo: Make debuginfo source location assignment more stable (Pt. 1)

So far, the source location an LLVM instruction was linked to was controlled by
`debuginfo::set_source_location()` and `debuginfo::clear_source_location()`.
This interface mimicked how LLVM's `IRBuilder` handles debug location
assignment. While this interface has some theoretical performance benefits, it
also makes things terribly unstable: One sets some quasi-global state and then
hopes that it is still correct when a given instruction is emitted---an
assumption that has been proven to not hold a bit too often.

This patch requires the debug source location to be passed to the actual
instruction emitting function. This makes source location assignment explicit
and will prevent future changes to `trans` from accidentally breaking things in
the majority of cases.

This patch does not yet implement the new principle for all instruction kinds
but the stepping experience should have improved significantly nonetheless
already.

9 years agoAuto merge of #21227 - sellibitze:core-ops-for-references, r=aturon
bors [Wed, 21 Jan 2015 09:02:44 +0000 (09:02 +0000)]
Auto merge of #21227 - sellibitze:core-ops-for-references, r=aturon

As discussed with @aturon I added implementations of various op traits for references to built-in types which was already suggested by the ops reform RFC.

The 2nd commit updates the module documentation of core::ops to fully reflect the recent change from pass-by-reference to pass-by-value and expands on the implications for generic code.

9 years agoRemove ratchet().
Ahmed Charles [Tue, 20 Jan 2015 19:14:52 +0000 (11:14 -0800)]
Remove ratchet().

9 years agoRemove compare_to_old().
Ahmed Charles [Tue, 20 Jan 2015 17:24:06 +0000 (09:24 -0800)]
Remove compare_to_old().

9 years agoRemove write_metric_diff and supporting code.
Ahmed Charles [Mon, 19 Jan 2015 10:51:34 +0000 (02:51 -0800)]
Remove write_metric_diff and supporting code.

9 years agostd: Rename Show/String to Debug/Display
Alex Crichton [Tue, 20 Jan 2015 23:45:07 +0000 (15:45 -0800)]
std: Rename Show/String to Debug/Display

This commit is an implementation of [RFC 565][rfc] which is a stabilization of
the `std::fmt` module and the implementations of various formatting traits.
Specifically, the following changes were performed:

[rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0565-show-string-guidelines.md

* The `Show` trait is now deprecated, it was renamed to `Debug`
* The `String` trait is now deprecated, it was renamed to `Display`
* Many `Debug` and `Display` implementations were audited in accordance with the
  RFC and audited implementations now have the `#[stable]` attribute
  * Integers and floats no longer print a suffix
  * Smart pointers no longer print details that they are a smart pointer
  * Paths with `Debug` are now quoted and escape characters
* The `unwrap` methods on `Result` now require `Display` instead of `Debug`
* The `Error` trait no longer has a `detail` method and now requires that
  `Display` must be implemented. With the loss of `String`, this has moved into
  libcore.
* `impl<E: Error> FromError<E> for Box<Error>` now exists
* `derive(Show)` has been renamed to `derive(Debug)`. This is not currently
  warned about due to warnings being emitted on stage1+

While backwards compatibility is attempted to be maintained with a blanket
implementation of `Display` for the old `String` trait (and the same for
`Show`/`Debug`) this is still a breaking change due to primitives no longer
implementing `String` as well as modifications such as `unwrap` and the `Error`
trait. Most code is fairly straightforward to update with a rename or tweaks of
method calls.

[breaking-change]
Closes #21436

9 years agoAuto merge of #21395 - sfackler:fix-cvar-test, r=alexcrichton
bors [Wed, 21 Jan 2015 05:55:02 +0000 (05:55 +0000)]
Auto merge of #21395 - sfackler:fix-cvar-test, r=alexcrichton

r? @alexcrichton

9 years agoremove `NoSendItem` and `NoSyncItem`
Jorge Aparicio [Mon, 19 Jan 2015 15:52:11 +0000 (10:52 -0500)]
remove `NoSendItem` and `NoSyncItem`

9 years agoDisplay negative trait implementations correctly in rustdoc
Diggory Blake [Wed, 21 Jan 2015 04:35:57 +0000 (04:35 +0000)]
Display negative trait implementations correctly in rustdoc

Added doc test

9 years agoAuto merge of #21065 - ColonelJ:master, r=brson
bors [Wed, 21 Jan 2015 03:54:21 +0000 (03:54 +0000)]
Auto merge of #21065 - ColonelJ:master, r=brson

Removed use of unused LDPATH variable on Windows as is done for other platforms, and added GCC flag to ensure MINGW's ANSI compatible STDIO functions are used wherever available (required by jemalloc).

Without these changes it ends up setting the PATH twice, and the second time the PATH begins with `:` which is invalid.  Also the regular msvcrt printf-like functions would be used which don't understand stuff like %hhd and %z which jemalloc uses.

This change ought not to make any difference to the output but it fixes the build process for me since at least my build environment couldn't handle that broken path caused by LDPATH being empty.

9 years agoimplement `ExactSizeIterator` for `slice::{Chunks,ChunksMut}`
Andrew Paseltiner [Mon, 12 Jan 2015 22:08:53 +0000 (17:08 -0500)]
implement `ExactSizeIterator` for `slice::{Chunks,ChunksMut}`

9 years agoImplement ExactSizeIterator for remaining core Iterators where applicable.
Steven Allen [Tue, 20 Jan 2015 22:41:58 +0000 (17:41 -0500)]
Implement ExactSizeIterator for remaining core Iterators where applicable.

Specifically:
 * Peekable
 * ByRef
 * Skip
 * Take
 * Fuse

9 years agodocs: Update for clarity
Alfie John [Wed, 21 Jan 2015 01:37:39 +0000 (01:37 +0000)]
docs: Update for clarity

Compiling won't produce an executable just yet because (as stated in the next
paragraph) there are errors. By removing this sentance, the reader won't get
confused when they expect a successful compile i.e. if they don't read ahead one
paragraph, they are going to be checking their code and wondering why it's not
compiling.

9 years agotests: uncomment regression tests for 13970, 13971, 13972
Corey Richardson [Tue, 20 Jan 2015 23:43:38 +0000 (18:43 -0500)]
tests: uncomment regression tests for 13970, 13971, 13972

Closes #13971

9 years agoalso forward Iterator::size_hint()
Jorge Aparicio [Tue, 20 Jan 2015 23:15:28 +0000 (18:15 -0500)]
also forward Iterator::size_hint()

9 years agoAuto merge of #21439 - alexcrichton:rollup, r=alexcrichton
bors [Tue, 20 Jan 2015 23:03:09 +0000 (23:03 +0000)]
Auto merge of #21439 - alexcrichton:rollup, r=alexcrichton

Continuation of https://github.com/rust-lang/rust/pull/21428

9 years agoMake multiline errors work with codes
Brian Anderson [Tue, 20 Jan 2015 22:18:35 +0000 (14:18 -0800)]
Make multiline errors work with codes

9 years agoChanged rust-mode code for tabs -> spaces
Daniel Raloff [Tue, 20 Jan 2015 22:07:10 +0000 (14:07 -0800)]
Changed rust-mode code for tabs -> spaces

9 years agoadd stability text like suggested in discussion
Sebastian Gesemann [Tue, 20 Jan 2015 21:35:42 +0000 (22:35 +0100)]
add stability text like suggested in discussion

9 years agoRegister snapshot for 9006c3c
Flavio Percoco [Tue, 20 Jan 2015 14:51:09 +0000 (15:51 +0100)]
Register snapshot for 9006c3c

9 years agoalloc::boxed: enable test
Stepan Koltsov [Tue, 20 Jan 2015 20:57:56 +0000 (23:57 +0300)]
alloc::boxed: enable test

Previously test was disabled due to `#[cfg(test)]` before `mod boxed`.

9 years agoAdd more explanation for why the assumes are there
James Miller [Tue, 20 Jan 2015 20:56:59 +0000 (09:56 +1300)]
Add more explanation for why the assumes are there

9 years agorustc: Remove deprecated lint names
Alex Crichton [Tue, 20 Jan 2015 19:20:22 +0000 (11:20 -0800)]
rustc: Remove deprecated lint names

These were all renamed quite some time ago, so remove their old names from the
compiler.

9 years agoTest fixes and rebase conflicts
Alex Crichton [Tue, 20 Jan 2015 20:35:51 +0000 (12:35 -0800)]
Test fixes and rebase conflicts

9 years agoAdd assumptions that the pointer is non-null
James Miller [Tue, 20 Jan 2015 20:35:24 +0000 (09:35 +1300)]
Add assumptions that the pointer is non-null

9 years agoKill RacyCell in favor of marking SyncSender explicitly Send.
JP Sugarbroad [Tue, 20 Jan 2015 20:00:12 +0000 (12:00 -0800)]
Kill RacyCell in favor of marking SyncSender explicitly Send.

9 years agoAuto merge of #20919 - fay-jai:update, r=brson
bors [Tue, 20 Jan 2015 19:56:43 +0000 (19:56 +0000)]
Auto merge of #20919 - fay-jai:update, r=brson

Only made 2 changes:
1) Update the year to 2015 in LICENSE-MIT
2) Update the year in COPYRIGHT

No other changes were made.

9 years agoAdd some extended errors.
Michael Sproul [Sun, 18 Jan 2015 01:20:24 +0000 (17:20 -0800)]
Add some extended errors.

9 years agoAdd error codes to rustc
Brian Anderson [Mon, 19 Jan 2015 00:58:25 +0000 (16:58 -0800)]
Add error codes to rustc

9 years agoAdd error codes to resolve
Brian Anderson [Sun, 18 Jan 2015 21:46:57 +0000 (13:46 -0800)]
Add error codes to resolve

9 years agoMake fatal errors work with codes, add to typeck
Brian Anderson [Sun, 18 Jan 2015 21:39:18 +0000 (13:39 -0800)]
Make fatal errors work with codes, add to typeck

9 years agoAdd error codes to rustc_typeck
Brian Anderson [Sat, 17 Jan 2015 21:36:59 +0000 (13:36 -0800)]
Add error codes to rustc_typeck

9 years agoMake error code registration work again. #19624
Brian Anderson [Fri, 16 Jan 2015 23:54:58 +0000 (15:54 -0800)]
Make error code registration work again. #19624

9 years agorustc: Remove deprecated flags
Alex Crichton [Tue, 20 Jan 2015 18:57:10 +0000 (10:57 -0800)]
rustc: Remove deprecated flags

This commit removes a number of deprecated flags from the compiler:

* opt-level => -C opt-level
* debuginfo => -C debuginfo
* print-crate-name => --print crate-name
* print-file-name => --print file-names
* no-trans => -Z no-trans
* no-analysis => -Z no-analysis
* parse-only => -Z parse-only
* dep-info => --emit dep-info

This commit also moves the --pretty flag behind `-Z unstable-options` as the
pretty printer will likely not be stable for 1.0

cc #19051

9 years agodocs: typo
Alfie John [Tue, 20 Jan 2015 19:02:09 +0000 (19:02 +0000)]
docs: typo

9 years agoRollup merge of #20991 - mneumann:llvm-dragonfly-take2, r=alexcrichton
Barosl LEE [Tue, 20 Jan 2015 17:16:53 +0000 (02:16 +0900)]
Rollup merge of #20991 - mneumann:llvm-dragonfly-take2, r=alexcrichton

It got accidentially reverted in 44440e5.

9 years agoRollup merge of #21179 - nodakai:reference-mod-to-self, r=huonw
Barosl LEE [Tue, 20 Jan 2015 17:16:53 +0000 (02:16 +0900)]
Rollup merge of #21179 - nodakai:reference-mod-to-self, r=huonw

This should have been done together with 56dcbd17fdad5d39b7b02e22a7490d2468718d08 for rust-lang/rust#20361

9 years agoRollup merge of #21427 - steveklabnik:generics_fix, r=alexcrichton
Barosl LEE [Tue, 20 Jan 2015 17:16:52 +0000 (02:16 +0900)]
Rollup merge of #21427 - steveklabnik:generics_fix, r=alexcrichton

Multiple people have asked me if this is a reference to Hacker News, and
I _certainly_ don't want to give them that impression.

9 years agoRollup merge of #21424 - sanxiyn:coerce-mut, r=nikomatsakis
Barosl LEE [Tue, 20 Jan 2015 17:16:52 +0000 (02:16 +0900)]
Rollup merge of #21424 - sanxiyn:coerce-mut, r=nikomatsakis

This is caught in borrowck now, but catching in typeck is faster and improves diagnostics.

CC #17561.

r? @nikomatsakis

9 years agoRollup merge of #21404 - japaric:hash, r=alexcrichton
Barosl LEE [Tue, 20 Jan 2015 17:16:52 +0000 (02:16 +0900)]
Rollup merge of #21404 - japaric:hash, r=alexcrichton

closes #21402
cc #15294

r? @alexcrichton or @aturon
cc @ExpHP (btw, this only covers arrays with arity up to 32)

9 years agoRollup merge of #21399 - kballard:fix-PLEASE_BENCH, r=Gankro
Barosl LEE [Tue, 20 Jan 2015 17:16:52 +0000 (02:16 +0900)]
Rollup merge of #21399 - kballard:fix-PLEASE_BENCH, r=Gankro

611ef49f2fa573edf9cff4442eddb8ee7e48878d removed all the metrics stuff
from tests.mk, but this meant that `PLEASE_BENCH=1` no longer did
anything.

Fixes #21324.

9 years agoRollup merge of #21388 - aochagavia:collections, r=Gankro
Barosl LEE [Tue, 20 Jan 2015 17:16:51 +0000 (02:16 +0900)]
Rollup merge of #21388 - aochagavia:collections, r=Gankro

**Breaking change**: `VecMap::into_iter` now consumes the `VecMap`. To fix it you should pass the VecMap by value instead of by reference.

[breaking-change]

r? @Gankro

9 years agoRollup merge of #21387 - retep998:hmodule, r=alexcrichton
Barosl LEE [Tue, 20 Jan 2015 17:16:51 +0000 (02:16 +0900)]
Rollup merge of #21387 - retep998:hmodule, r=alexcrichton

r? @alexcrichton

9 years agoRollup merge of #21386 - Diggsey:issue-21384, r=alexcrichton
Barosl LEE [Tue, 20 Jan 2015 17:16:51 +0000 (02:16 +0900)]
Rollup merge of #21386 - Diggsey:issue-21384, r=alexcrichton

Fixes #21384

9 years agoRollup merge of #21380 - tshepang:patch-3, r=steveklabnik
Barosl LEE [Tue, 20 Jan 2015 17:16:51 +0000 (02:16 +0900)]
Rollup merge of #21380 - tshepang:patch-3, r=steveklabnik

9 years agoRollup merge of #21123 - visualfc:master, r=alexcrichton
Barosl LEE [Tue, 20 Jan 2015 17:16:51 +0000 (02:16 +0900)]
Rollup merge of #21123 - visualfc:master, r=alexcrichton

example:
let m = "hello \
           world";

9 years agoRollup merge of #21377 - iKevinY:speedy-tidy, r=huonw
Barosl LEE [Tue, 20 Jan 2015 17:16:50 +0000 (02:16 +0900)]
Rollup merge of #21377 - iKevinY:speedy-tidy, r=huonw

`x in y` is more Pythonic than `y.find(x) != -1`. I believe it runs quite a bit faster as well (though it's probably not a bottleneck of the Travis builds):

```bash
$ python -m timeit '"abc".find("a") != -1'
1000000 loops, best of 3: 0.218 usec per loop
$ python -m timeit '"a" in "abc"'
10000000 loops, best of 3: 0.0343 usec per loop
```

9 years agoRollup merge of #21375 - petrochenkov:ssbsl, r=alexcrichton
Barosl LEE [Tue, 20 Jan 2015 17:16:50 +0000 (02:16 +0900)]
Rollup merge of #21375 - petrochenkov:ssbsl, r=alexcrichton

After PR #19766 added implicit coersions `*mut T -> *const T`, the explicit casts can be removed.
(The number of such casts turned out to be relatively small).

9 years agoRollup merge of #21369 - iKevinY:no-travis-notes, r=sanxiyn
Barosl LEE [Tue, 20 Jan 2015 17:16:49 +0000 (02:16 +0900)]
Rollup merge of #21369 - iKevinY:no-travis-notes, r=sanxiyn

Updated `tidy.py` to skip printing NOTEs if the [`TRAVIS`](http://docs.travis-ci.com/user/ci-environment/#Environment-variables) environment variable is set.

9 years agoRollup merge of #21359 - WiSaGaN:bugfix/fix_marker, r=alexcrichton
Barosl LEE [Tue, 20 Jan 2015 17:16:49 +0000 (02:16 +0900)]
Rollup merge of #21359 - WiSaGaN:bugfix/fix_marker, r=alexcrichton

From std::markers to std::marker.

9 years agoRollup merge of #21358 - glacjay:patch-2, r=alexcrichton
Barosl LEE [Tue, 20 Jan 2015 17:16:49 +0000 (02:16 +0900)]
Rollup merge of #21358 - glacjay:patch-2, r=alexcrichton

9 years agoRollup merge of #21357 - kimroen:patch-1, r=sanxiyn
Barosl LEE [Tue, 20 Jan 2015 17:16:49 +0000 (02:16 +0900)]
Rollup merge of #21357 - kimroen:patch-1, r=sanxiyn

Having both "Right now" and "at the moment" in the same statement is redundant.

9 years agoRollup merge of #21100 - tstorch:small_readability_update, r=alexcrichton
Barosl LEE [Tue, 20 Jan 2015 17:16:48 +0000 (02:16 +0900)]
Rollup merge of #21100 - tstorch:small_readability_update, r=alexcrichton

Why not use what is there?

9 years agoRollup merge of #21345 - glacjay:patch-1, r=alexcrichton
Barosl LEE [Tue, 20 Jan 2015 17:16:48 +0000 (02:16 +0900)]
Rollup merge of #21345 - glacjay:patch-1, r=alexcrichton

The reference should be `x`, not `FOO` itself.

9 years agoRollup merge of #21339 - thorncp:api-docs-search, r=alexcrichton
Barosl LEE [Tue, 20 Jan 2015 17:16:48 +0000 (02:16 +0900)]
Rollup merge of #21339 - thorncp:api-docs-search, r=alexcrichton

Increases the delay of the search box to 500ms after key up. I tried
adding a three character minimum for setting the delay, but didn't find
it very useful.

Should close #20095

@Jurily, your input is welcome!

9 years agoRollup merge of #21336 - rylev:better-nofile-error, r=brson
Barosl LEE [Tue, 20 Jan 2015 17:16:48 +0000 (02:16 +0900)]
Rollup merge of #21336 - rylev:better-nofile-error, r=brson

Contribution from @look!

Addresses https://github.com/rust-lang/rust/issues/21329

9 years agoRollup merge of #21331 - michaelsproul:sync-error-impls, r=alexcrichton
Barosl LEE [Tue, 20 Jan 2015 17:16:47 +0000 (02:16 +0900)]
Rollup merge of #21331 - michaelsproul:sync-error-impls, r=alexcrichton

Two errors in `std::sync` are currently missing implementations of the standard error trait because they contain types which aren't `Send`.

This PR therefore requires #21312.

9 years agoRollup merge of #21048 - aroben:patch-1, r=steveklabnik
Barosl LEE [Tue, 20 Jan 2015 17:16:47 +0000 (02:16 +0900)]
Rollup merge of #21048 - aroben:patch-1, r=steveklabnik

Now both the enum values and the prose describing them mention the values in the same order.

9 years agoRollup merge of #21326 - look:nano-syntax-highlighting, r=kmcallister
Barosl LEE [Tue, 20 Jan 2015 17:16:47 +0000 (02:16 +0900)]
Rollup merge of #21326 - look:nano-syntax-highlighting, r=kmcallister

rust.nanorc provides syntax highlighting for Rust. An attempt has been made to make the syntax highlighting look good on both dark and light terminals. Issue #21286.

This PR is dedicated to @substars and nano-lovers everywhere.

9 years agoRollup merge of #21314 - fenhl:patch-1, r=steveklbanik
Barosl LEE [Tue, 20 Jan 2015 17:16:47 +0000 (02:16 +0900)]
Rollup merge of #21314 - fenhl:patch-1, r=steveklbanik

See [this document](https://gist.github.com/0xabad1dea/8870b192fd1758743f66) by @0xabad1dea for the rationale.

9 years agoRollup merge of #21312 - michaelsproul:remove-error-send-bound, r=aturon
Barosl LEE [Tue, 20 Jan 2015 17:16:47 +0000 (02:16 +0900)]
Rollup merge of #21312 - michaelsproul:remove-error-send-bound, r=aturon

As discussed with @aturon, this PR removes the `Send` bound from `std::error::Error`, allowing us to implement `Error` for error types containing non-`Send` types. Current examples include `PoisonError` and `TryLockError` from `std::sync` which contain a Guard that we don't want sent between tasks.

[breaking-change]

9 years agoRollup merge of #21309 - thorncp:rustdoc-man-page, r=kmcallister
Barosl LEE [Tue, 20 Jan 2015 17:16:46 +0000 (02:16 +0900)]
Rollup merge of #21309 - thorncp:rustdoc-man-page, r=kmcallister

Brings the rustdoc man page in sync with the options specified in
src/librustdoc/lib.rs. The text was taken verbatim, but I tweaked the
order to be (what I think is) somewhat logical.

This should close #13622.

9 years agoRollup merge of #21302 - gutworth:rm-find-equiv-test, r=brson
Barosl LEE [Tue, 20 Jan 2015 17:16:46 +0000 (02:16 +0900)]
Rollup merge of #21302 - gutworth:rm-find-equiv-test, r=brson

9 years agoRollup merge of #21294 - alfie:typo, r=steveklabnik
Barosl LEE [Tue, 20 Jan 2015 17:16:46 +0000 (02:16 +0900)]
Rollup merge of #21294 - alfie:typo, r=steveklabnik

Wrong verb.

9 years agoRollup merge of #21355 - alfie:suffix, r=steveklabnik
Barosl LEE [Tue, 20 Jan 2015 17:16:46 +0000 (02:16 +0900)]
Rollup merge of #21355 - alfie:suffix, r=steveklabnik

More [u]int => [i|u]size and [i|u] => [i|u]s changes

9 years agoRollup merge of #21280 - timparenti:old-guide-stub-grammar, r=alexcrichton
Barosl LEE [Tue, 20 Jan 2015 17:16:45 +0000 (02:16 +0900)]
Rollup merge of #21280 - timparenti:old-guide-stub-grammar, r=alexcrichton

This removes the extra "the" from the phrase "the the Rust Programming Language book", which isn't particularly grammatical, in stub documents introduced in #20802 to direct users from the old guides to the corresponding sections of the book.

9 years agoRollup merge of #20998 - estsauver:20984, r=steveklabnik
Barosl LEE [Tue, 20 Jan 2015 17:16:45 +0000 (02:16 +0900)]
Rollup merge of #20998 - estsauver:20984, r=steveklabnik

There are a large number of places that incorrectly refer
to deriving in comments, instead of derives.

If someone could look at src/etc/generate-deriving-span-tests.py,
I'm not sure how those tests were passing before/if they were.

9 years agoSmall fix in TRPL 3.9
Steve Klabnik [Tue, 20 Jan 2015 16:36:27 +0000 (11:36 -0500)]
Small fix in TRPL 3.9

Multiple people have asked me if this is a reference to Hacker News, and
I _certainly_ don't want to give them that impression.

9 years agoAuto merge of #19353 - icorderi:docs/grammar, r=steveklabnik
bors [Tue, 20 Jan 2015 16:05:33 +0000 (16:05 +0000)]
Auto merge of #19353 - icorderi:docs/grammar, r=steveklabnik

Original [issue](https://github.com/rust-lang/rust/issues/19278) that inspired this patch.

The [reference.md] has evolved past simple grammatical constructs, and it serves a different purpose.
The intent for the proposed _grammar.md_ is to hold **only** the official reference for the language grammar. This document would keep track of grammatical changes to the language over time, facilitate discussions over proposed changes to the existing grammar, and serve as basis for building parsers by third-parties (IDE's, GitHub linguist, CodeMirror, etc.).

The current state of the PR contains all the grammars that were available in [reference.md] and nothing else.
There are still a lot of missing pieces that weren't available. The following are just a few of the definitions missing:
- [Functions](https://github.com/icorderi/rust/blob/docs/grammar/src/doc/grammar.md#functions)
- [Structures](https://github.com/icorderi/rust/blob/docs/grammar/src/doc/grammar.md#structures)
- [Traits](https://github.com/icorderi/rust/blob/docs/grammar/src/doc/grammar.md#traits)
- [Implementations](https://github.com/icorderi/rust/blob/docs/grammar/src/doc/grammar.md#implementations)
- [Operators](https://github.com/icorderi/rust/blob/docs/grammar/src/doc/grammar.md#unary-operator-expressions)
- [Statements](https://github.com/icorderi/rust/blob/docs/grammar/src/doc/grammar.md#statements)
- [Expressions](https://github.com/icorderi/rust/blob/docs/grammar/src/doc/grammar.md#expressions)

[reference.md]: https://github.com/rust-lang/rust/blob/master/src/doc/reference.md

We need help from people familiar with those grammatical constructs to fill in the missing pieces.

9 years agoForbid coercing &T to &mut T
Seo Sanghyeon [Tue, 20 Jan 2015 13:56:53 +0000 (22:56 +0900)]
Forbid coercing &T to &mut T

9 years agoAuto merge of #21364 - cmr:fix-ttseq-ice, r=alexcrichton
bors [Tue, 20 Jan 2015 13:36:03 +0000 (13:36 +0000)]
Auto merge of #21364 - cmr:fix-ttseq-ice, r=alexcrichton

Closes #21350

9 years agoprettier Buffer::read_until
Oliver Schneider [Fri, 16 Jan 2015 09:49:35 +0000 (10:49 +0100)]
prettier Buffer::read_until

9 years agoCorrect small typos in map.rs.
Toby Scrace [Tue, 20 Jan 2015 12:18:23 +0000 (12:18 +0000)]
Correct small typos in map.rs.

This just corrects a couple of typos in doc comments, and changes some to conform to the Rust guidelines.

9 years agoAvoid suggesting traits multiple times.
Huon Wilson [Tue, 20 Jan 2015 12:09:50 +0000 (23:09 +1100)]
Avoid suggesting traits multiple times.

This is clearly useless, the user doesn't need to know that they could
implement/import `foo::bar::Baz` 4 times.

Fixes #21405.

9 years agoUse assume to inform the optimiser about refcount invariants
James Miller [Tue, 20 Jan 2015 11:46:02 +0000 (00:46 +1300)]
Use assume to inform the optimiser about refcount invariants

The reference count can never be 0, unless we're about to drop the data
completely. Using the `assume` intrinsic allows us to inform LLVM about
that invariant, meaning it can avoid unnecessary drops.

9 years agolibrustc: hint close matches on accessing nonexisting fields
Oliver Schneider [Tue, 20 Jan 2015 09:58:06 +0000 (10:58 +0100)]
librustc: hint close matches on accessing nonexisting fields

9 years agoInitial support for aarch64-linux-android
Eunji Jeong [Tue, 20 Jan 2015 06:03:44 +0000 (15:03 +0900)]
Initial support for aarch64-linux-android

9 years agoRemove unsupported test features from libtest.
Ahmed Charles [Mon, 19 Jan 2015 08:20:55 +0000 (00:20 -0800)]
Remove unsupported test features from libtest.

Removes test-shard, ratchet-metrics, boxplot, stats and save-metrics
from Config in libtest/lib.rs.

9 years agoRemove unsupported test features from compiletest.
Ahmed Charles [Mon, 19 Jan 2015 08:20:31 +0000 (00:20 -0800)]
Remove unsupported test features from compiletest.

Removes test-shard, ratchet-metrics and save-metrics from Config in
compiletest/common.rs.