]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoRollup merge of #34659 - GuillaumeGomez:path_file_name, r=steveklabnik
Manish Goregaokar [Fri, 8 Jul 2016 07:44:20 +0000 (13:14 +0530)]
Rollup merge of #34659 - GuillaumeGomez:path_file_name, r=steveklabnik

Fix `std::path::Path::file_name()` doc

Fixes #34632

r? @steveklabnik

8 years agoRollup merge of #34612 - frewsxcv:io-error-from_raw_os_error, r=steveklabnik
Manish Goregaokar [Fri, 8 Jul 2016 07:44:20 +0000 (13:14 +0530)]
Rollup merge of #34612 - frewsxcv:io-error-from_raw_os_error, r=steveklabnik

Add doc examples for `io::Error::from_raw_os_error`.

None

8 years agoRollup merge of #34610 - wuranbo:patch-2, r=steveklabnik
Manish Goregaokar [Fri, 8 Jul 2016 07:44:19 +0000 (13:14 +0530)]
Rollup merge of #34610 - wuranbo:patch-2, r=steveklabnik

doc: make the conditional-compilation example work

If not, the error `does not have these features: foo` confused.
r? @steveklabnik

8 years agoRollup merge of #34097 - arbitrary-cat:master, r=steveklabnik
Manish Goregaokar [Fri, 8 Jul 2016 07:44:19 +0000 (13:14 +0530)]
Rollup merge of #34097 - arbitrary-cat:master, r=steveklabnik

Revise wording in Rc documentation.

The term "thread-local" has a widely accepted meaning which is not
the meaning it's used for here.

8 years agoAuto merge of #34682 - CensoredUsername:clobber-docs, r=eddyb
bors [Fri, 8 Jul 2016 04:48:04 +0000 (21:48 -0700)]
Auto merge of #34682 - CensoredUsername:clobber-docs, r=eddyb

Correct inline assembly clobber formatting.

Fixes the formatting for inline assembly clobbers used in the book.
As this causes llvm to silently ignore the clobber an error is also
added to catch cases in which the wrong formatting was used.
Additionally a test case is added to confirm that this error works.

This fixes #34458

Note: this is only one out of a few possible ways to fix the issue
depending on how the asm! macro formatting is wanted.

Additionally, it'd be nicer to have some kind of test or feedback
from llvm if the clobber constraints are valid, but I do not know
enough about llvm to say if or how this is possible.

8 years agoAuto merge of #34575 - cgswords:tstream, r=nrc
bors [Fri, 8 Jul 2016 00:58:31 +0000 (17:58 -0700)]
Auto merge of #34575 - cgswords:tstream, r=nrc

Introducing TokenStreams and TokenSlices for procedural macros

This pull request introduces TokenStreams and TokenSlices into the compiler in preparation for usage as part of RFC 1566 (procedural macros).

r? @nrc

8 years agoMerge pull request #34712 from rust-lang/steveklabnik-patch-1
Brian Anderson [Thu, 7 Jul 2016 23:12:25 +0000 (00:12 +0100)]
Merge pull request #34712 from rust-lang/steveklabnik-patch-1

Fix release notes for 1.10

8 years agoFix release notes for 1.10
Steve Klabnik [Thu, 7 Jul 2016 22:17:25 +0000 (18:17 -0400)]
Fix release notes for 1.10

Path was not actually given a default impl in #32990, even though the PR title said it did.

r? @brson

8 years agoPreliminary implementation for TokenStreams and TokenSlices, including unit tests...
cgswords [Wed, 29 Jun 2016 18:55:10 +0000 (11:55 -0700)]
Preliminary implementation for TokenStreams and TokenSlices, including unit tests and associated operations.

8 years agoChanged wording per aturon's comments.
Sam Payson [Thu, 7 Jul 2016 15:40:15 +0000 (08:40 -0700)]
Changed wording per aturon's comments.

8 years agoAuto merge of #34677 - alexcrichton:no-more-build-directory, r=brson
bors [Thu, 7 Jul 2016 15:39:36 +0000 (08:39 -0700)]
Auto merge of #34677 - alexcrichton:no-more-build-directory, r=brson

rustbuild: Remove the `build` directory

The organization in rustbuild was a little odd at the moment where the `lib.rs`
was quite small but the binary `main.rs` was much larger. Unfortunately as well
there was a `build/` directory with the implementation of the build system, but
this directory was ignored by GitHub on the file-search prompt which was a
little annoying.

