]> git.lizzy.rs Git - rust.git/log
rust.git
9 years agoTRPL: Remove Duplicate Reference
Pascal Hertleif [Fri, 15 May 2015 10:23:26 +0000 (12:23 +0200)]
TRPL: Remove Duplicate Reference

Pandoc shows a warning for this. I'm not sure if it's actually invalid Markdown.

9 years agoAuto merge of #25422 - cactorium:unsafe_errors, r=huonw
bors [Fri, 15 May 2015 06:40:20 +0000 (06:40 +0000)]
Auto merge of #25422 - cactorium:unsafe_errors, r=huonw

For https://github.com/rust-lang/rust/issues/24407

9 years agoAdd backticks around language keyword
Kelvin Ly [Fri, 15 May 2015 04:07:01 +0000 (00:07 -0400)]
Add backticks around language keyword

9 years agoAuto merge of #25419 - nrc:time, r=alexcrichton
bors [Fri, 15 May 2015 03:46:42 +0000 (03:46 +0000)]
Auto merge of #25419 - nrc:time, r=alexcrichton

r? @alexcrichton

9 years agoAuto merge of #25421 - steveklabnik:rollup, r=steveklabnik
bors [Fri, 15 May 2015 01:53:03 +0000 (01:53 +0000)]
Auto merge of #25421 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #25404, #25405, #25407, #25408, #25410, #25412, #25413, #25414, #25418, #25420
- Failed merges:

9 years agoFix merge conflict and also add markdown formatting
Kelvin Ly [Fri, 15 May 2015 00:45:18 +0000 (20:45 -0400)]
Fix merge conflict and also add markdown formatting

9 years agoRollup merge of #25420 - habnabit:master, r=steveklabnik
Steve Klabnik [Fri, 15 May 2015 00:30:44 +0000 (20:30 -0400)]
Rollup merge of #25420 - habnabit:master, r=steveklabnik

It seems to refer to something that used to exist, but got moved, and then not everything got cleaned up.

9 years agoRollup merge of #25418 - leunggamciu:patch-trpl, r=steveklabnik
Steve Klabnik [Fri, 15 May 2015 00:30:43 +0000 (20:30 -0400)]
Rollup merge of #25418 - leunggamciu:patch-trpl, r=steveklabnik

9 years agoRollup merge of #25414 - apasel422:patch-1, r=alexcrichton
Steve Klabnik [Fri, 15 May 2015 00:30:43 +0000 (20:30 -0400)]
Rollup merge of #25414 - apasel422:patch-1, r=alexcrichton

9 years agoRollup merge of #25413 - killercup:patch-11, r=alexcrichton
Steve Klabnik [Fri, 15 May 2015 00:30:43 +0000 (20:30 -0400)]
Rollup merge of #25413 - killercup:patch-11, r=alexcrichton

r? @steveklabnik

9 years agoRollup merge of #25412 - koute:master, r=alexcrichton
Steve Klabnik [Fri, 15 May 2015 00:30:43 +0000 (20:30 -0400)]
Rollup merge of #25412 - koute:master, r=alexcrichton

Every time I profile my code I find something new to add #[inline] to. (:

9 years agoRollup merge of #25410 - durka:patch-2, r=steveklabnik
Steve Klabnik [Fri, 15 May 2015 00:30:42 +0000 (20:30 -0400)]
Rollup merge of #25410 - durka:patch-2, r=steveklabnik

9 years agoRollup merge of #25408 - Nashenas88:rust-book-stack-and-heap-typo, r=steveklabnik
Steve Klabnik [Fri, 15 May 2015 00:30:42 +0000 (20:30 -0400)]
Rollup merge of #25408 - Nashenas88:rust-book-stack-and-heap-typo, r=steveklabnik

I fixed the typo of the value of e in the memory tables. It is a reference to d, and so it should contain the memory location of d. I also fixed the incorrectly formatted tables so they display properly in html pages.

