]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoAuto merge of #30834 - reem:rwlock-read-guard-map, r=alexcrichton
bors [Wed, 3 Feb 2016 19:26:05 +0000 (19:26 +0000)]
Auto merge of #30834 - reem:rwlock-read-guard-map, r=alexcrichton

This is very useful when the RwLock is synchronizing access to a data
structure and you would like to return or store guards which contain
references to data inside the data structure instead of the data structure
itself.

8 years agoAuto merge of #31056 - kamalmarhubi:std-process-nul-chars, r=alexcrichton
bors [Wed, 3 Feb 2016 17:19:10 +0000 (17:19 +0000)]
Auto merge of #31056 - kamalmarhubi:std-process-nul-chars, r=alexcrichton

This reports an error at the point of calling `Command::spawn()` or one of
its equivalents.

Fixes #30858
Fixes #30862

8 years agostd: Properly handle interior NULs in std::process
Kamal Marhubi [Fri, 15 Jan 2016 20:29:45 +0000 (15:29 -0500)]
std: Properly handle interior NULs in std::process

This reports an error at the point of calling `Command::spawn()` or one of
its equivalents.

Fixes https://github.com/rust-lang/rust/issues/30858
Fixes https://github.com/rust-lang/rust/issues/30862

8 years agoAuto merge of #31371 - apasel422:docs, r=alexcrichton
bors [Wed, 3 Feb 2016 15:13:39 +0000 (15:13 +0000)]
Auto merge of #31371 - apasel422:docs, r=alexcrichton

r? @steveklabnik

8 years agoAuto merge of #31385 - oli-obk:doc/mir, r=nagisa
bors [Wed, 3 Feb 2016 13:05:18 +0000 (13:05 +0000)]
Auto merge of #31385 - oli-obk:doc/mir, r=nagisa

I didn't change any content, just added another slash so we can see those comments in the docs

r? @steveklabnik

8 years agoupgrade comments on MIR structures and functions to doc comments
Oliver Schneider [Wed, 3 Feb 2016 12:25:07 +0000 (13:25 +0100)]
upgrade comments on MIR structures and functions to doc comments

8 years agoAuto merge of #31375 - nagisa:path-docs, r=alexcrichton
bors [Wed, 3 Feb 2016 10:59:47 +0000 (10:59 +0000)]
Auto merge of #31375 - nagisa:path-docs, r=alexcrichton

8 years agoAuto merge of #31338 - dirk:dirk/add-name-bindings-for-bad-imports, r=nrc
bors [Wed, 3 Feb 2016 08:51:31 +0000 (08:51 +0000)]
Auto merge of #31338 - dirk:dirk/add-name-bindings-for-bad-imports, r=nrc

WIP implementation of #31209.

The goal is to insert fake/dummy definitions for names that we failed to import so that later resolver stages won't complain about them.

8 years agoAuto merge of #31263 - dhuseby:fixing_bsd_builds, r=alexcrichton
bors [Wed, 3 Feb 2016 06:38:01 +0000 (06:38 +0000)]
Auto merge of #31263 - dhuseby:fixing_bsd_builds, r=alexcrichton

Something went haywire with github last night and the old PR https://github.com/rust-lang/rust/pull/31230 got closed somehow.  This new PR is to replace the old one.  This incorporates all of the feedback from the other PR.

@alexcrichton I incorporated the suggestion from @semarie and the result is cleaner and clearer.  I think this is ready to go.

8 years agotrying again at fixing stackp initialization
Dave Huseby [Wed, 3 Feb 2016 02:21:39 +0000 (18:21 -0800)]
trying again at fixing stackp initialization

8 years agosimplifying get_stack
Dave Huseby [Tue, 2 Feb 2016 17:23:33 +0000 (09:23 -0800)]
simplifying get_stack

8 years agorefactoring get_stack to be cleaner
Dave Huseby [Thu, 28 Jan 2016 00:46:45 +0000 (16:46 -0800)]
refactoring get_stack to be cleaner

8 years agounifying name_bytes now that the two blocks are the same
Dave Huseby [Wed, 27 Jan 2016 05:37:46 +0000 (21:37 -0800)]
unifying name_bytes now that the two blocks are the same