This commit reorganizes rustbuild slightly where all the library files (the
build system) is located directly inside of `src/bootstrap` and all the binaries
now live in `src/bootstrap/bin` (they're small). Hopefully this should allow
GitHub to index and allow navigating all the files while maintaining a
relatively similar layout to the other libraries in `src/`.

8 years agoAuto merge of #34658 - luqmana:34592-nested_returns, r=eddyb
bors [Thu, 7 Jul 2016 12:46:57 +0000 (05:46 -0700)]
Auto merge of #34658 - luqmana:34592-nested_returns, r=eddyb

Just pass in NodeId to FunctionContext::new instead of looking it up.

Fixes #34592.

8 years agoAuto merge of #34672 - luqmana:27021-reassign-match-body, r=eddyb
bors [Thu, 7 Jul 2016 09:42:45 +0000 (02:42 -0700)]
Auto merge of #34672 - luqmana:27021-reassign-match-body, r=eddyb

Make match discriminant reassignment check more accurate.

Fixes #27021.

8 years agoAuto merge of #34655 - jseyfried:improve_resolver_api, r=nrc
bors [Thu, 7 Jul 2016 06:18:23 +0000 (23:18 -0700)]
Auto merge of #34655 - jseyfried:improve_resolver_api, r=nrc

Add to `resolve`'s public API

This adds a public method `with_module_lexical_scope` to `Resolver` to allow users to resolve a path in the lexical scope of an arbitrary module.
r? @nrc

8 years agoAuto merge of #34652 - jseyfried:fix_expansion_perf, r=nrc
bors [Thu, 7 Jul 2016 03:04:11 +0000 (20:04 -0700)]
Auto merge of #34652 - jseyfried:fix_expansion_perf, r=nrc

Fix expansion performance regression

**syntax-[breaking-change] cc #31645**

This fixes #34630 by reverting commit 5bf7970 of PR #33943, which landed in #34424.

By removing the `Rc<_>` wrapping around `Delimited` and `SequenceRepetition` in `TokenTree`, 5bf7970 made cloning `TokenTree`s more expensive. While this had no measurable performance impact on the compiler's crates, it caused an order of magnitude performance regression on some macro-heavy code in the wild. I believe this is due to clones of `TokenTree`s in `macro_parser.rs` and/or `macro_rules.rs`.

r? @nrc

8 years agodoc:remove useless conditional compilation feature
吴冉波 [Thu, 7 Jul 2016 02:34:33 +0000 (10:34 +0800)]
doc:remove useless conditional compilation feature

8 years agoAuto merge of #34695 - steveklabnik:rollup, r=steveklabnik
bors [Thu, 7 Jul 2016 00:02:41 +0000 (17:02 -0700)]
Auto merge of #34695 - steveklabnik:rollup, r=steveklabnik

Rollup of 15 pull requests

- Successful merges: #33250, #33265, #34277, #34327, #34521, #34558, #34615, #34619, #34621, #34625, #34626, #34636, #34664, #34667, #34685
- Failed merges: #33951

8 years agoAdd doc examples for `io::Error::from_raw_os_error`.
Corey Farwell [Sat, 2 Jul 2016 13:50:19 +0000 (09:50 -0400)]
Add doc examples for `io::Error::from_raw_os_error`.

8 years agoRollup merge of #34685 - GuillaumeGomez:section_header, r=steveklabnik
Steve Klabnik [Wed, 6 Jul 2016 23:13:08 +0000 (19:13 -0400)]
Rollup merge of #34685 - GuillaumeGomez:section_header, r=steveklabnik

Remove invalid CSS rule for doc titles

r? @steveklabnik

Before:

![issue](https://cloud.githubusercontent.com/assets/3050060/16625595/a2f65914-43a5-11e6-9ff2-bcdf11b68cc3.png)

After:

![fixed](https://cloud.githubusercontent.com/assets/3050060/16625602/a9b635ee-43a5-11e6-9f9d-853137eb4e6b.png)

8 years agoRollup merge of #34667 - KaivoAnastetiks:fix/crate-documentation, r=Manishearth
Steve Klabnik [Wed, 6 Jul 2016 23:13:08 +0000 (19:13 -0400)]
Rollup merge of #34667 - KaivoAnastetiks:fix/crate-documentation, r=Manishearth

Add a section about crate documentation.

Fixes #34329
?r @steveklabnik

8 years agoRollup merge of #34664 - alexcrichton:bump, r=brson
Steve Klabnik [Wed, 6 Jul 2016 23:13:08 +0000 (19:13 -0400)]
Rollup merge of #34664 - alexcrichton:bump, r=brson

Bump version to 1.12.0

Beta's now in the forge, let's start working on 1.12.0!

8 years agoRollup merge of #34636 - tshepang:shorten, r=GuillaumeGomez
Steve Klabnik [Wed, 6 Jul 2016 23:13:08 +0000 (19:13 -0400)]
Rollup merge of #34636 - tshepang:shorten, r=GuillaumeGomez

doc: fix and shorten comment

8 years agoRollup merge of #34626 - sylvestre:master, r=Manishearth
Steve Klabnik [Wed, 6 Jul 2016 23:13:07 +0000 (19:13 -0400)]
Rollup merge of #34626 - sylvestre:master, r=Manishearth

Fix typos

8 years agoRollup merge of #34625 - jaredmanning:patch-1, r=apasel422
Steve Klabnik [Wed, 6 Jul 2016 23:13:07 +0000 (19:13 -0400)]
Rollup merge of #34625 - jaredmanning:patch-1, r=apasel422

Fix spacing in for loop enumeration example

Add a space between the comma and j in (i, j) to make it look nice.

This addresses my recent issue #34624.

😀

8 years agoRollup merge of #34621 - KaivoAnastetiks:fix/#33924, r=steveklabnik
Steve Klabnik [Wed, 6 Jul 2016 23:13:07 +0000 (19:13 -0400)]
Rollup merge of #34621 - KaivoAnastetiks:fix/#33924, r=steveklabnik

Clarifies the meaning of the external mutability.

8 years agoRollup merge of #34619 - frewsxcv:patch-30, r=apasel422
Steve Klabnik [Wed, 6 Jul 2016 23:13:07 +0000 (19:13 -0400)]
Rollup merge of #34619 - frewsxcv:patch-30, r=apasel422

Fix broken markdown link in README.

8 years agoRollup merge of #34615 - rdotdk:master, r=Manishearth
Steve Klabnik [Wed, 6 Jul 2016 23:13:07 +0000 (19:13 -0400)]
Rollup merge of #34615 - rdotdk:master, r=Manishearth

update cargo doc link

updated proper link of cargo doc that contains details about list of options available in semantic versioninig for the dependencies section in Cargo.toml

8 years agoRollup merge of #34558 - GlenDC:master, r=alexcrichton
Steve Klabnik [Wed, 6 Jul 2016 23:13:06 +0000 (19:13 -0400)]
Rollup merge of #34558 - GlenDC:master, r=alexcrichton

rustbuild: propagate bootstrap.py '--help' flag

Fixes #34534.
r? @alexcrichton

8 years agoRollup merge of #34521 - llogiq:doc-fixes, r=steveklabnik
Steve Klabnik [Wed, 6 Jul 2016 23:13:06 +0000 (19:13 -0400)]
Rollup merge of #34521 - llogiq:doc-fixes, r=steveklabnik

extend+improve HIR types documentation

8 years agoRollup merge of #34327 - nrc:save-fix-tuple, r=jseyfried
Steve Klabnik [Wed, 6 Jul 2016 23:13:06 +0000 (19:13 -0400)]
Rollup merge of #34327 - nrc:save-fix-tuple, r=jseyfried

save-analysis: fix a bug with tuple sub-expressions

8 years agoRollup merge of #34277 - ollie27:docs_num, r=steveklabnik
Steve Klabnik [Wed, 6 Jul 2016 23:13:06 +0000 (19:13 -0400)]
Rollup merge of #34277 - ollie27:docs_num, r=steveklabnik

Add/improve num const docs

This adds short summaries to all num consts.

r? @steveklabnik

8 years agoRollup merge of #33265 - tshepang:peek, r=steveklabnik
Steve Klabnik [Wed, 6 Jul 2016 23:13:05 +0000 (19:13 -0400)]
Rollup merge of #33265 - tshepang:peek, r=steveklabnik

doc: some `peek` improvements

8 years agoRollup merge of #33250 - durka:patch-19, r=steveklabnik
Steve Klabnik [Wed, 6 Jul 2016 23:13:05 +0000 (19:13 -0400)]
Rollup merge of #33250 - durka:patch-19, r=steveklabnik

update documentation of tuple/unit structs

I made the "tuple structs are useless" editorializing a bit weaker and moved it to the end. Feel free to overrule me on that.

I also added an example of how to unpack a tuple struct with dot notation, because it came up on IRC.

`braced_empty_structs` is stable now, so I updated the example for unit-like structs to use that syntax. Should we show both ways?

cc @ubsan
r? @steveklabnik or @GuillaumeGomez

8 years agoAuto merge of #34689 - alexcrichton:fix-nightlies, r=alexcrichton
bors [Wed, 6 Jul 2016 21:05:35 +0000 (14:05 -0700)]
Auto merge of #34689 - alexcrichton:fix-nightlies, r=alexcrichton

First attempt to fix nightlies

This is just https://github.com/rust-lang/rust/pull/34669 but I added some comments so it can land.

8 years agoetc: Comment why we're binding xrange
Alex Crichton [Wed, 6 Jul 2016 18:17:26 +0000 (11:17 -0700)]
etc: Comment why we're binding xrange

Just mention there are differences between python versions

8 years agoMerge branch 'master' of https://github.com/dzamlo/rust into fix-nightlies
Alex Crichton [Wed, 6 Jul 2016 18:16:33 +0000 (11:16 -0700)]
Merge branch 'master' of https://github.com/dzamlo/rust into fix-nightlies

8 years agoAuto merge of #34654 - jseyfried:configure_multi_modified, r=nrc
bors [Wed, 6 Jul 2016 18:13:48 +0000 (11:13 -0700)]
Auto merge of #34654 - jseyfried:configure_multi_modified, r=nrc

Perform `cfg` attribute processing on `MultiModifier`-generated items

Fixes https://users.rust-lang.org/t/unused-attribute-warning-for-custom-derive-attribute/6180.
r? @nrc

8 years agoRemove invalid CSS rule for doc titles
ggomez [Wed, 6 Jul 2016 16:12:24 +0000 (18:12 +0200)]
Remove invalid CSS rule for doc titles

8 years agoAuto merge of #34648 - eddyb:return-in-peace-pls, r=nagisa
bors [Wed, 6 Jul 2016 13:26:37 +0000 (06:26 -0700)]
Auto merge of #34648 - eddyb:return-in-peace-pls, r=nagisa

Revert "Revert "Remove the return_address intrinsic.""

This reverts commit f698cd3a3663a459e459f530f76adef3eeb815fd.

Made possible by the merge of servo/servo#11872, this closes #34227 for good.

8 years agoCorrect inline assembly clobber formatting.
CensoredUsername [Wed, 6 Jul 2016 12:54:31 +0000 (14:54 +0200)]
Correct inline assembly clobber formatting.

Fixes the formatting for inline assembly clobbers used in the book.
As this causes llvm to silently ignore the clobber an error is also
added to catch cases in which the wrong formatting was used.
Additionally a test case is added to confirm that this error works.

8 years agoAuto merge of #34644 - infinity0:master, r=alexcrichton
bors [Wed, 6 Jul 2016 10:30:47 +0000 (03:30 -0700)]
Auto merge of #34644 - infinity0:master, r=alexcrichton

Avoid redundant downloads when bootstrapping

If the local file is available, then verify it against the hash we just
downloaded, and if it matches then we don't need to download it again.

8 years agoAuto merge of #34546 - jseyfried:cfg_attr_path, r=nrc
bors [Wed, 6 Jul 2016 07:34:51 +0000 (00:34 -0700)]
Auto merge of #34546 - jseyfried:cfg_attr_path, r=nrc

Support `cfg_attr` on `path` attributes

Fixes #25544.
This is technically a [breaking-change]. For example, the following would break:
```rust
mod foo; // Suppose `foo.rs` existed in the appropriate location
```

8 years agotypo nothings -> nothing
吴冉波 [Wed, 6 Jul 2016 05:52:40 +0000 (13:52 +0800)]
typo nothings -> nothing

8 years agorustbuild: Remove the `build` directory
Alex Crichton [Wed, 6 Jul 2016 04:58:20 +0000 (21:58 -0700)]
rustbuild: Remove the `build` directory

The organization in rustbuild was a little odd at the moment where the `lib.rs`
was quite small but the binary `main.rs` was much larger. Unfortunately as well
there was a `build/` directory with the implementation of the build system, but
this directory was ignored by GitHub on the file-search prompt which was a
little annoying.

This commit reorganizes rustbuild slightly where all the library files (the
build system) is located directly inside of `src/bootstrap` and all the binaries
now live in `src/bootstrap/bin` (they're small). Hopefully this should allow
GitHub to index and allow navigating all the files while maintaining a
relatively similar layout to the other libraries in `src/`.

8 years agoAdd regression test
Jeffrey Seyfried [Wed, 29 Jun 2016 09:41:45 +0000 (09:41 +0000)]
Add regression test

8 years agoAuto merge of #34587 - ollie27:rustdoc_prim_titles, r=steveklabnik
bors [Wed, 6 Jul 2016 03:16:40 +0000 (20:16 -0700)]
Auto merge of #34587 - ollie27:rustdoc_prim_titles, r=steveklabnik

rustdoc: Remove paths from primitive page <title> tags

Currently primitive pages have a title like "std::u8 - Rust" this changes
it to "u8 - Rust" as "std::u8" is the name of a module not a primitive
type.

8 years agoFix `std::path::Path::file_name()` doc
ggomez [Tue, 5 Jul 2016 09:36:43 +0000 (11:36 +0200)]
Fix `std::path::Path::file_name()` doc

8 years agoTweak verbosity to hopefully better match intuitive expectations
Ximin Luo [Tue, 5 Jul 2016 22:44:31 +0000 (00:44 +0200)]
Tweak verbosity to hopefully better match intuitive expectations

8 years agoAdd FIXME comment
Jeffrey Seyfried [Tue, 5 Jul 2016 22:38:41 +0000 (22:38 +0000)]
Add FIXME comment

8 years agoHave verify() return a bool rather than a generic RuntimeError
Ximin Luo [Tue, 5 Jul 2016 22:07:26 +0000 (00:07 +0200)]
Have verify() return a bool rather than a generic RuntimeError

8 years agoMake match discriminant reassignment check more accurate.
Luqman Aden [Tue, 5 Jul 2016 21:18:22 +0000 (17:18 -0400)]
Make match discriminant reassignment check more accurate.

8 years agoAuto merge of #34294 - alexandermerritt:book-nuls, r=steveklabnik
bors [Tue, 5 Jul 2016 21:25:07 +0000 (14:25 -0700)]
Auto merge of #34294 - alexandermerritt:book-nuls, r=steveklabnik

Correct use of 'nul' 'null' and capitalization in the book

r? @steveklabnik

8 years agoUse lazy range in gdb pretty printers
Loïc Damien [Tue, 5 Jul 2016 17:57:44 +0000 (19:57 +0200)]
Use lazy range in gdb pretty printers

8 years agoshow both forms of empty struct declaration
Alex Burka [Tue, 5 Jul 2016 17:46:06 +0000 (13:46 -0400)]
show both forms of empty struct declaration

8 years agoAdd a section about crate documentation.
Kaivo Anastetiks [Tue, 5 Jul 2016 17:17:16 +0000 (13:17 -0400)]
Add a section about crate documentation.

8 years agoBump version to 1.12.0
Alex Crichton [Tue, 5 Jul 2016 15:34:58 +0000 (08:34 -0700)]
Bump version to 1.12.0

Beta's now in the forge, let's start working on 1.12.0!

8 years agoAuto merge of #34412 - gnzlbg:document_platform_intrinsics_generate, r=alexcrichton
bors [Tue, 5 Jul 2016 15:25:37 +0000 (08:25 -0700)]
Auto merge of #34412 - gnzlbg:document_platform_intrinsics_generate, r=alexcrichton

Add x86 intrinsics for bit manipulation (BMI 1.0, BMI 2.0, and TBM).

This PR adds the LLVM x86 intrinsics for the bit manipulation instruction sets (BMI 1.0, BMI 2.0, and TBM).

The objective of this pull-request is to allow building a library that implements all the algorithms offered by those instruction sets, using compiler intrinsics for the targets that support them (by means of `target_feature`).

The target features added are:

- `bmi`: Bit Manipulation Instruction Set 1.0, available in Intel >= Haswell and AMD's >= Jaguar/Piledriver,
- `bmi2`: Bit Manipulation Instruction Set 2.0, available in Intel >= Haswell and AMD's >= Excavator,
- `tbm`: Trailing Bit Manipulation, available only in AMD's Piledriver (won't be available in newer CPUs).

The intrinsics added are:

- BMI 1.0:
  - `bextr`: Bit field extract (with register).
- BMI 2.0:
  - `bzhi`: Zero high bits starting with specified bit position.
  - `pdep`: Parallel bits deposit.
  - `pext`: Parallel bits extract.
- TBM:
 - `bextri`: Bit field extract (with immediate).

8 years agoReplace it's by its.
Kaivo Anastetiks [Tue, 5 Jul 2016 11:26:38 +0000 (07:26 -0400)]
Replace it's by its.

8 years agoAuto merge of #34647 - TimNN:compiler-rt-ios-workaround, r=alexcrichton
bors [Tue, 5 Jul 2016 11:06:50 +0000 (04:06 -0700)]
Auto merge of #34647 - TimNN:compiler-rt-ios-workaround, r=alexcrichton

Update compiler-rt with iOS linking warnings workaround

Closes #34617.

r? @alexcrichton

8 years agoAdd method `with_module_lexical_scope` to `Resolver`.
Jeffrey Seyfried [Tue, 5 Jul 2016 08:47:58 +0000 (08:47 +0000)]
Add method `with_module_lexical_scope` to `Resolver`.

8 years agoJust pass in NodeId to FunctionContext::new instead of looking it up.
Luqman Aden [Tue, 5 Jul 2016 07:44:26 +0000 (03:44 -0400)]
Just pass in NodeId to FunctionContext::new instead of looking it up.

8 years agoAdd regression test
Jeffrey Seyfried [Tue, 5 Jul 2016 00:22:13 +0000 (00:22 +0000)]
Add regression test

8 years agoAuto merge of #34594 - willcrichton:master, r=nrc
bors [Tue, 5 Jul 2016 05:24:08 +0000 (22:24 -0700)]
Auto merge of #34594 - willcrichton:master, r=nrc

Move LLVM cleanup so modules are accessible during `after_llvm` phase

Fix for #34432. Also added a new phase controller `after_compilation_done` that gets called at the very end (i.e. after linking) at the suggestion of @nrc. The added test will segfault if the modules get deallocated too early, so it ensures the LLVM is not prematurely cleaned up.

r? @nrc

8 years agoAuto merge of #34646 - michaelwoerister:warn-blacklisted-lldb, r=alexcrichton
bors [Tue, 5 Jul 2016 00:59:14 +0000 (17:59 -0700)]
Auto merge of #34646 - michaelwoerister:warn-blacklisted-lldb, r=alexcrichton

Make rust-lldb warn about unsupported versions of LLDB

r? @alexcrichton

8 years agoStrip unconfigured items from `MultiModifier`-expanded AST
Jeffrey Seyfried [Mon, 4 Jul 2016 03:10:04 +0000 (03:10 +0000)]
Strip unconfigured items from `MultiModifier`-expanded AST

8 years agoRevert "Change `fold_tt` and `fold_tts` to take token trees by value (instead of...
Jeffrey Seyfried [Mon, 4 Jul 2016 10:25:50 +0000 (10:25 +0000)]
Revert "Change `fold_tt` and `fold_tts` to take token trees by value (instead of by reference)"

This reverts commit 5bf7970ac70b4e7781e7b2f3816720aa62fac6fd.

8 years agoMake rust-lldb warn about unsupported versions of LLDB
Michael Woerister [Mon, 4 Jul 2016 16:38:33 +0000 (12:38 -0400)]
Make rust-lldb warn about unsupported versions of LLDB

8 years agoAuto merge of #34639 - dzamlo:master, r=michaelwoerister
bors [Mon, 4 Jul 2016 22:09:36 +0000 (15:09 -0700)]
Auto merge of #34639 - dzamlo:master, r=michaelwoerister

Use lazy iterator in vec/slice gdb pretty printers

8 years agoUse lazy iterator in vec/slice gdb pretty printers
Loïc Damien [Mon, 4 Jul 2016 00:43:33 +0000 (02:43 +0200)]
Use lazy iterator in vec/slice gdb pretty printers

8 years agoRevert "Revert "Remove the return_address intrinsic.""
Eduard Burtescu [Mon, 4 Jul 2016 18:06:50 +0000 (21:06 +0300)]
Revert "Revert "Remove the return_address intrinsic.""

This reverts commit f698cd3a3663a459e459f530f76adef3eeb815fd.

8 years agoupdate compiler-rt with iOS linking warnings workaround
Tim Neumann [Mon, 4 Jul 2016 17:11:03 +0000 (19:11 +0200)]
update compiler-rt with iOS linking warnings workaround

closes #34617.

8 years agoAuto merge of #34602 - Xmasreturns:patch-4, r=steveklabnik
bors [Mon, 4 Jul 2016 16:57:02 +0000 (09:57 -0700)]
Auto merge of #34602 - Xmasreturns:patch-4, r=steveklabnik

Update glossary.md

Added a brief description of Combinators

8 years agoAvoid redundant downloads when bootstrapping
Ximin Luo [Mon, 4 Jul 2016 14:37:46 +0000 (16:37 +0200)]
Avoid redundant downloads when bootstrapping

If the local file is available, then verify it against the hash we just
downloaded, and if it matches then we don't need to download it again.

8 years agoAuto merge of #34590 - pwlandoll:master, r=apasel422
bors [Mon, 4 Jul 2016 12:03:04 +0000 (05:03 -0700)]
Auto merge of #34590 - pwlandoll:master, r=apasel422

Issue #34076: Removing reference to removed path.prefix() function

In the documentation for `std::path::Path`, there is a [reference](https://doc.rust-lang.org/std/path/struct.Path.html#method.is_absolute) to the `path.prefix()` function which has since been removed. The offending reference is now also removed.

First pull request, feedback welcome!

r? @steveklabnik

8 years agoAuto merge of #34638 - zackmdavis:if_let_over_none_empty_block_arm, r=jseyfried
bors [Mon, 4 Jul 2016 09:18:46 +0000 (02:18 -0700)]
Auto merge of #34638 - zackmdavis:if_let_over_none_empty_block_arm, r=jseyfried

prefer `if let` to match with `None => {}` arm in some places

This is a spiritual succesor to #34268 / 8531d581, in which we replaced a
number of matches of None to the unit value with `if let` conditionals
where it was judged that this made for clearer/simpler code (as would be
recommended by Manishearth/rust-clippy's `single_match` lint). The same
rationale applies to matches of None to the empty block.

----

r? @jseyfried

8 years agoRenamed phase to compilation_done
Will Crichton [Mon, 4 Jul 2016 06:47:53 +0000 (02:47 -0400)]
Renamed phase to compilation_done

8 years agoAdded new compilation phase and test
Will Crichton [Fri, 1 Jul 2016 08:54:37 +0000 (04:54 -0400)]
Added new compilation phase and test

8 years agoMoved LLVM cleanup to after `after_llvm` phase
Will Crichton [Thu, 30 Jun 2016 20:32:13 +0000 (16:32 -0400)]
Moved LLVM cleanup to after `after_llvm` phase

8 years agoAuto merge of #34550 - cynicaldevil:master, r=Manishearth
bors [Mon, 4 Jul 2016 06:17:50 +0000 (23:17 -0700)]
Auto merge of #34550 - cynicaldevil:master, r=Manishearth

Added a pretty printer for &mut slices

Fixes #30232
I have added a test which checks for correctness in gdb, but I need some help to do the same for lldb.

r? @Manishearth

8 years agoAuto merge of #34480 - jseyfried:remove_entry_points, r=nrc
bors [Mon, 4 Jul 2016 01:17:36 +0000 (18:17 -0700)]
Auto merge of #34480 - jseyfried:remove_entry_points, r=nrc

Remove redundant `CompileController` entry points

Remove the `after_expand` and `after_write_deps` `CompileController` entry points.

The only things that separate these entry points from `after_hir_lowering` are dep-info generation and HIR map construction, neither of which is computationally intensive or has the potential to error.

r? @nrc

8 years agoprefer `if let` to match with `None => {}` arm in some places
Zack M. Davis [Sun, 3 Jul 2016 21:38:37 +0000 (14:38 -0700)]
prefer `if let` to match with `None => {}` arm in some places

This is a spiritual succesor to #34268/8531d581, in which we replaced a
number of matches of None to the unit value with `if let` conditionals
where it was judged that this made for clearer/simpler code (as would be
recommended by Manishearth/rust-clippy's `single_match` lint). The same
rationale applies to matches of None to the empty block.

8 years agoAuto merge of #34530 - alexcrichton:stabilize-1.11, r=aturon
bors [Sun, 3 Jul 2016 21:33:55 +0000 (14:33 -0700)]
Auto merge of #34530 - alexcrichton:stabilize-1.11, r=aturon

std: Stabilize APIs for the 1.11.0 release

Although the set of APIs being stabilized this release is relatively small, the
trains keep going! Listed below are the APIs in the standard library which have
either transitioned from unstable to stable or those from unstable to
deprecated.

Stable

* `BTreeMap::{append, split_off}`
* `BTreeSet::{append, split_off}`
* `Cell::get_mut`
* `RefCell::get_mut`
* `BinaryHeap::append`
* `{f32, f64}::{to_degrees, to_radians}` - libcore stabilizations mirroring past
  libstd stabilizations
* `Iterator::sum`
* `Iterator::product`

Deprecated

* `{f32, f64}::next_after`
* `{f32, f64}::integer_decode`
* `{f32, f64}::ldexp`
* `{f32, f64}::frexp`
* `num::One`
* `num::Zero`

Added APIs (all unstable)

* `iter::Sum`
* `iter::Product`
* `iter::Step` - a few methods were added to accomodate deprecation of One/Zero

Removed APIs

* `From<Range<T>> for RangeInclusive<T>` - everything about `RangeInclusive` is
  unstable

Closes #27739
Closes #27752
Closes #32526
Closes #33444
Closes #34152
cc #34529 (new tracking issue)

8 years agodoc: fix and shorten comment
Tshepang Lekhonkhobe [Sun, 3 Jul 2016 20:03:45 +0000 (22:03 +0200)]
doc: fix and shorten comment

8 years agoAdded a pretty printer for &mut slices
Nikhil Shagrithaya [Wed, 29 Jun 2016 14:34:06 +0000 (20:04 +0530)]
Added a pretty printer for &mut slices

8 years agostd: Stabilize APIs for the 1.11.0 release
Alex Crichton [Tue, 28 Jun 2016 15:56:56 +0000 (08:56 -0700)]
std: Stabilize APIs for the 1.11.0 release

Although the set of APIs being stabilized this release is relatively small, the
trains keep going! Listed below are the APIs in the standard library which have
either transitioned from unstable to stable or those from unstable to
deprecated.

Stable

* `BTreeMap::{append, split_off}`
* `BTreeSet::{append, split_off}`
* `Cell::get_mut`
* `RefCell::get_mut`
* `BinaryHeap::append`
* `{f32, f64}::{to_degrees, to_radians}` - libcore stabilizations mirroring past
  libstd stabilizations
* `Iterator::sum`
* `Iterator::product`

Deprecated

* `{f32, f64}::next_after`
* `{f32, f64}::integer_decode`
* `{f32, f64}::ldexp`
* `{f32, f64}::frexp`
* `num::One`
* `num::Zero`

Added APIs (all unstable)

* `iter::Sum`
* `iter::Product`
* `iter::Step` - a few methods were added to accomodate deprecation of One/Zero

Removed APIs

* `From<Range<T>> for RangeInclusive<T>` - everything about `RangeInclusive` is
  unstable

Closes #27739
Closes #27752
Closes #32526
Closes #33444
Closes #34152
cc #34529 (new tracking issue)

8 years agoAuto merge of #34540 - jupp0r:patch-1, r=steveklabnik
bors [Sun, 3 Jul 2016 17:39:53 +0000 (10:39 -0700)]
Auto merge of #34540 - jupp0r:patch-1, r=steveklabnik

Improve code example for try!

This change improves the code example for try!,
avoiding to use try! in the example code that shows
what code constructs try! can replace.

8 years agoAuto merge of #34532 - jonmarkprice:master, r=steveklabnik
bors [Sun, 3 Jul 2016 14:47:36 +0000 (07:47 -0700)]
Auto merge of #34532 - jonmarkprice:master, r=steveklabnik

Book: Small grammatical and stylistic edits to book

I've been reading [the book](https://doc.rust-lang.org/book/) and noticed a few small grammatical and stylistic issues which I've rolled into this pull request.

I'm not sure if I should do so many small, unrelated edits in a single pull request but it seems like a lot of overhead for each small edit. Maybe one commit per edit but one pull request per file/section? Feedback is very much appreciated as this is my first pull request ever!

r? @steveklabnik rollup

8 years agoAuto merge of #34504 - retep998:patch-1, r=alexcrichton
bors [Sun, 3 Jul 2016 12:02:51 +0000 (05:02 -0700)]
Auto merge of #34504 - retep998:patch-1, r=alexcrichton

Instructions on how to build Rust with rustbuild

This is a much simpler option for those on Windows who use msvc.

8 years agoAuto merge of #34614 - cynicaldevil:build-time, r=alexcrichton
bors [Sun, 3 Jul 2016 09:17:58 +0000 (02:17 -0700)]
Auto merge of #34614 - cynicaldevil:build-time, r=alexcrichton

Build: Shows total time taken to build the compiler

Fixes #34600
Prints the total time taken to build rustc by executing `src/bootstrap/bootstrap.py`; also includes time taken to download `stage0` compiler and deps.

r? @alexcrichton

8 years agoFix a few typos in the doc
Sylvestre Ledru [Sun, 3 Jul 2016 08:00:19 +0000 (10:00 +0200)]
Fix a few typos in the doc

8 years agoFix a few typos in the code
Sylvestre Ledru [Sun, 3 Jul 2016 08:00:52 +0000 (10:00 +0200)]
Fix a few typos in the code

8 years agoFix spacing in for loop enumeration example
Jared Manning [Sun, 3 Jul 2016 08:01:18 +0000 (03:01 -0500)]
Fix spacing in for loop enumeration example

Add a space between the comma and j in (i, j) to make it look nice.

8 years agoAuto merge of #34597 - CensoredUsername:bootstrap-fix, r=alexcrichton
bors [Sun, 3 Jul 2016 06:33:54 +0000 (23:33 -0700)]
Auto merge of #34597 - CensoredUsername:bootstrap-fix, r=alexcrichton

Support more python 2.7 versions in bootstrap.py

It seems python broke compatability between 2.7.9  and 2.7.12 as on the former a WindowsError was raised while on the latter a subprocess.CalledProcessError was raised while testing for the existence of uname.

As a WindowsError being thrown obviously indicates we're running on windows, this should probably be accepted too.

8 years agoAuto merge of #34591 - brson:relnotes, r=alexcrichton
bors [Sun, 3 Jul 2016 03:09:13 +0000 (20:09 -0700)]
Auto merge of #34591 - brson:relnotes, r=alexcrichton

Release notes for 1.10.0

[Rundered](https://github.com/brson/rust/tree/relnotes/RELEASES.md).

To me highlights look like panic hooks, unix sockets, cargo, and usability improvements.

f? @rust-lang/core @rust-lang/lang @rust-lang/compiler @rust-lang/tools @bstrie

8 years agoClarifies the meaning of the external mutability.
Kaivo Anastetiks [Sun, 3 Jul 2016 00:39:21 +0000 (20:39 -0400)]
Clarifies the meaning of the external mutability.

8 years agoAuto merge of #34580 - eddyb:two-steps-forward-one-step-backwards, r=nagisa
bors [Sun, 3 Jul 2016 00:25:05 +0000 (17:25 -0700)]
Auto merge of #34580 - eddyb:two-steps-forward-one-step-backwards, r=nagisa

Revert "Remove the return_address intrinsic."

This reverts commit b30134dbc3c29cf62a4518090e1389ff26918c19.

Servo might want this merged if they don't merge servo/servo#11872 soon.

cc @pnkfelix @jdm

8 years agoFix broken markdown link in README.
Corey Farwell [Sun, 3 Jul 2016 00:15:28 +0000 (20:15 -0400)]
Fix broken markdown link in README.

8 years agoAuto merge of #34605 - arielb1:bug-in-the-jungle, r=eddyb
bors [Sat, 2 Jul 2016 19:25:29 +0000 (12:25 -0700)]
Auto merge of #34605 - arielb1:bug-in-the-jungle, r=eddyb

fail obligations that depend on erroring obligations

Fix a bug where an obligation that depend on an erroring obligation would
be regarded as successful, leading to global cache pollution and random
lossage.

Fixes #33723.
Fixes #34503.

r? @eddyb since @nikomatsakis is on vacation

beta-nominating because of the massive lossage potential (e.g. with `Copy` this could lead to random memory leaks), plus this is a regression.

8 years agoAuto merge of #34443 - eddyb:sized-matters, r=arielb1
bors [Sat, 2 Jul 2016 16:36:52 +0000 (09:36 -0700)]
Auto merge of #34443 - eddyb:sized-matters, r=arielb1

Disallow constants and statics from having unsized types.

This is a `[breaking-change]` which fixes #34390 by banning unsized `const` and `static`, e.g.:
```rust
const A: [i32] = *(&[0, 1, 2] as &[i32]);
static B: str = *"foo";
```

This was not intentionally allowed, and other than for `static` since some versions ago, it ICE'd.
If you've been taking advantage of this with `static`, you should be able to just use references instead.

8 years agoupdate cargo doc link
Hariharan R [Sat, 2 Jul 2016 15:06:41 +0000 (20:36 +0530)]
update cargo doc link

updated proper link of cargo doc that contains details about list of options available in semantic versioninig for the dependencies section in Cargo.toml