]> git.lizzy.rs Git - rust.git/log
rust.git
9 years agoRollup merge of #21325 - nagisa:thread-panicking, r=steveklabnik
Steve Klabnik [Thu, 22 Jan 2015 23:09:58 +0000 (18:09 -0500)]
Rollup merge of #21325 - nagisa:thread-panicking, r=steveklabnik

Previous wording wasn’t clear about its actual behaviour. It could be
interpreted as answering either:

* Can current thread panic?
* Is current thread unwinding because of panic?

r? @steveklabnik

9 years agoRollup merge of #21217 - Gankro:docadoca, r=steveklabnik
Steve Klabnik [Thu, 22 Jan 2015 23:09:58 +0000 (18:09 -0500)]
Rollup merge of #21217 - Gankro:docadoca, r=steveklabnik

Not sure on what *exactly* should be said here, but I think this is the most important bit. This PR also establishes conventions for describing performance minimally.

I suggest to describe preformance for individual methods we use a `# Performance` heading. Not sure if we should have

```
# Performance: O(1)
details details
```
or

```
# Performance:
O(1)
details details
```

Since I think most methods don't need discussion, the former seems more resonable. But it's kind of weird to have info "in" the heading.

r? @steveklabnik

9 years agoRollup merge of #21091 - steveklabnik:add_attribute_docs, r=huonw
Steve Klabnik [Thu, 22 Jan 2015 23:09:57 +0000 (18:09 -0500)]
Rollup merge of #21091 - steveklabnik:add_attribute_docs, r=huonw

Fixes #6444

I need some help with the macro docs here, as I couldn't figure it out. @kmcallister @eddyb  or someone else?

9 years agoRollup merge of #21056 - steveklabnik:return_strings, r=sfackler
Steve Klabnik [Thu, 22 Jan 2015 23:09:57 +0000 (18:09 -0500)]
Rollup merge of #21056 - steveklabnik:return_strings, r=sfackler

When we moved over to the book, we lost this.

9 years agoDocument remaining attributes and macros
Steve Klabnik [Tue, 13 Jan 2015 14:38:07 +0000 (09:38 -0500)]
Document remaining attributes and macros

Fixes #6444

9 years agoBeef up docs for Box<T>
Steve Klabnik [Thu, 22 Jan 2015 17:07:23 +0000 (12:07 -0500)]
Beef up docs for Box<T>

9 years agoFix some grammar inconsistencies for the '..' range notation.
Daniel Grunwald [Sun, 18 Jan 2015 20:43:03 +0000 (21:43 +0100)]
Fix some grammar inconsistencies for the '..' range notation.