8 years agoFixes #31229
Dave Huseby [Wed, 27 Jan 2016 01:37:18 +0000 (17:37 -0800)]
Fixes #31229

8 years agoSpelling fix in `middle::def::Def`
Dirk Gadsden [Mon, 1 Feb 2016 04:44:10 +0000 (20:44 -0800)]
Spelling fix in `middle::def::Def`

8 years agoAdd fake import resolutions & targets for names in bad imports
Dirk Gadsden [Mon, 1 Feb 2016 03:26:16 +0000 (19:26 -0800)]
Add fake import resolutions & targets for names in bad imports

8 years agoAuto merge of #31319 - alexcrichton:msvc-backtraces, r=michaelwoerister
bors [Wed, 3 Feb 2016 03:06:52 +0000 (03:06 +0000)]
Auto merge of #31319 - alexcrichton:msvc-backtraces, r=michaelwoerister

This mirrors the behavior of `clang-cl.exe` by adding a `CodeView` global
variable when emitting debug information. This should in turn help stack traces
that are generated when code is compiled with debuginfo enabled.

Closes #28133

8 years agoAuto merge of #31370 - Manishearth:rollup, r=Manishearth
bors [Wed, 3 Feb 2016 00:58:37 +0000 (00:58 +0000)]
Auto merge of #31370 - Manishearth:rollup, r=Manishearth

- Successful merges: #27499, #31220, #31329, #31332, #31347, #31351, #31352, #31366
- Failed merges:

8 years agoAdd issue number to guard map methods.
Jonathan Reem [Sun, 31 Jan 2016 00:39:03 +0000 (16:39 -0800)]
Add issue number to guard map methods.

8 years agoImprove docs for Path::methods
Simonas Kazlauskas [Tue, 2 Feb 2016 23:16:58 +0000 (01:16 +0200)]
Improve docs for Path::methods

8 years agoAuto merge of #31361 - alexcrichton:revert-mk-changes, r=brson
bors [Tue, 2 Feb 2016 21:57:57 +0000 (21:57 +0000)]
Auto merge of #31361 - alexcrichton:revert-mk-changes, r=brson

This reverts commit d03712977d7c913044f2b863269c4491d7fa7c36.

8 years agoCorrect `linked_list::IntoIter` doc comment
Andrew Paseltiner [Tue, 2 Feb 2016 21:45:35 +0000 (16:45 -0500)]
Correct `linked_list::IntoIter` doc comment

8 years agoRollup merge of #31366 - paulsmith:patch-1, r=steveklabnik
Manish Goregaokar [Tue, 2 Feb 2016 21:24:25 +0000 (02:54 +0530)]
Rollup merge of #31366 - paulsmith:patch-1, r=steveklabnik

The context of the link is `Result` but it points to the docs on `Option`'s `expect`.

8 years agoRollup merge of #31352 - steveklabnik:gh31154, r=nikomatsakis
Manish Goregaokar [Tue, 2 Feb 2016 21:24:25 +0000 (02:54 +0530)]
Rollup merge of #31352 - steveklabnik:gh31154, r=nikomatsakis

Fixes #31154

8 years agoRollup merge of #31351 - steveklabnik:gh31318, r=alexcrichton
Manish Goregaokar [Tue, 2 Feb 2016 21:24:25 +0000 (02:54 +0530)]
Rollup merge of #31351 - steveklabnik:gh31318, r=alexcrichton

This is a behavior that some find confusing, so it deserves its own example.

Fixes #31318

I think this wording might be a bit strange, but I couldn't come up with anything better. Feedback very welcome.

8 years agoRollup merge of #31347 - GuillaumeGomez:fix_E0118, r=Manishearth
Manish Goregaokar [Tue, 2 Feb 2016 21:24:25 +0000 (02:54 +0530)]
Rollup merge of #31347 - GuillaumeGomez:fix_E0118, r=Manishearth

r? @eddyb

8 years agoRollup merge of #31332 - durka:errorck-fileline, r=brson
Manish Goregaokar [Tue, 2 Feb 2016 21:24:24 +0000 (02:54 +0530)]
Rollup merge of #31332 - durka:errorck-fileline, r=brson