9 years agoRollup merge of #25407 - durka:patch-1, r=alexcrichton
Steve Klabnik [Fri, 15 May 2015 00:30:42 +0000 (20:30 -0400)]
Rollup merge of #25407 - durka:patch-1, r=alexcrichton

9 years agoRollup merge of #25405 - dreid:patch-3, r=nikomatsakis
Steve Klabnik [Fri, 15 May 2015 00:30:42 +0000 (20:30 -0400)]
Rollup merge of #25405 - dreid:patch-3, r=nikomatsakis

9 years agoRollup merge of #25404 - dnaeon:doc-fixes, r=steveklabnik
Steve Klabnik [Fri, 15 May 2015 00:30:41 +0000 (20:30 -0400)]
Rollup merge of #25404 - dnaeon:doc-fixes, r=steveklabnik

This PR fixes a comment in the `while Loops` section of the Rust book with the correct type of a variable binding.

9 years agoFix error codes E0197-E0200
Kelvin Ly [Fri, 15 May 2015 00:08:30 +0000 (20:08 -0400)]
Fix error codes E0197-E0200

9 years agoAuto merge of #25399 - kballard:crate-attributes-cfg_attr, r=alexcrichton
bors [Fri, 15 May 2015 00:06:56 +0000 (00:06 +0000)]
Auto merge of #25399 - kballard:crate-attributes-cfg_attr, r=alexcrichton

Stripping unconfigured items prior to collecting crate metadata means we
can say things like `#![cfg_attr(foo, crate_type="lib")]`.

Fixes #25347.

9 years agoRemove an almost-duplicated sentence.
Aaron Gallagher [Fri, 15 May 2015 00:04:00 +0000 (17:04 -0700)]
Remove an almost-duplicated sentence.

It seems to refer to something that used to exist, but got moved, and
then not everything got cleaned up.

9 years agoDon't use <Duration as Display>::display() in time passes
Nick Cameron [Thu, 14 May 2015 22:55:23 +0000 (10:55 +1200)]
Don't use <Duration as Display>::display() in time passes

9 years agotrpl: Fix missing internal links
leunggamciu [Thu, 14 May 2015 22:25:01 +0000 (06:25 +0800)]
trpl: Fix missing internal links

9 years agoAuto merge of #25403 - Manishearth:rollup, r=Manishearth
bors [Thu, 14 May 2015 20:03:39 +0000 (20:03 +0000)]
Auto merge of #25403 - Manishearth:rollup, r=Manishearth

- Successful merges: #25354, #25381, #25391, #25395, #25397, #25398, #25401
- Failed merges:

9 years agos/Iterater/Iterator/
Andrew Paseltiner [Thu, 14 May 2015 19:57:33 +0000 (15:57 -0400)]
s/Iterater/Iterator/

9 years agoTRPL: Fix Internal Link
Pascal Hertleif [Thu, 14 May 2015 19:24:09 +0000 (21:24 +0200)]
TRPL: Fix Internal Link

9 years agoAdd #[inline] to Borrow<str>::borrow for String.
Jan Bujak [Thu, 14 May 2015 18:54:02 +0000 (20:54 +0200)]
Add #[inline] to Borrow<str>::borrow for String.

9 years agotrpl: punctuation fix in Patterns
Alex Burka [Thu, 14 May 2015 18:51:16 +0000 (14:51 -0400)]
trpl: punctuation fix in Patterns

9 years agotrpl: fix link from Match to If Let
Alex Burka [Thu, 14 May 2015 18:43:50 +0000 (14:43 -0400)]
trpl: fix link from Match to If Let

9 years agotrpl: fix link from Enums to Traits
Alex Burka [Thu, 14 May 2015 18:35:46 +0000 (14:35 -0400)]
trpl: fix link from Enums to Traits

9 years agotrpl: fix link from Structs to Traits
Alex Burka [Thu, 14 May 2015 18:20:24 +0000 (14:20 -0400)]
trpl: fix link from Structs to Traits