Grammar changes:
* allow 'for _ in 1..i {}' (fixes #20241)
* allow 'for _ in 1.. {}' as infinite loop
* prevent use of range notation in contexts where only operators of high
  precedence are expected (fixes #20811)

Parser code cleanup:
* remove RESTRICTION_NO_DOTS
* make AS_PREC const and follow naming convention
* make min_prec inclusive

9 years agoAttempt fix for assertion on Windows, and add extra output for debugging.
Sean Patrick Santos [Thu, 22 Jan 2015 18:54:45 +0000 (11:54 -0700)]
Attempt fix for assertion on Windows, and add extra output for debugging.

9 years agoBetter inline assembly errors
John Kåre Alsaker [Thu, 22 Jan 2015 18:43:39 +0000 (19:43 +0100)]
Better inline assembly errors

9 years agoAdd test for `has_test_signature` for explicit return
blackbeam [Thu, 22 Jan 2015 18:38:00 +0000 (21:38 +0300)]
Add test for `has_test_signature` for explicit return

9 years agoReturn the String guide to its former glory.
Steve Klabnik [Mon, 12 Jan 2015 22:36:05 +0000 (17:36 -0500)]
Return the String guide to its former glory.

When we moved over to the book, we lost this.

9 years agoReference correct fn during lifetime ellision
Sean T Allen [Thu, 22 Jan 2015 18:00:15 +0000 (13:00 -0500)]
Reference correct fn during lifetime ellision

9 years agoAuto merge of #21078 - js-ojus:master, r=steveklabnik
bors [Thu, 22 Jan 2015 16:50:17 +0000 (16:50 +0000)]
Auto merge of #21078 - js-ojus:master, r=steveklabnik

* Include an illustration of a function that accepts two closures.

9 years agoAuto merge of #21187 - oli-obk:feature/hint_struct_field_access, r=alexcrichton
bors [Thu, 22 Jan 2015 12:09:02 +0000 (12:09 +0000)]
Auto merge of #21187 - oli-obk:feature/hint_struct_field_access, r=alexcrichton

rebase and fix of #19267

9 years agolibsyntax: fix for `has_test_signature`
blackbeam [Thu, 22 Jan 2015 09:29:49 +0000 (12:29 +0300)]
libsyntax: fix for `has_test_signature`

9 years agocore::marker: s/task/thread/
P1start [Thu, 22 Jan 2015 09:22:16 +0000 (22:22 +1300)]
core::marker: s/task/thread/

9 years agoAdd `#[rustc_on_unimplemented]` annotations to more traits
P1start [Tue, 20 Jan 2015 22:04:17 +0000 (11:04 +1300)]
Add `#[rustc_on_unimplemented]` annotations to more traits

9 years agoRemove remaining stats and boxplot code.
Ahmed Charles [Wed, 21 Jan 2015 12:39:27 +0000 (04:39 -0800)]
Remove remaining stats and boxplot code.

9 years agoMake fmt_metrics() part of the impl.
Ahmed Charles [Wed, 21 Jan 2015 11:09:44 +0000 (03:09 -0800)]
Make fmt_metrics() part of the impl.

9 years agoRemove save() and load().
Ahmed Charles [Wed, 21 Jan 2015 10:31:15 +0000 (02:31 -0800)]
Remove save() and load().

9 years agoCleanup write_run_finish().
Ahmed Charles [Wed, 21 Jan 2015 09:45:24 +0000 (01:45 -0800)]
Cleanup write_run_finish().

9 years agopowerpc: Fix liblibc
Richo Healey [Thu, 22 Jan 2015 04:56:08 +0000 (20:56 -0800)]
powerpc: Fix liblibc

When I wrote this code, my janky shim to verify the constants didn't
work as intended.

This fixes everything I've run into since merge, which is hopefully
everything.

9 years agoAuto merge of #21473 - alexcrichton:rollup, r=alexcrichton
bors [Thu, 22 Jan 2015 06:12:46 +0000 (06:12 +0000)]
Auto merge of #21473 - alexcrichton:rollup, r=alexcrichton

9 years agoMake diagnostic ordering deterministic
Alex Crichton [Wed, 21 Jan 2015 22:32:54 +0000 (14:32 -0800)]
Make diagnostic ordering deterministic

9 years agoMake compiletest set an environment variable so that on Windows 32-bit test executabl...
KernelJ [Thu, 22 Jan 2015 03:41:32 +0000 (03:41 +0000)]
Make compiletest set an environment variable so that on Windows 32-bit test executables containing certain substrings (e.g. 'install', 'setup', 'update', 'patch') are not blocked by UAC's Installer Detection Technology.

9 years agoAdd test cases for ExactSizeIterator impls
Steven Allen [Wed, 21 Jan 2015 21:38:50 +0000 (16:38 -0500)]
Add test cases for ExactSizeIterator impls

ByRef is not tested included because it is a trivial pass through.

9 years agoadd doc examples for connect/concat
Steve Klabnik [Wed, 21 Jan 2015 22:56:33 +0000 (17:56 -0500)]
add doc examples for connect/concat

9 years agoRevert "Use assume to inform the optimiser about refcount invariants"
Alex Crichton [Wed, 21 Jan 2015 21:55:14 +0000 (13:55 -0800)]
Revert "Use assume to inform the optimiser about refcount invariants"

This reverts commit a729a404945de10f99e2530a5c28952996532b29.

9 years agoRevert "Add assumptions that the pointer is non-null"
Alex Crichton [Wed, 21 Jan 2015 21:55:11 +0000 (13:55 -0800)]
Revert "Add assumptions that the pointer is non-null"

This reverts commit 9bbfd681c9fa47f462a89e8f5eedd3fa2a5de2e7.

9 years agoRevert "Add more explanation for why the assumes are there"
Alex Crichton [Wed, 21 Jan 2015 21:55:04 +0000 (13:55 -0800)]
Revert "Add more explanation for why the assumes are there"

This reverts commit a7525bc4c8eb8507a5c248d29286e77133217cf3.

9 years agoMore test fixes and rebase conflicts
Alex Crichton [Wed, 21 Jan 2015 19:56:52 +0000 (11:56 -0800)]
More test fixes and rebase conflicts

9 years agoMove rustdoc.md into the book
Steve Klabnik [Wed, 21 Jan 2015 19:59:25 +0000 (14:59 -0500)]
Move rustdoc.md into the book

Fixes #21430

9 years agorollup merge of #20179: eddyb/blind-items
Alex Crichton [Wed, 21 Jan 2015 19:56:00 +0000 (11:56 -0800)]
rollup merge of #20179: eddyb/blind-items

Conflicts:
src/librustc/diagnostics.rs
src/librustdoc/clean/mod.rs
src/librustdoc/html/format.rs
src/libsyntax/parse/parser.rs

9 years agoImprove RwLock::new's docs
Steve Klabnik [Wed, 21 Jan 2015 19:54:17 +0000 (14:54 -0500)]
Improve RwLock::new's docs

Fixes #21440"

9 years agorollup merge of #21258: aturon/stab-3-index
Alex Crichton [Wed, 21 Jan 2015 19:53:49 +0000 (11:53 -0800)]
rollup merge of #21258: aturon/stab-3-index

Conflicts:
src/libcore/ops.rs
src/librustc_typeck/astconv.rs
src/libstd/io/mem.rs
src/libsyntax/parse/lexer/mod.rs

9 years agorollup merge of #21252: nikomatsakis/assoc-type-ice-hunt-take-2
Alex Crichton [Wed, 21 Jan 2015 19:51:10 +0000 (11:51 -0800)]
rollup merge of #21252: nikomatsakis/assoc-type-ice-hunt-take-2

Project region bounds out of the trait when deciding whether a projection type outlives a given regions.

Fixes #20890.
Fixes #21150.

9 years agorollup merge of #20642: michaelwoerister/sane-source-locations-pt1
Alex Crichton [Wed, 21 Jan 2015 19:50:34 +0000 (11:50 -0800)]
rollup merge of #20642: michaelwoerister/sane-source-locations-pt1

Conflicts:
src/librustc_trans/trans/debuginfo.rs

9 years agoMove regression test for #20971 into run-fail, since it panics.
Niko Matsakis [Wed, 21 Jan 2015 19:35:41 +0000 (14:35 -0500)]
Move regression test for #20971 into run-fail, since it panics.

9 years agoFix type inference problems in tests and docs
Aaron Turon [Wed, 21 Jan 2015 19:16:00 +0000 (11:16 -0800)]
Fix type inference problems in tests and docs

9 years agoTest fixes and rebase conflicts
Alex Crichton [Wed, 21 Jan 2015 17:23:27 +0000 (09:23 -0800)]
Test fixes and rebase conflicts

9 years agoDeny imports after non-item statements.
Eduard Burtescu [Tue, 13 Jan 2015 09:39:05 +0000 (11:39 +0200)]
Deny imports after non-item statements.

9 years agoAdded another test with success local-item shadowing
Eduard Burtescu [Tue, 13 Jan 2015 08:11:34 +0000 (10:11 +0200)]
Added another test with success local-item shadowing

9 years agoAdded some tests for arbitrary ordered view items
Marvin Löbel [Fri, 2 Jan 2015 00:13:57 +0000 (01:13 +0100)]
Added some tests for arbitrary ordered view items

9 years agotests: fix fallout of merging ast::ViewItem into ast::Item.
Eduard Burtescu [Fri, 26 Dec 2014 21:36:21 +0000 (23:36 +0200)]
tests: fix fallout of merging ast::ViewItem into ast::Item.

9 years agoExplain that RefCell is single-threaded.
Steve Klabnik [Wed, 21 Jan 2015 17:43:34 +0000 (12:43 -0500)]
Explain that RefCell is single-threaded.

Fixes #21469.

9 years agodebuginfo: Fix issue with associated types and struct fields
Michael Woerister [Wed, 21 Jan 2015 16:10:02 +0000 (17:10 +0100)]
debuginfo: Fix issue with associated types and struct fields

9 years agorollup merge of #21463: sanxiyn/demut
Alex Crichton [Wed, 21 Jan 2015 17:21:09 +0000 (09:21 -0800)]
rollup merge of #21463: sanxiyn/demut

9 years agorollup merge of #21462: ahmedcharles/remove-ratchet
Alex Crichton [Wed, 21 Jan 2015 17:21:06 +0000 (09:21 -0800)]
rollup merge of #21462: ahmedcharles/remove-ratchet

Conflicts:
src/libtest/lib.rs

9 years agorollup merge of #21457: alexcrichton/issue-21436
Alex Crichton [Wed, 21 Jan 2015 17:20:35 +0000 (09:20 -0800)]
rollup merge of #21457: alexcrichton/issue-21436

Conflicts:
src/liballoc/boxed.rs
src/librustc/middle/traits/error_reporting.rs
src/libstd/sync/mpsc/mod.rs

9 years agorollup merge of #21447: cmr/master
Alex Crichton [Wed, 21 Jan 2015 17:19:03 +0000 (09:19 -0800)]
rollup merge of #21447: cmr/master

Closes #13971

9 years agorollup merge of #21446: stepancheg/boxed-test
Alex Crichton [Wed, 21 Jan 2015 17:18:56 +0000 (09:18 -0800)]
rollup merge of #21446: stepancheg/boxed-test

Conflicts:
src/liballoc/boxed.rs

9 years agorollup merge of #21444: petrochenkov/null
Alex Crichton [Wed, 21 Jan 2015 17:18:07 +0000 (09:18 -0800)]
rollup merge of #21444: petrochenkov/null

Conflicts:
src/libstd/sync/mpsc/select.rs

9 years agorollup merge of #21441: alexcrichton/rustc-opts
Alex Crichton [Wed, 21 Jan 2015 17:17:43 +0000 (09:17 -0800)]
rollup merge of #21441: alexcrichton/rustc-opts

This is a bit of cleanup work to clean out some old deprecated flags and deprecated lint names from the compiler (they've been deprecated for quite awhile now).

This also notably puts `--pretty` behind the `-Z unstable-options` flag (where it was supposed to be previously).

9 years agorollup merge of #21438: taralx/kill-racycell
Alex Crichton [Wed, 21 Jan 2015 17:17:40 +0000 (09:17 -0800)]
rollup merge of #21438: taralx/kill-racycell

Conflicts:
src/libstd/sync/mpsc/mod.rs

9 years agorollup merge of #21437: FlaPer87/snapshot
Alex Crichton [Wed, 21 Jan 2015 17:16:40 +0000 (09:16 -0800)]
rollup merge of #21437: FlaPer87/snapshot

r? @alexcrichton

9 years agorollup merge of #21433: alfie/typobook
Alex Crichton [Wed, 21 Jan 2015 17:16:38 +0000 (09:16 -0800)]
rollup merge of #21433: alfie/typobook

Tiny fix

9 years agorollup merge of #21429: GuillaumeGomez/macro-fix
Alex Crichton [Wed, 21 Jan 2015 17:16:37 +0000 (09:16 -0800)]
rollup merge of #21429: GuillaumeGomez/macro-fix

This is little clean code of this PR: #21366. I patched the same thing as aochagavia but too slowly obviously. This is a merge of our two codes, more "rust-like".

9 years agorollup merge of #21423: oli-obk/prettier_read_until
Alex Crichton [Wed, 21 Jan 2015 17:16:33 +0000 (09:16 -0800)]
rollup merge of #21423: oli-obk/prettier_read_until

Conflicts:
src/libstd/io/mod.rs

9 years agorollup merge of #21421: huonw/one-suggestion-per-trait
Alex Crichton [Wed, 21 Jan 2015 17:16:05 +0000 (09:16 -0800)]
rollup merge of #21421: huonw/one-suggestion-per-trait

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 agorollup merge of #21419: Toby-S/patch-1
Alex Crichton [Wed, 21 Jan 2015 17:16:03 +0000 (09:16 -0800)]
rollup merge of #21419: Toby-S/patch-1

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

9 years agorollup merge of #21418: Aatch/assume-refcount
Alex Crichton [Wed, 21 Jan 2015 17:16:01 +0000 (09:16 -0800)]
rollup merge of #21418: Aatch/assume-refcount

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.

---

Before and after IR: https://gist.github.com/Aatch/3786d20df2edaad6a0e8

Generated from the example in #13018

Fixes #13018

9 years agorollup merge of #21414: ejjeong/aarch64-linux-android
Alex Crichton [Wed, 21 Jan 2015 17:15:59 +0000 (09:15 -0800)]
rollup merge of #21414: ejjeong/aarch64-linux-android

Initial support for aarch64-linux-android (#18920)
- Add new configuration files
- Modify some options to compile & link succesfully.
  (PIE, disable tls on jemalloc, modify some external function linkage, ..)
- To build, refer to https://github.com/rust-lang/rust/wiki/Doc-building-for-android.
   (tested with platform=21 and toolchain=aarch64-linux-android-4.9)

9 years agorollup merge of #21413: ahmedcharles/remove-test-features
Alex Crichton [Wed, 21 Jan 2015 17:15:57 +0000 (09:15 -0800)]
rollup merge of #21413: ahmedcharles/remove-test-features

This isn't the entire set of changes, there are more coming. #19145

9 years agorollup merge of #21411: P1start/help-tweaks
Alex Crichton [Wed, 21 Jan 2015 17:15:54 +0000 (09:15 -0800)]
rollup merge of #21411: P1start/help-tweaks

Conflicts:
src/librustc_typeck/check/closure.rs

9 years agorollup merge of #21396: japaric/no-parens-in-range
Alex Crichton [Wed, 21 Jan 2015 17:15:15 +0000 (09:15 -0800)]
rollup merge of #21396: japaric/no-parens-in-range

Conflicts:
src/libsyntax/parse/lexer/comments.rs

9 years agorollup merge of #21394: japaric/nonono
Alex Crichton [Wed, 21 Jan 2015 17:14:42 +0000 (09:14 -0800)]
rollup merge of #21394: japaric/nonono

r? @FlaPer87

9 years agorollup merge of #21393: loganchien/fix-if-stmt-doc-title
Alex Crichton [Wed, 21 Jan 2015 17:14:41 +0000 (09:14 -0800)]
rollup merge of #21393: loganchien/fix-if-stmt-doc-title

Slightly change the title to make it look more consistent with other chapters (e.g. Match.)

9 years agorollup merge of #21392: japaric/iter
Alex Crichton [Wed, 21 Jan 2015 17:14:39 +0000 (09:14 -0800)]
rollup merge of #21392: japaric/iter

closes #20953
closes #21361

---

In the future, we will likely derive these `impl`s via syntax extensions or using compiler magic (see #20617). For the time being we can use these manual `impl`s.

r? @aturon
cc @burntsushi @Kroisse

9 years agorollup merge of #21391: klutzy/rt-time-cleanup
Alex Crichton [Wed, 21 Jan 2015 17:14:37 +0000 (09:14 -0800)]
rollup merge of #21391: klutzy/rt-time-cleanup

They are unused since libtime is gone.

cc #20861

9 years agorollup merge of #21389: retep998/timer
Alex Crichton [Wed, 21 Jan 2015 17:14:36 +0000 (09:14 -0800)]
rollup merge of #21389: retep998/timer

Fixes #20943 and adds a test for it
r? @alexcrichton

9 years agorollup merge of #21372: arielb1/remove-the-box
Alex Crichton [Wed, 21 Jan 2015 17:14:34 +0000 (09:14 -0800)]
rollup merge of #21372: arielb1/remove-the-box

It is not used anymore

9 years agorollup merge of #21368: tomjakubowski/rustdoc-miscellany
Alex Crichton [Wed, 21 Jan 2015 17:14:30 +0000 (09:14 -0800)]
rollup merge of #21368: tomjakubowski/rustdoc-miscellany

Conflicts:
src/librustdoc/clean/mod.rs

9 years agorollup merge of #21367: steveklabnik/remove_gate
Alex Crichton [Wed, 21 Jan 2015 17:13:57 +0000 (09:13 -0800)]
rollup merge of #21367: steveklabnik/remove_gate

This gate was `Accepted`, so we shouldn't need these.

9 years agorollup merge of #21354: eddyb/vec-ufcs
Alex Crichton [Wed, 21 Jan 2015 17:13:55 +0000 (09:13 -0800)]
rollup merge of #21354: eddyb/vec-ufcs

There are two limitations to the macro that this addresses:
1. the expected type is not propagated, coercions don't trigger
2. references inside element expressions don't outlive the `Vec`

Both of these limitations are caused by the block in the
macro expansion, previously needed to trigger a coercion
from `Box<[T; N]>` to `Box<[T]>`, now possible with UFCS.

9 years agorollup merge of #21342: Diggsey/issue-21310
Alex Crichton [Wed, 21 Jan 2015 17:13:53 +0000 (09:13 -0800)]
rollup merge of #21342: Diggsey/issue-21310

Fixes #21310

9 years agorollup merge of #21340: pshc/libsyntax-no-more-ints
Alex Crichton [Wed, 21 Jan 2015 17:13:51 +0000 (09:13 -0800)]
rollup merge of #21340: pshc/libsyntax-no-more-ints

Collaboration with @rylev!

I didn't change `int` in the [quasi-quoter](https://github.com/pshc/rust/blob/99ae1a30f3ca28c0f7e431620560d30e44627124/src/libsyntax/ext/quote.rs#L328), because I'm not sure if there will be adverse effects.

Addresses #21095.

9 years agorollup merge of #21333: stepancheg/trans-write-diag
Alex Crichton [Wed, 21 Jan 2015 17:13:49 +0000 (09:13 -0800)]
rollup merge of #21333: stepancheg/trans-write-diag

File cannot be written, for example, if directory does not exist.

Before this commit:

```
% rustc -o nonexistent/program program.rs
error: could not write output: No such file or directory
```

With this commit:

```
% rustc -o nonexistent/program program.rs
error: could not write output to nonexistent/program.0.o: No such file or directory
```

This is useful when full rust command is not displayed, or when last error is followed by thousands of warnings.

9 years agorollup merge of #21289: brson/errorcodes
Alex Crichton [Wed, 21 Jan 2015 17:13:46 +0000 (09:13 -0800)]
rollup merge of #21289: brson/errorcodes

This does the bare minimum to make registration of error codes work again. After this patch, every call to `span_err!` with an error code gets that error code validated against a list in that crate and a new tidy script `errorck.py` validates that no error codes are duplicated globally.

There are further improvements to be made yet, detailed in #19624.

r? @nikomatsakis

9 years agorollup merge of #21274: estsauver/21270
Alex Crichton [Wed, 21 Jan 2015 17:13:43 +0000 (09:13 -0800)]
rollup merge of #21274: estsauver/21270

The timezone of the server that builds rustc nightlies
appears to be in UTC. From what I can tell, it builds
the nightlies at 0300 UTC, which takes about ~15 minutes.
So, there were a couple options here for which offset to use.

UTC+3 would ensure that you always got the latest rust, but it
would mean the script is broken ~15/20 minutes a day. UTC+4
means users get a stale nightly for 45 minutes, but that feels
okay to me.

Ideally, buildbot would publish the "current" nightly, but
that seems unneeded relative to fixing it for all Timezones
quickly.

Fixes #21270

9 years agorollup merge of #21157: steveklabnik/deprecation
Alex Crichton [Wed, 21 Jan 2015 17:13:42 +0000 (09:13 -0800)]
rollup merge of #21157: steveklabnik/deprecation

9 years agorollup merge of #21138: mkpankov/master
Alex Crichton [Wed, 21 Jan 2015 17:13:40 +0000 (09:13 -0800)]
rollup merge of #21138: mkpankov/master

When combined with '--save' and '--date', it uses previously saved
tarball, making possible to re-install in offline mode.
r?

9 years agorollup merge of #21053: apasel422/exact
Alex Crichton [Wed, 21 Jan 2015 17:13:38 +0000 (09:13 -0800)]
rollup merge of #21053: apasel422/exact

9 years agorollup merge of #19913: KOMON/rust-mode-emacs-indentation
Alex Crichton [Wed, 21 Jan 2015 17:13:36 +0000 (09:13 -0800)]
rollup merge of #19913: KOMON/rust-mode-emacs-indentation

I added an option to auto-indent method chains to line up along their '.' operators. Like so:

```
let input = io::stdin().readline()
                       .ok()
                       .expect("Failed to read line");
```

The old default would indent like so:
```
let input = io::stdin().readme()
    .ok()
    .expect("Failed to read line");
```

The Rust guide explicitly condones the former, so I thought it would be nice for the emacs mode to support it. It's off by default, you have to set ```rust-indent-method-chain``` to ```t``` via your .emacs or the customize menu

9 years agoUse the default `len` implementation in ExactSizeIterator impls
Steven Allen [Wed, 21 Jan 2015 05:14:04 +0000 (00:14 -0500)]
Use the default `len` implementation in ExactSizeIterator impls

9 years agoImprove quality of String#to_slice() deprecation message
Steve Klabnik [Wed, 14 Jan 2015 21:05:32 +0000 (16:05 -0500)]
Improve quality of String#to_slice() deprecation message

9 years agoChange init-large-type to use child thread
Aaron Turon [Wed, 21 Jan 2015 00:37:00 +0000 (16:37 -0800)]
Change init-large-type to use child thread

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).