Small modification to #31288. Shows full path and line number for unused error codes.

8 years agoRollup merge of #31329 - quodlibetor:no-const-doc-in-stable, r=alexcrichton
Manish Goregaokar [Tue, 2 Feb 2016 21:24:24 +0000 (02:54 +0530)]
Rollup merge of #31329 - quodlibetor:no-const-doc-in-stable, r=alexcrichton

Fixes #31098

AFAICT this is the only place where rustdoc explicitly checks if we are on stable before emitting content, so I can't tell if this is the sane way to handle this, or if anything else should be done to make sure that nobody forgets to remove this check when `const` is stabilized.

8 years agoRollup merge of #31220 - steveklabnik:gh30632, r=nikomatsakis
Manish Goregaokar [Tue, 2 Feb 2016 21:24:24 +0000 (02:54 +0530)]
Rollup merge of #31220 - steveklabnik:gh30632, r=nikomatsakis

Fixes #30632

I'm not sure if this explanation is good enough. If it is, I will add it to filter as well.

8 years agoRollup merge of #27499 - barosl:macro-doc-raw-str-hashes, r=nikomatsakis
Manish Goregaokar [Tue, 2 Feb 2016 21:24:24 +0000 (02:54 +0530)]
Rollup merge of #27499 - barosl:macro-doc-raw-str-hashes, r=nikomatsakis

Any documentation comments that contain raw-string-looking sequences may pretty-print invalid code when expanding them, as the current logic always uses the `r"literal"` form, without appending any `#`s.

This commit calculates the minimum number of `#`s required to wrap a comment correctly and appends `#`s appropriately.

Fixes #27489.

8 years agoAuto merge of #31312 - alexcrichton:no-le-in-powerpc64le, r=alexcrichton
bors [Tue, 2 Feb 2016 17:11:48 +0000 (17:11 +0000)]
Auto merge of #31312 - alexcrichton:no-le-in-powerpc64le, r=alexcrichton

Currently the `mipsel-unknown-linux-gnu` target doesn't actually set the
`target_arch` value to `mipsel` but it rather uses `mips`. Alternatively the
`powerpc64le` target does indeed set the `target_arch` as `powerpc64le`,
causing a bit of inconsistency between theset two.

As these are just the same instance of one instruction set, let's use
`target_endian` to switch between them and only set the `target_arch` as one
value. This should cut down on the number of `#[cfg]` annotations necessary and
all around be a little more ergonomic.

8 years agoAdd note about temporaries
Steve Klabnik [Tue, 2 Feb 2016 16:15:45 +0000 (11:15 -0500)]
Add note about temporaries

8 years agoFix reference to `expect`
Paul Smith [Tue, 2 Feb 2016 14:47:23 +0000 (08:47 -0600)]
Fix reference to `expect`

The context of the link is `Result` but it points to the docs on `Option`'s `expect`.

8 years agoAuto merge of #31254 - tmiasko:macro-pretty-print-fix, r=sfackler
bors [Tue, 2 Feb 2016 14:00:50 +0000 (14:00 +0000)]
Auto merge of #31254 - tmiasko:macro-pretty-print-fix, r=sfackler

Pretty printing of macro with braces but without terminated semicolon
removed more boxes from stack than it put there, resulting in panic.
This fixes the issue #30731.

8 years agoAuto merge of #30991 - rthomas:master, r=Gankro
bors [Tue, 2 Feb 2016 10:45:06 +0000 (10:45 +0000)]
Auto merge of #30991 - rthomas:master, r=Gankro

Using the test @bluss suggested in #30983

8 years agoAuto merge of #31359 - steveklabnik:rollup, r=steveklabnik
bors [Tue, 2 Feb 2016 07:28:04 +0000 (07:28 +0000)]
Auto merge of #31359 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #30971, #31202, #31247, #31270, #31281, #31327, #31339, #31340, #31342, #31344, #31345, #31346, #31348
- Failed merges:

8 years agoRevert "mk: fix some undefined variable warnings"
Alex Crichton [Tue, 2 Feb 2016 07:27:04 +0000 (23:27 -0800)]
Revert "mk: fix some undefined variable warnings"