9 years agoAuto merge of #24920 - alexcrichton:duration, r=aturon
bors [Thu, 14 May 2015 18:18:39 +0000 (18:18 +0000)]
Auto merge of #24920 - alexcrichton:duration, r=aturon

This commit is an implementation of [RFC 1040][rfc] which is a redesign of the
currently-unstable `Duration` type. The API of the type has been scaled back to
be more conservative and it also no longer supports negative durations.

[rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1040-duration-reform.md

The inner `duration` module of the `time` module has now been hidden (as
`Duration` is reexported) and the feature name for this type has changed from
`std_misc` to `duration`. All APIs accepting durations have also been audited to
take a more flavorful feature name instead of `std_misc`.

Closes #24874

9 years agoI fixed the typo of the value of e in the memory tables. It is a reference to d,...
Paul Faria [Thu, 14 May 2015 17:43:11 +0000 (13:43 -0400)]
I fixed the typo of the value of e in the memory tables. It is a reference to d, and so it should contain the memory location of d. I also fixed the incorrectly formatted tables.

9 years agoMove configuration 1 phase before crate metadata collection
Kevin Ballard [Thu, 14 May 2015 07:54:05 +0000 (00:54 -0700)]
Move configuration 1 phase before crate metadata collection

Stripping unconfigured items prior to collecting crate metadata means we
can say things like `#![cfg_attr(foo, crate_type="lib")]`.

Fixes #25347.

9 years agotrpl: punctuation fix
Alex Burka [Thu, 14 May 2015 16:20:33 +0000 (12:20 -0400)]
trpl: punctuation fix

9 years agoAnother thread->task fix.
David Reid [Thu, 14 May 2015 15:15:50 +0000 (08:15 -0700)]
Another thread->task fix.

9 years agotrpl-docs: Specify correct type of variable binding
Marin Atanasov Nikolov [Thu, 14 May 2015 14:38:22 +0000 (17:38 +0300)]
trpl-docs: Specify correct type of variable binding

9 years agoRollup merge of #25401 - WiSaGaN:bugfix/fix_crates_io_link, r=steveklabnik
Manish Goregaokar [Thu, 14 May 2015 14:03:10 +0000 (19:33 +0530)]
Rollup merge of #25401 - WiSaGaN:bugfix/fix_crates_io_link, r=steveklabnik

Minor link fix for crates.io.

9 years agoRollup merge of #25398 - nham:E0066_E0069, r=huonw
Manish Goregaokar [Thu, 14 May 2015 14:03:10 +0000 (19:33 +0530)]
Rollup merge of #25398 - nham:E0066_E0069, r=huonw

Adds explanations for E0053, E0066, E0069, E0251, E0252, E0255, E0256, E0368.

cc #24407

9 years agoRollup merge of #25397 - dreid:patch-2, r=alexcrichton
Manish Goregaokar [Thu, 14 May 2015 14:03:09 +0000 (19:33 +0530)]
Rollup merge of #25397 - dreid:patch-2, r=alexcrichton

9 years agoRollup merge of #25395 - dreid:patch-1, r=alexcrichton
Manish Goregaokar [Thu, 14 May 2015 14:03:09 +0000 (19:33 +0530)]
Rollup merge of #25395 - dreid:patch-1, r=alexcrichton

9 years agoRollup merge of #25391 - nham:ref_rfc255_link, r=alexcrichton
Manish Goregaokar [Thu, 14 May 2015 14:03:09 +0000 (19:33 +0530)]
Rollup merge of #25391 - nham:ref_rfc255_link, r=alexcrichton

This somehow got left out of https://github.com/rust-lang/rust/pull/25308

9 years agoRollup merge of #25381 - mathroc:patch-1, r=alexcrichton
Manish Goregaokar [Thu, 14 May 2015 14:03:09 +0000 (19:33 +0530)]
Rollup merge of #25381 - mathroc:patch-1, r=alexcrichton

closes rust-lang/cargo#1554

9 years agoRollup merge of #25354 - mdinger:delete_book, r=steveklabnik
Manish Goregaokar [Thu, 14 May 2015 14:03:09 +0000 (19:33 +0530)]
Rollup merge of #25354 - mdinger:delete_book, r=steveklabnik

rustbook throws errors if the `_book` folder exists already. Common if you build twice in a row. Identical to https://github.com/steveklabnik/rustbook/issues/20

9 years agoFix crates.io link.
Wangshan Lu [Thu, 14 May 2015 13:08:20 +0000 (21:08 +0800)]
Fix crates.io link.

9 years agoAuto merge of #25381 - mathroc:patch-1, r=alexcrichton
bors [Thu, 14 May 2015 10:54:44 +0000 (10:54 +0000)]
Auto merge of #25381 - mathroc:patch-1, r=alexcrichton

closes rust-lang/cargo#1554

9 years agoAuto merge of #25338 - tamird:unignore-stage-tests, r=alexcrichton
bors [Thu, 14 May 2015 09:04:45 +0000 (09:04 +0000)]
Auto merge of #25338 - tamird:unignore-stage-tests, r=alexcrichton

We don't have any pending snapshot-requiring changes. Closes #20184.

Works toward #3965.

9 years agoImprove E0053 and E0066 error explanations.
Nick Hamann [Thu, 14 May 2015 08:22:55 +0000 (03:22 -0500)]
Improve E0053 and E0066 error explanations.

9 years agoImprove examples in the E0255/E0256 error explanations.
Nick Hamann [Thu, 14 May 2015 07:50:39 +0000 (02:50 -0500)]
Improve examples in the E0255/E0256 error explanations.

9 years agoAuto merge of #24741 - cgwalters:note-setenv-and-unsetenv-are-not-threadsafe, r=alexc...
bors [Thu, 14 May 2015 07:15:51 +0000 (07:15 +0000)]
Auto merge of #24741 - cgwalters:note-setenv-and-unsetenv-are-not-threadsafe, r=alexcrichton

See:
https://sourceware.org/bugzilla/show_bug.cgi?id=4887#c9
https://bugs.freedesktop.org/show_bug.cgi?id=65681

I just noticed this while talking to someone who was using
`os.environ['FOO'] = 'BAR'` in Python and since I'm learning Rust, I
was curious if it did anything special here (and the answer appears to
be no).

Java got this right by disallowing `setenv()` from the start.

9 years agoAdd error explanations for E0053, E0251, E0252, E0255, E0256, E0368.
Nick Hamann [Thu, 14 May 2015 03:32:52 +0000 (22:32 -0500)]
Add error explanations for E0053, E0251, E0252, E0255, E0256, E0368.

9 years agoAuto merge of #25238 - alexcrichton:fix-archive-with-slashes, r=brson
bors [Thu, 14 May 2015 05:25:43 +0000 (05:25 +0000)]
Auto merge of #25238 - alexcrichton:fix-archive-with-slashes, r=brson

I've been working with some archives generated by MSVC's `lib.exe` tool lately,
and it looks like the embedded name of the members in those archives sometimes
have slahes in the name (e.g. `foo/bar/baz.obj`). Currently the compiler chokes
on these paths as it assumes that each file in the archive is only the filename
(which is what unix does).

This commit interprets the name of each file in all archives as a path and then
only uses the `file_name` portion of the path to extract the file to a separate
location and then reassemble it back into a new archive later. Note that
duplicate filenames are already handled, so this won't introduce any conflicts.

9 years agoFix automatic substitution of task->thread.
David Reid [Thu, 14 May 2015 03:41:03 +0000 (20:41 -0700)]
Fix automatic substitution of task->thread.

9 years agoAuto merge of #25065 - quantheory:fix_associated_const_ambiguity_message, r=nikomatsakis
bors [Thu, 14 May 2015 03:36:37 +0000 (03:36 +0000)]
Auto merge of #25065 - quantheory:fix_associated_const_ambiguity_message, r=nikomatsakis

This fixes #24922 and #25017, and reduces the number of error messages that talk about "methods" when associated constants rather than methods are involved.

I will admit that I haven't thought very carefully about the error messages. My goal has been to make more of the messages technically correct in all situations, and to avoid ICEs. But in some cases we could probably talk specifically about "methods" rather than "items".

9 years agoFix table syntax.
David Reid [Thu, 14 May 2015 03:03:56 +0000 (20:03 -0700)]
Fix table syntax.

9 years agolibstd/env: Add non-Rust synchronization warnings for setenv()
Colin Walters [Thu, 23 Apr 2015 20:59:36 +0000 (16:59 -0400)]
libstd/env: Add non-Rust synchronization warnings for setenv()

See:
https://sourceware.org/bugzilla/show_bug.cgi?id=4887#c9
https://bugs.freedesktop.org/show_bug.cgi?id=65681

I just noticed this while talking to someone who was using
`os.environ['FOO'] = 'BAR'` in Python and since I'm learning Rust, I
was curious if it did anything special here.  It looks like Rust has
an internal mutex, which helps for apps that are pure Rust, but it
will be an evil trap for someone later adding in native code (apps
like Servo and games will be at risk).

Java got this right by disallowing `setenv()` from the start.

I suggest Rust program authors only use `setenv()` early in main.

9 years agoAdd error explanations for E0066 and E0069.
Nick Hamann [Tue, 12 May 2015 04:36:54 +0000 (23:36 -0500)]
Add error explanations for E0066 and E0069.

This also updates the error messages for both. For E0066, it removes mention
of "managed heap", which was removed in 8a91d33. For E0069, I just tweaked
the wording to make it a bit more explicit.

9 years agostd: Redesign Duration, implementing RFC 1040
Alex Crichton [Tue, 28 Apr 2015 18:40:04 +0000 (11:40 -0700)]
std: Redesign Duration, implementing RFC 1040

This commit is an implementation of [RFC 1040][rfc] which is a redesign of the
currently-unstable `Duration` type. The API of the type has been scaled back to
be more conservative and it also no longer supports negative durations.

[rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1040-duration-reform.md

The inner `duration` module of the `time` module has now been hidden (as
`Duration` is reexported) and the feature name for this type has changed from
`std_misc` to `duration`. All APIs accepting durations have also been audited to
take a more flavorful feature name instead of `std_misc`.

Closes #24874

9 years agoAuto merge of #25208 - lfairy:version-hash, r=brson
bors [Thu, 14 May 2015 00:42:32 +0000 (00:42 +0000)]
Auto merge of #25208 - lfairy:version-hash, r=brson

The code takes a prefix of the MD5 hash of the version string.

Since the hash command differs across GNU and BSD platforms, we scan for
the right one in the configure script.

Closes #25007

9 years agoFix ICE that occurs when an associated const is ambiguous.
Sean Patrick Santos [Sun, 3 May 2015 05:30:59 +0000 (23:30 -0600)]
Fix ICE that occurs when an associated const is ambiguous.

Also change several error messages to refer to "items" rather than
"methods", since associated items that require resolution during type
checking are not always methods.

9 years agoFix link to RFC 255 in Reference.
Nick Hamann [Thu, 14 May 2015 00:07:19 +0000 (19:07 -0500)]
Fix link to RFC 255 in Reference.

9 years agoUnignore some tests in stage1
Tamir Duberstein [Tue, 12 May 2015 16:52:05 +0000 (12:52 -0400)]
Unignore some tests in stage1

We don't have any pending snapshot-requiring changes. Tests which
continue to be ignored are those that are broken by codegen changes.

9 years agoAllow `T::C` syntax in match patterns to refer to trait-assosociated constants.
Sean Patrick Santos [Fri, 1 May 2015 03:46:37 +0000 (21:46 -0600)]
Allow `T::C` syntax in match patterns to refer to trait-assosociated constants.

9 years agoAuto merge of #25384 - steveklabnik:rollup, r=steveklabnik
bors [Wed, 13 May 2015 21:56:56 +0000 (21:56 +0000)]
Auto merge of #25384 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #25308, #25360, #25363, #25365, #25371, #25372, #25376, #25379, #25382
- Failed merges:

9 years agoFix test failure in the reference
Steve Klabnik [Wed, 13 May 2015 21:53:57 +0000 (17:53 -0400)]
Fix test failure in the reference

9 years agomake diagnostic message clearer when called from cargo
Mathieu Rochette [Wed, 13 May 2015 20:31:36 +0000 (22:31 +0200)]
make diagnostic message clearer when called from cargo

9 years agoRollup merge of #25382 - steveklabnik:typo_fix, r=alexcrichton
Steve Klabnik [Wed, 13 May 2015 20:51:30 +0000 (16:51 -0400)]
Rollup merge of #25382 - steveklabnik:typo_fix, r=alexcrichton

Thanks apdapreturns

9 years agoRollup merge of #25379 - mpark:trpl, r=alexcrichton
Steve Klabnik [Wed, 13 May 2015 20:51:29 +0000 (16:51 -0400)]
Rollup merge of #25379 - mpark:trpl, r=alexcrichton

9 years agoRollup merge of #25376 - swaroopch:patch-2, r=steveklabnik
Steve Klabnik [Wed, 13 May 2015 20:51:29 +0000 (16:51 -0400)]
Rollup merge of #25376 - swaroopch:patch-2, r=steveklabnik

I don't recall reading about this `Debug` trait so far in the book. Please ignore this PR if I have missed that part.

r? @steveklabnik

9 years agoRollup merge of #25372 - steveklabnik:gh25355, r=alexcrichton
Steve Klabnik [Wed, 13 May 2015 20:51:29 +0000 (16:51 -0400)]
Rollup merge of #25372 - steveklabnik:gh25355, r=alexcrichton

Fixes #25355

9 years agoRollup merge of #25371 - steveklabnik:vec_macro_doc, r=alexcrichton
Steve Klabnik [Wed, 13 May 2015 20:51:29 +0000 (16:51 -0400)]
Rollup merge of #25371 - steveklabnik:vec_macro_doc, r=alexcrichton

Add the repeating form of the vec macro

Remove unneeded literal annotations.

Use more conventional variable names.

9 years agoRollup merge of #25365 - meqif:error-markdown, r=huonw
Steve Klabnik [Wed, 13 May 2015 20:51:29 +0000 (16:51 -0400)]
Rollup merge of #25365 - meqif:error-markdown, r=huonw

Reading through the rendered error explanations in http://doc.rust-lang.org/error-index.html, I noticed a few opportunities to improve the output.

9 years agoRollup merge of #25363 - nham:E0106_E0107_fix, r=alexcrichton
Steve Klabnik [Wed, 13 May 2015 20:51:28 +0000 (16:51 -0400)]
Rollup merge of #25363 - nham:E0106_E0107_fix, r=alexcrichton

cc #25328

9 years agoRollup merge of #25360 - steveklabnik:typo, r=alexcrichton
Steve Klabnik [Wed, 13 May 2015 20:51:28 +0000 (16:51 -0400)]
Rollup merge of #25360 - steveklabnik:typo, r=alexcrichton

Thanks @quantheory!

9 years agoRollup merge of #25308 - nham:audit_ref_traits, r=alexcrichton
Steve Klabnik [Wed, 13 May 2015 20:51:28 +0000 (16:51 -0400)]
Rollup merge of #25308 - nham:audit_ref_traits, r=alexcrichton

cc #16676

9 years agoFix typo
Steve Klabnik [Wed, 13 May 2015 20:43:39 +0000 (16:43 -0400)]
Fix typo

Thanks apdapreturns

9 years agotrpl/error-handling - fix typo
Swaroop C H [Wed, 13 May 2015 20:23:10 +0000 (13:23 -0700)]
trpl/error-handling - fix typo

9 years agoRemove errant line
Tamir Duberstein [Tue, 12 May 2015 16:58:44 +0000 (12:58 -0400)]
Remove errant line

9 years agoTRPL: Fix a broken link to 'move semantics'
Michael Park [Wed, 13 May 2015 18:41:25 +0000 (11:41 -0700)]
TRPL: Fix a broken link to 'move semantics'

9 years agoAdd link to Debug trait
Swaroop C H [Wed, 13 May 2015 16:49:11 +0000 (09:49 -0700)]
Add link to Debug trait

I don't recall reading about this `Debug` trait so far in the book.

9 years agoAuto merge of #25344 - arielb1:fresh-float, r=nikomatsakis
bors [Wed, 13 May 2015 15:42:45 +0000 (15:42 +0000)]
Auto merge of #25344 - arielb1:fresh-float, r=nikomatsakis

There is no subtyping relationship between the types (or their non-freshened
variants), so they can not be merged.

Fixes #22645
Fixes #24352
Fixes #23825

Should fix #25235 (no test in issue).
Should fix #19976 (test is outdated).

9 years agoWriter -> Write in macro docs
Steve Klabnik [Wed, 13 May 2015 14:47:33 +0000 (10:47 -0400)]
Writer -> Write in macro docs

Fixes #25355

9 years agoSmall cleanup to vec docs
Steve Klabnik [Wed, 13 May 2015 14:44:37 +0000 (10:44 -0400)]
Small cleanup to vec docs

Add the repeating form of the vec macro

Remove unneeded literal annotations.

Use more conventional variable names.

9 years agoAuto merge of #25333 - GSam:master, r=nrc
bors [Wed, 13 May 2015 13:54:48 +0000 (13:54 +0000)]
Auto merge of #25333 - GSam:master, r=nrc

As it is, save-analysis appears to return the span for the 'mut' in a declaration 'static mut identifier...' instead of the identifier. This minor change appears to fix the problem, by skipping the mut when it is present.

9 years agoAuto merge of #25318 - nrc:for-expn, r=sfackler
bors [Wed, 13 May 2015 12:07:11 +0000 (12:07 +0000)]
Auto merge of #25318 - nrc:for-expn, r=sfackler

r? @sfackler

9 years agoMarkdown formatting for error explanations.
Ricardo Martins [Wed, 13 May 2015 11:00:59 +0000 (12:00 +0100)]
Markdown formatting for error explanations.

9 years agoAuto merge of #25253 - robertfoss:master, r=brson
bors [Wed, 13 May 2015 10:19:12 +0000 (10:19 +0000)]
Auto merge of #25253 - robertfoss:master, r=brson

9 years agoRemove comment description of E0234.
Nick Hamann [Tue, 12 May 2015 08:06:30 +0000 (03:06 -0500)]
Remove comment description of E0234.

This error code has been removed.

9 years agoAdd error explanations for E0049, E0050, E0106, E0107, E0166, E0201, E0322.
Nick Hamann [Mon, 11 May 2015 19:28:31 +0000 (14:28 -0500)]
Add error explanations for E0049, E0050, E0106, E0107, E0166, E0201, E0322.

9 years agoAuto merge of #25024 - nrc:mulit-decor, r=sfackler
bors [Wed, 13 May 2015 08:31:17 +0000 (08:31 +0000)]
Auto merge of #25024 - nrc:mulit-decor, r=sfackler

9 years agoFix a typo
Steve Klabnik [Wed, 13 May 2015 06:46:23 +0000 (02:46 -0400)]
Fix a typo

Thanks @quantheory

9 years agoAuto merge of #24619 - nrc:rc-coerce, r=nikomatsakis
bors [Wed, 13 May 2015 06:43:05 +0000 (06:43 +0000)]
Auto merge of #24619 - nrc:rc-coerce, r=nikomatsakis

r? @nikomatsakis (note a few TODOs left in the code where I wasn't sure about stuff).

9 years agoAuto merge of #25357 - steveklabnik:rollup, r=steveklabnik
bors [Wed, 13 May 2015 04:55:31 +0000 (04:55 +0000)]
Auto merge of #25357 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #25224, #25317, #25321, #25324, #25348
- Failed merges: #25174, #25334, #25341

9 years agoMerge branch 'trpl_embedding' into rollup
Steve Klabnik [Wed, 13 May 2015 04:55:18 +0000 (00:55 -0400)]
Merge branch 'trpl_embedding' into rollup

9 years agoMerge branch 'doc-fixes' of https://github.com/wheals/rust into rollup
Steve Klabnik [Wed, 13 May 2015 04:54:55 +0000 (00:54 -0400)]
Merge branch 'doc-fixes' of https://github.com/wheals/rust into rollup

9 years agoMerge branch 'doc_release_channels' into rollup
Steve Klabnik [Wed, 13 May 2015 04:53:32 +0000 (00:53 -0400)]
Merge branch 'doc_release_channels' into rollup

9 years agoRollup merge of #25348 - geofft:trpl-fix-enums, r=steveklabnik
Steve Klabnik [Wed, 13 May 2015 04:52:49 +0000 (00:52 -0400)]
Rollup merge of #25348 - geofft:trpl-fix-enums, r=steveklabnik

The enums chapter at the moment is ... weird. The examples aren't about enums, they're about structs, and most of the chapter talks about how enums don't support comparison operators by default (which is also true of other compound data types.) I think there was a story here once, but some coherency got lost in refactoring.

There are two preliminary patches here, one to combine the struct and tuple-struct chapters, and one to document unit-like structs, because enum syntax is easier to explain once you have those three. The final patch moves the enum chapter after the struct chapter, and rewrites most of it to talk about enums usefully (including covering matches on enums).

r? @steveklabnik

9 years agoRollup merge of #25324 - richo:richo-compat, r=huonw
Steve Klabnik [Wed, 13 May 2015 04:52:49 +0000 (00:52 -0400)]
Rollup merge of #25324 - richo:richo-compat, r=huonw

This makes the compatibility matrix render a little nicer on github, and also removes a note about windows support from 0.12 (Which is immaterial now that we're approaching 1.0)

9 years agoRollup merge of #25321 - steveklabnik:second_tutorial, r=alexcrichton
Steve Klabnik [Wed, 13 May 2015 04:52:48 +0000 (00:52 -0400)]
Rollup merge of #25321 - steveklabnik:second_tutorial, r=alexcrichton

This is a little rough, and it needs squashed and section headers, but i'd like to get some eyes on it sooner rather than later.

9 years agoRollup merge of #25317 - steveklabnik:trpl_drop, r=alexcrichton
Steve Klabnik [Wed, 13 May 2015 04:52:48 +0000 (00:52 -0400)]
Rollup merge of #25317 - steveklabnik:trpl_drop, r=alexcrichton

r? @alexcrichton

9 years agoRollup merge of #25224 - brson:stddoc, r=steveklabnik
Steve Klabnik [Wed, 13 May 2015 04:52:48 +0000 (00:52 -0400)]
Rollup merge of #25224 - brson:stddoc, r=steveklabnik

Attempted to organize them in a way more relevant to what newbies
would be interested in hearing.

I am not satisfied by this at all, but by virtue of deleting old links alone I think it is an improvement.

r? @steveklabnik

9 years agoRemove SNAP comments
Nick Cameron [Wed, 13 May 2015 03:05:02 +0000 (15:05 +1200)]
Remove SNAP comments