This reverts commit d03712977d7c913044f2b863269c4491d7fa7c36.

8 years agoEnsure capacity returned of HashMap is max(capacity, length).
Ryan Thomas [Tue, 2 Feb 2016 06:15:27 +0000 (17:15 +1100)]
Ensure capacity returned of HashMap is max(capacity, length).

r? @Gankro

8 years agoRollup merge of #31348 - alexcrichton:shuffle-tiers, r=steveklabnik
Steve Klabnik [Tue, 2 Feb 2016 05:32:20 +0000 (00:32 -0500)]
Rollup merge of #31348 - alexcrichton:shuffle-tiers, r=steveklabnik

Some other shufflings as well:

* Three powerpc triples for Linux have been added recently
* An armv7 linux triple was added recently
* The 64-bit Solaris triple is now mentioned in tier 3

We are currently now also building nightlies for iOS, powerpc triples, and
armv7, but there hasn't been much vetting of the triples themselves so I've left
them in tier 3 for now.

8 years agoRollup merge of #31346 - alopatindev:fixes, r=aturon
Steve Klabnik [Tue, 2 Feb 2016 05:32:19 +0000 (00:32 -0500)]
Rollup merge of #31346 - alopatindev:fixes, r=aturon

Space character is missed after `let some_usize`

8 years agoRollup merge of #31345 - kamalmarhubi:book-docs-special-section-errors, r=steveklabnik
Steve Klabnik [Tue, 2 Feb 2016 05:32:19 +0000 (00:32 -0500)]
Rollup merge of #31345 - kamalmarhubi:book-docs-special-section-errors, r=steveklabnik

This matches the usage in the standard library's documentation.

8 years agoRollup merge of #31344 - steveklabnik:gh31334, r=alexcrichton
Steve Klabnik [Tue, 2 Feb 2016 05:32:19 +0000 (00:32 -0500)]
Rollup merge of #31344 - steveklabnik:gh31334, r=alexcrichton

Fixes #31334

This is just a quicker fix for this issue; since I'm working on the next draft of the book, I don't want to put a huuuge amount of work into improving it here.

8 years agoRollup merge of #31342 - reeze:patch-1, r=steveklabnik
Steve Klabnik [Tue, 2 Feb 2016 05:32:19 +0000 (00:32 -0500)]
Rollup merge of #31342 - reeze:patch-1, r=steveklabnik

8 years agoRollup merge of #31340 - pra85:patch-1, r=alexcrichton
Steve Klabnik [Tue, 2 Feb 2016 05:32:19 +0000 (00:32 -0500)]
Rollup merge of #31340 - pra85:patch-1, r=alexcrichton

Spelling mistake -
`familliar` > `familiar`

8 years agoRollup merge of #31339 - rthomas:doc, r=alexcrichton
Steve Klabnik [Tue, 2 Feb 2016 05:32:18 +0000 (00:32 -0500)]
Rollup merge of #31339 - rthomas:doc, r=alexcrichton

When trying to run a specific test, I found the contributing docs a bit confusing and through a bit of googling found out that TESTNAME takes the fully qual'd name of the test.

I'm unsure if this can also take the source file, but I was unable to get that to work.

8 years agoRollup merge of #31327 - dirk:dirk/process-child-safety-docs, r=alexcrichton
Steve Klabnik [Tue, 2 Feb 2016 05:32:18 +0000 (00:32 -0500)]
Rollup merge of #31327 - dirk:dirk/process-child-safety-docs, r=alexcrichton

`Drop` is not implemented for `Child`, so if it goes out of scope in Rust-land and gets deallocated the child process will continue to exist and execute. If users want a guarantee that the process has finished running and exited they must manually use `kill`, `wait`, or `wait_with_output`.

Fixes #31289.

r? @steveklabnik

8 years agoRollup merge of #31281 - oli-obk:patch-2, r=nikomatsakis
Steve Klabnik [Tue, 2 Feb 2016 05:32:18 +0000 (00:32 -0500)]
Rollup merge of #31281 - oli-obk:patch-2, r=nikomatsakis

8 years agoRollup merge of #31270 - ruud-v-a:improve-e0507, r=steveklabnik
Steve Klabnik [Tue, 2 Feb 2016 05:32:18 +0000 (00:32 -0500)]
Rollup merge of #31270 - ruud-v-a:improve-e0507, r=steveklabnik

E0507 can occur when you try to move out of a member of a mutably borrowed struct, in which case `mem::replace` can help. Mentioning that here hopefully saves future users a trip to Google.

8 years agoRollup merge of #31247 - tshepang:redundant-bindings, r=steveklabnik
Steve Klabnik [Tue, 2 Feb 2016 05:32:18 +0000 (00:32 -0500)]
Rollup merge of #31247 - tshepang:redundant-bindings, r=steveklabnik

8 years agoRollup merge of #31202 - steveklabnik:gh30459, r=alexcrichton
Steve Klabnik [Tue, 2 Feb 2016 05:32:17 +0000 (00:32 -0500)]
Rollup merge of #31202 - steveklabnik:gh30459, r=alexcrichton

Fixes #30459

Fun fact: i wanted to write "Arabic" and "Hebrew" in Arabic and Hebrew, but vim kept doing the copy/paste in the wrong direction.

8 years agoRollup merge of #30971 - SDX2000:docfixes, r=steveklabnik
Steve Klabnik [Tue, 2 Feb 2016 05:32:17 +0000 (00:32 -0500)]
Rollup merge of #30971 - SDX2000:docfixes, r=steveklabnik

Updated documentation to clarify the difference between `and_then` and `map`. This also explains why we need `and_then` in addition to `map`. Please look at the diff for more information.

r?  @alexcrichton

8 years agoAdd doctests for directionality
Steve Klabnik [Mon, 1 Feb 2016 16:26:23 +0000 (11:26 -0500)]
Add doctests for directionality

Thanks @nodakai

8 years agoRemove "powerpc64le" and "mipsel" target_arch
Alex Crichton [Sat, 30 Jan 2016 21:27:00 +0000 (13:27 -0800)]
Remove "powerpc64le" and "mipsel" target_arch

Currently the `mipsel-unknown-linux-gnu` target doesn't actually set the
`target_arch` value to `mipsel` but it rather uses `mips`. Alternatively the
`powerpc64le` target does indeed set the `target_arch` as `powerpc64le`,
causing a bit of inconsistency between theset two.

As these are just the same instance of one instruction set, let's use
`target_endian` to switch between them and only set the `target_arch` as one
value. This should cut down on the number of `#[cfg]` annotations necessary and
all around be a little more ergonomic.

8 years agoAuto merge of #31314 - alexcrichton:less-warnings, r=brson
bors [Tue, 2 Feb 2016 04:33:02 +0000 (04:33 +0000)]
Auto merge of #31314 - alexcrichton:less-warnings, r=brson

Help cleans up our build a bit and stays in line with the rest of our crates
denying warnings traditionally.

8 years agodocs: Standardize on 'Errors' header in std docs
Kamal Marhubi [Tue, 2 Feb 2016 02:41:29 +0000 (21:41 -0500)]
docs: Standardize on 'Errors' header in std docs

8 years agoAuto merge of #31279 - DanielJCampbell:MacroReferencing, r=nrc
bors [Tue, 2 Feb 2016 01:35:39 +0000 (01:35 +0000)]
Auto merge of #31279 - DanielJCampbell:MacroReferencing, r=nrc

r? @nrc

8 years agoUpdate TESTNAME description
Ryan Thomas [Mon, 1 Feb 2016 23:58:59 +0000 (10:58 +1100)]
Update TESTNAME description

8 years agoUpdate TESTNAME matching description
Ryan Thomas [Mon, 1 Feb 2016 23:57:24 +0000 (10:57 +1100)]
Update TESTNAME matching description

8 years agoMerge branch 'master' of https://github.com/rust-lang/rust into doc
Ryan Thomas [Mon, 1 Feb 2016 23:54:05 +0000 (10:54 +1100)]
Merge branch 'master' of https://github.com/rust-lang/rust into doc

8 years agoExplain behavior of _
Steve Klabnik [Mon, 1 Feb 2016 23:49:47 +0000 (18:49 -0500)]
Explain behavior of _

Fixes #31154

8 years agoFurther explain take_while
Steve Klabnik [Mon, 1 Feb 2016 23:33:08 +0000 (18:33 -0500)]
Further explain take_while

This is a behavior that some find confusing, so it deserves its own example.

Fixes #31318

8 years agoAuto merge of #31250 - nrc:more-aborts, r=@nikomatsakis
bors [Mon, 1 Feb 2016 21:22:59 +0000 (21:22 +0000)]
Auto merge of #31250 - nrc:more-aborts, r=@nikomatsakis

With this PR we can save-analysis on code with errors, essential foundation work for IDE support.

8 years agodoc: Move 32-bit MSVC to a tier 1 platform
Alex Crichton [Fri, 29 Jan 2016 19:10:44 +0000 (11:10 -0800)]
doc: Move 32-bit MSVC to a tier 1 platform

Some other shufflings as well:

* Three powerpc triples for Linux have been added recently
* An armv7 linux triple was added recently
* The 64-bit Solaris triple is now mentioned in tier 3

We are currently now also building nightlies for iOS, powerpc triples, and
armv7, but there hasn't been much vetting of the triples themselves so I've left
them in tier 3 for now.

8 years agoDiscuss pitfalls of stateful closures with Map
Steve Klabnik [Tue, 26 Jan 2016 18:03:31 +0000 (13:03 -0500)]
Discuss pitfalls of stateful closures with Map

Fixes #30632

8 years agodoc: bindings not needed for this example
Tshepang Lekhonkhobe [Wed, 27 Jan 2016 20:23:52 +0000 (22:23 +0200)]
doc: bindings not needed for this example

8 years agoReviewer requested changes and test fixes
Nick Cameron [Sun, 31 Jan 2016 19:43:43 +0000 (08:43 +1300)]
Reviewer requested changes and test fixes

8 years agoAuto merge of #30367 - tamird:fix-makefile-bugs, r=alexcrichton
bors [Mon, 1 Feb 2016 18:27:54 +0000 (18:27 +0000)]
Auto merge of #30367 - tamird:fix-makefile-bugs, r=alexcrichton

Some of this is scary stuff. Probably time to lint against this.

Found with `make --warn-undefined-variables`.

r? @alexcrichton

8 years agoFix a documentation typo
Alexander Lopatin [Mon, 1 Feb 2016 18:09:19 +0000 (21:09 +0300)]
Fix a documentation typo

8 years agoDecide to hide constness only in fn/method renders
Brandon W Maister [Mon, 1 Feb 2016 18:05:37 +0000 (13:05 -0500)]
Decide to hide constness only in fn/method renders

ConstnessSpace has no knowledge of the type of item it's modifying, so
hide the constness a level up.

8 years agobook: Change "Failures" to "Errors" in doc special sections chapter
Kamal Marhubi [Mon, 1 Feb 2016 17:26:51 +0000 (12:26 -0500)]
book: Change "Failures" to "Errors" in doc special sections chapter

This matches the usage in the standard library's documentation.

8 years agomake this example more obvious
Steve Klabnik [Mon, 1 Feb 2016 16:52:00 +0000 (11:52 -0500)]
make this example more obvious

Fixes #31334

8 years agoAuto merge of #30901 - mackwic:doc-core-convert, r=steveklabnik
bors [Mon, 1 Feb 2016 16:25:13 +0000 (16:25 +0000)]
Auto merge of #30901 - mackwic:doc-core-convert, r=steveklabnik

Also add a note about the necessary simplicity of the conversion.
Related issue: #29349

r? @steveklabnik

8 years agoAuto merge of #31317 - jseyfried:remove_external_module_children, r=nrc
bors [Mon, 1 Feb 2016 14:26:48 +0000 (14:26 +0000)]
Auto merge of #31317 - jseyfried:remove_external_module_children, r=nrc

This PR refactors away `Module`'s `external_module_children` and instead puts `extern crate` declarations in `children` like other items, simplifying duplicate checking and name resolution.

This PR also allows values to share a name with extern crates, which are only defined in the type namespace. Other than that, it is a pure refactoring.

r? @nrc

8 years agoAuto merge of #31303 - alexcrichton:mips-warnings, r=aturon
bors [Mon, 1 Feb 2016 12:24:01 +0000 (12:24 +0000)]
Auto merge of #31303 - alexcrichton:mips-warnings, r=aturon

Currently any compilation to MIPS spits out the warning:

    'generic' is not a recognized processor for this target (ignoring processor)

Doesn't make for a great user experience! We don't encounter this in the normal
bootstrap because the cpu/feature set are set by the makefiles. Instead let's
just propagate these to the defaults for the entire target all the time (still
overridable from the command line) and prevent warnings from being emitted by
default.

8 years agoComment fix
Reeze Xia [Mon, 1 Feb 2016 10:53:07 +0000 (18:53 +0800)]
Comment fix

8 years agoAuto merge of #31277 - DanielJCampbell:SpanEquality, r=nrc
bors [Mon, 1 Feb 2016 10:25:31 +0000 (10:25 +0000)]
Auto merge of #31277 - DanielJCampbell:SpanEquality, r=nrc

r? @nrc

8 years agomk: fix some undefined variable warnings
Tamir Duberstein [Sun, 13 Dec 2015 17:19:27 +0000 (12:19 -0500)]
mk: fix some undefined variable warnings

Some of this is scary stuff. Probably time to lint against this.

Found with `make --warn-undefined-variables`.

8 years agoAuto merge of #31232 - stepancheg:enum-univariant, r=nrc
bors [Mon, 1 Feb 2016 07:06:05 +0000 (07:06 +0000)]
Auto merge of #31232 - stepancheg:enum-univariant, r=nrc

```
enum Univariant {
    X = 17
}
```

Fixes #10292

8 years agoFix typo in doc/book/getting-started.md
Prayag Verma [Mon, 1 Feb 2016 06:45:33 +0000 (12:15 +0530)]
Fix typo in doc/book/getting-started.md

Spelling mistake -
`familliar` > `familiar`

8 years agoImplemented macro referencing for save analysis
Daniel Campbell [Fri, 29 Jan 2016 07:22:55 +0000 (20:22 +1300)]
Implemented macro referencing for save analysis

8 years agoUpdate docs about how to run specific tests
Ryan Thomas [Mon, 1 Feb 2016 06:04:39 +0000 (17:04 +1100)]
Update docs about how to run specific tests

8 years agoAuto merge of #30866 - jseyfried:fix_shadowed_use_visibility, r=nrc
bors [Mon, 1 Feb 2016 04:52:12 +0000 (04:52 +0000)]
Auto merge of #30866 - jseyfried:fix_shadowed_use_visibility, r=nrc

This reverts PR #30324, fixing bug #30159 in which a public a glob import makes public any preceding imports that share a name with an item in the module being glob imported from.

For example,
```rust
pub fn f() {}
pub mod foo {
    fn f() {}
}

mod bar {
    use f;
    use f as g;
    pub use foo::*; // This makes the first import public but does not affect the second import.
}
```

This is a [breaking-change].

8 years agoMinor corrections in docs for `std::process::Child`
Dirk Gadsden [Sun, 31 Jan 2016 20:33:37 +0000 (12:33 -0800)]
Minor corrections in docs for `std::process::Child`

8 years agoAuto merge of #31331 - petevine:master, r=alexcrichton
bors [Sun, 31 Jan 2016 23:06:01 +0000 (23:06 +0000)]
Auto merge of #31331 - petevine:master, r=alexcrichton

The target was meant as a modern generic `armv7` option, therefore a few changes were necessary:

- gcc's `-march=armv7` was causing compilation failures on modern linux systems
- rust codegen defaulted to `cortex-a7` causing illegal instruction crashes on previous `armv7-a` processors (e.g, cortex-a5, cortex-a8)

8 years agoshow location of unused error codes
Alex Burka [Sun, 31 Jan 2016 22:19:38 +0000 (17:19 -0500)]
show location of unused error codes

8 years agoFix the armv7 linux target
petevine [Sun, 31 Jan 2016 21:26:34 +0000 (22:26 +0100)]
Fix the armv7 linux target

8 years agoSpans now derive equality
Daniel Campbell [Fri, 29 Jan 2016 06:33:14 +0000 (19:33 +1300)]
Spans now derive equality

8 years agoDon't show `const` in docs when it's not available
Brandon W Maister [Sun, 31 Jan 2016 20:48:08 +0000 (15:48 -0500)]
Don't show `const` in docs when it's not available

Fixes #31098

8 years agoSafety docs about `std::process::Child` going out of scope
Dirk Gadsden [Sun, 31 Jan 2016 19:50:22 +0000 (11:50 -0800)]
Safety docs about `std::process::Child` going out of scope

There is no `Drop` implemented for `Child`, so if it goes out
of scope in Rust-land and gets deallocated, the child process
will continue to exist and execute. If users want a guarantee
that the process has finished running and exited they must
manually use `kill`, `wait`, or `wait_with_output`.

Fixes #31289.

8 years agoSome changes to save-analysis to cope with errors
Nick Cameron [Thu, 28 Jan 2016 00:10:04 +0000 (13:10 +1300)]
Some changes to save-analysis to cope with errors

8 years agoTry to run compiler callbacks when we error out
Nick Cameron [Wed, 27 Jan 2016 20:49:18 +0000 (09:49 +1300)]
Try to run compiler callbacks when we error out

8 years agoReplace some aborts with Results
Nick Cameron [Wed, 27 Jan 2016 06:01:01 +0000 (19:01 +1300)]
Replace some aborts with Results

Fixes #31207

by removing abort_if_new_errors

8 years agoAuto merge of #31298 - japaric:mips-musl, r=alexcrichton
bors [Sun, 31 Jan 2016 12:27:06 +0000 (12:27 +0000)]
Auto merge of #31298 - japaric:mips-musl, r=alexcrichton

This target covers MIPS devices that run the trunk version of OpenWRT.

The x86_64-unknown-linux-musl target always links statically to C libraries. For
the mips(el)-unknown-linux-musl target, we opt for dynamic linking (like most of
other targets do) to keep binary size down.

As for the C compiler flags used in the build system, we use the same flags used
for the mips(el)-unknown-linux-gnu target.

r? @alexcrichton

8 years agoupdate libc submodule
Jorge Aparicio [Sun, 31 Jan 2016 12:18:30 +0000 (07:18 -0500)]
update libc submodule

fixes failed test (std::os::raw::tests::unix) in x86_64-musl target

8 years ago Doc:std::convert: disambiguate traits and keywords
Thomas Wickham [Sun, 31 Jan 2016 11:26:15 +0000 (12:26 +0100)]
 Doc:std::convert: disambiguate traits and keywords

8 years agotrans: Inform LLVM we want CodeView on MSVC
Alex Crichton [Sun, 31 Jan 2016 06:30:19 +0000 (22:30 -0800)]
trans: Inform LLVM we want CodeView on MSVC

This mirrors the behavior of `clang-cl.exe` by adding a `CodeView` global
variable when emitting debug information. This should in turn help stack traces
that are generated when code is compiled with debuginfo enabled.

Closes #28133

8 years agoFix E0118
Guillaume Gomez [Sun, 31 Jan 2016 00:09:55 +0000 (01:09 +0100)]
Fix E0118

8 years agoRefactor away the field Module::external_module_children in resolve
Jeffrey Seyfried [Fri, 29 Jan 2016 22:21:36 +0000 (22:21 +0000)]
Refactor away the field Module::external_module_children in resolve

8 years agoRevert PR #30324, fixing a bug in which a public glob import can make preceding impor...
Jeffrey Seyfried [Fri, 18 Dec 2015 10:10:31 +0000 (10:10 +0000)]
Revert PR #30324, fixing a bug in which a public glob import can make preceding imports public (fixes #30159).

8 years agotest: Deny warnings in {core,collections}test
Alex Crichton [Sun, 31 Jan 2016 00:19:37 +0000 (16:19 -0800)]
test: Deny warnings in {core,collections}test

Help cleans up our build a bit and stays in line with the rest of our crates
denying warnings traditionally.