]> git.lizzy.rs Git - rust.git/log
rust.git
7 years agoAuto merge of #36871 - petrochenkov:pdderr, r=nikomatsakis
bors [Tue, 11 Oct 2016 14:39:09 +0000 (07:39 -0700)]
Auto merge of #36871 - petrochenkov:pdderr, r=nikomatsakis

Turn compatibility lint `match_of_unit_variant_via_paren_dotdot` into a hard error

The lint was introduced 10 months ago and made deny-by-default 7 months ago.
In case someone is still using it, https://github.com/rust-lang/rust/pull/36868 contains a stable replacement.

r? @nikomatsakis

7 years agoMerge two `impl<T> Vec<T>` blocks.
Simon Sapin [Mon, 26 Sep 2016 16:28:00 +0000 (18:28 +0200)]
Merge two `impl<T> Vec<T>` blocks.

The show up separately in rustdoc.

This is a separate commit to keep the previous one’s diff shorter.

7 years agoAdd Vec::dedup_by and Vec::dedup_by_key
Simon Sapin [Mon, 26 Sep 2016 16:26:49 +0000 (18:26 +0200)]
Add Vec::dedup_by and Vec::dedup_by_key

7 years agoAuto merge of #36983 - alexcrichton:configure-multiple-musl, r=brson
bors [Tue, 11 Oct 2016 11:26:56 +0000 (04:26 -0700)]
Auto merge of #36983 - alexcrichton:configure-multiple-musl, r=brson

configure: Add options for separate musl roots

This allows using the `./configure` script to enable rustbuild to compile
multiple musl targets at once. We'll hopefully use this soon on our bots to
produce a bunch of targets.

7 years agoFix Android compilation `io::Error` -> `io::ErrorKind`
Tobias Bucher [Tue, 11 Oct 2016 10:16:35 +0000 (12:16 +0200)]
Fix Android compilation `io::Error` -> `io::ErrorKind`

7 years agoAuto merge of #36825 - sbwtw:master, r=alexcrichton
bors [Tue, 11 Oct 2016 08:17:03 +0000 (01:17 -0700)]
Auto merge of #36825 - sbwtw:master, r=alexcrichton

add println!() macro with out any arguments

lets add println!() to write "\n".
like java https://docs.oracle.com/javase/7/docs/api/java/io/PrintStream.html#println()

7 years agoAdd test.
Jeffrey Seyfried [Tue, 11 Oct 2016 05:13:40 +0000 (05:13 +0000)]
Add test.

7 years agoRemove `LegacyBindingKind::MacroUse`.
Jeffrey Seyfried [Tue, 11 Oct 2016 03:48:54 +0000 (03:48 +0000)]
Remove `LegacyBindingKind::MacroUse`.

7 years agoClean up the scopes of expanded `#[macro_use]` imports.
Jeffrey Seyfried [Tue, 11 Oct 2016 03:42:06 +0000 (03:42 +0000)]
Clean up the scopes of expanded `#[macro_use]` imports.

7 years agoAdd support for undetermined macro invocations.
Jeffrey Seyfried [Tue, 11 Oct 2016 03:41:48 +0000 (03:41 +0000)]
Add support for undetermined macro invocations.

7 years agoMerge branch 'persistent_macro_scopes' into cleanup_expanded_macro_use_scopes
Jeffrey Seyfried [Tue, 11 Oct 2016 03:41:18 +0000 (03:41 +0000)]
Merge branch 'persistent_macro_scopes' into cleanup_expanded_macro_use_scopes

7 years agoCheck for shadowing errors after all invocations have been expanded.
Jeffrey Seyfried [Tue, 11 Oct 2016 03:21:40 +0000 (03:21 +0000)]
Check for shadowing errors after all invocations have been expanded.

7 years agoMove IdxSetBuf and BitSlice to rustc_data_structures
Wesley Wiser [Thu, 6 Oct 2016 02:43:27 +0000 (22:43 -0400)]
Move IdxSetBuf and BitSlice to rustc_data_structures

Resolves a FIXME

7 years agoAuto merge of #36707 - achanda:ip_type, r=alexcrichton
bors [Tue, 11 Oct 2016 00:18:01 +0000 (17:18 -0700)]
Auto merge of #36707 - achanda:ip_type, r=alexcrichton

Add two functions to check type of given address

The is_v4 function returns true if the given IP is v4. The is_v6
function returns true if the IP is v6.

7 years agoSimplify `str` and `Path` comparison.
Corey Farwell [Mon, 10 Oct 2016 23:46:18 +0000 (19:46 -0400)]
Simplify `str` and `Path` comparison.

7 years agoReturn early to avoid excessive indentation.`
Corey Farwell [Mon, 10 Oct 2016 23:39:44 +0000 (19:39 -0400)]
Return early to avoid excessive indentation.`

7 years agoUse `Cow` instead of `String` to avoid unnecessary allocations.
Corey Farwell [Mon, 10 Oct 2016 23:35:22 +0000 (19:35 -0400)]
Use `Cow` instead of `String` to avoid unnecessary allocations.

7 years agoConvert `String` generating functions into `&str` constants.
Corey Farwell [Mon, 10 Oct 2016 23:28:16 +0000 (19:28 -0400)]
Convert `String` generating functions into `&str` constants.

7 years agoChanged 0 into '0'
p512 [Mon, 10 Oct 2016 23:21:44 +0000 (01:21 +0200)]
Changed 0 into '0'

0 is not a production rule but a literal

7 years agoAdd method str::repeat(self, usize) -> String
Ulrik Sverdrup [Sat, 24 Sep 2016 17:35:24 +0000 (19:35 +0200)]
Add method str::repeat(self, usize) -> String

It is relatively simple to repeat a string n times:
`(0..n).map(|_| s).collect::<String>()`. It becomes slightly more
complicated to do it “right” (sizing the allocation up front), which
warrants a method that does it for us.

This method is useful in writing testcases, or when generating text.
`format!()` can be used to repeat single characters, but not repeating
strings like this.

7 years agoTest derive expansion ordering.
Jeffrey Seyfried [Mon, 10 Oct 2016 09:01:57 +0000 (09:01 +0000)]
Test derive expansion ordering.

7 years agoExpand `#[derive]` attribute macro invocations last.
Jeffrey Seyfried [Mon, 10 Oct 2016 08:47:54 +0000 (08:47 +0000)]
Expand `#[derive]` attribute macro invocations last.

7 years agoAuto merge of #37030 - michaelwoerister:live-debug-values-fix, r=alexcrichton
bors [Mon, 10 Oct 2016 19:15:14 +0000 (12:15 -0700)]
Auto merge of #37030 - michaelwoerister:live-debug-values-fix, r=alexcrichton

llvm: Update LLVM to include fix for pathologic case in its LiveDebugValues pass.

See #36926.
r? @alexcrichton

7 years agoAdd missing urls on String module
Guillaume Gomez [Mon, 10 Oct 2016 16:15:55 +0000 (18:15 +0200)]
Add missing urls on String module

7 years agoAdd comparison operators to boolean const eval.
Mark-Simulacrum [Sun, 9 Oct 2016 14:43:23 +0000 (08:43 -0600)]
Add comparison operators to boolean const eval.

7 years agoICH: Enable some cases in trait definition hashing.
Michael Woerister [Mon, 10 Oct 2016 15:57:49 +0000 (11:57 -0400)]
ICH: Enable some cases in trait definition hashing.

7 years agoLLVM: Backport "[SimplifyCFG] Correctly test for unconditional branches in GetCaseRes...
Michael Woerister [Mon, 10 Oct 2016 15:12:29 +0000 (11:12 -0400)]
LLVM: Backport "[SimplifyCFG] Correctly test for unconditional branches in GetCaseResults"

7 years agoUpdate LLVM to fix bug in SimplifyCFG pass.
Michael Woerister [Mon, 10 Oct 2016 13:53:14 +0000 (09:53 -0400)]
Update LLVM to fix bug in SimplifyCFG pass.

7 years agoAuto merge of #36341 - sagebind:thread_id, r=alexcrichton
bors [Mon, 10 Oct 2016 11:04:51 +0000 (04:04 -0700)]
Auto merge of #36341 - sagebind:thread_id, r=alexcrichton

Add ThreadId for comparing threads

This adds the capability to store and compare threads with the current calling thread via a new struct, `std::thread::ThreadId`. Addresses the need outlined in issue #21507.

This avoids the need to add any special checks to the existing thread structs and does not rely on the system to provide an identifier for a thread, since it seems that this approach is unreliable and undesirable. Instead, this simply uses a lazily-created, thread-local `usize` whose value is copied from a global atomic counter. The code should be simple enough that it should be as much reliable as the `#[thread_local]` attribute it uses (however much that is).

`ThreadId`s can be compared directly for equality and have copy semantics.

Also see these other attempts:
- rust-lang/rust#29457
- rust-lang/rust#29448
- rust-lang/rust#29447

And this in the RFC repo: rust-lang/rfcs#1435

7 years agoAvoid quadratic complexity.
Jeffrey Seyfried [Sat, 8 Oct 2016 00:30:24 +0000 (00:30 +0000)]
Avoid quadratic complexity.

7 years agoMerge `Printer::token` and `Printer::size`.
Nicholas Nethercote [Fri, 7 Oct 2016 03:46:47 +0000 (14:46 +1100)]
Merge `Printer::token` and `Printer::size`.

Logically, it's a vector of pairs, so might as well represent it that
way.

The commit also changes `scan_stack` so that it is initialized with the
default size, instead of the excessive `55 * linewidth` size, which it
usually doesn't get even close to reaching.

7 years agoError monitor should emit error to stderr instead of stdout
Nick Cameron [Mon, 10 Oct 2016 05:14:45 +0000 (18:14 +1300)]
Error monitor should emit error to stderr instead of stdout

7 years agoAvoid allocations in `Decoder::read_str`.
Nicholas Nethercote [Sun, 9 Oct 2016 22:07:18 +0000 (09:07 +1100)]
Avoid allocations in `Decoder::read_str`.

`opaque::Decoder::read_str` is very hot within `rustc` due to its use in
the reading of crate metadata, and it currently returns a `String`. This
commit changes it to instead return a `Cow<str>`, which avoids a heap
allocation.

This change reduces the number of calls to `malloc` by almost 10% in
some benchmarks.

This is a [breaking-change] to libserialize.

7 years agoUpdate E0303 to new error format
John Firebaugh [Sun, 9 Oct 2016 17:12:26 +0000 (10:12 -0700)]
Update E0303 to new error format

7 years agoAuto merge of #37055 - kali:master, r=alexcrichton
bors [Sun, 9 Oct 2016 17:07:39 +0000 (10:07 -0700)]
Auto merge of #37055 - kali:master, r=alexcrichton

use MSG_NOSIGNAL on all relevant platforms

followup #36824

7 years agouse MSG_NOSIGNAL on all relevant platforms
Mathieu Poumeyrol [Sun, 9 Oct 2016 11:01:29 +0000 (13:01 +0200)]
use MSG_NOSIGNAL on all relevant platforms

7 years agoUse `try_into` and move some functions
Tobias Bucher [Sat, 8 Oct 2016 23:06:55 +0000 (01:06 +0200)]
Use `try_into` and move some functions

7 years agoDynamically detect presence of `p{read,write}64` on Android
Tobias Bucher [Sat, 8 Oct 2016 12:32:57 +0000 (14:32 +0200)]
Dynamically detect presence of `p{read,write}64` on Android

7 years agoImplement reading and writing atomically at certain offsets
Tobias Bucher [Mon, 15 Aug 2016 23:11:33 +0000 (01:11 +0200)]
Implement reading and writing atomically at certain offsets

These functions allow to read from and write to a file in one atomic
action from multiple threads, avoiding the race between the seek and the
read.

The functions are named `{read,write}_at` on non-Windows (which don't
change the file cursor), and `seek_{read,write}` on Windows (which
change the file cursor).

7 years agoAuto merge of #36982 - GuillaumeGomez:slice_urls, r=frewsxcv
bors [Sun, 9 Oct 2016 07:35:56 +0000 (00:35 -0700)]
Auto merge of #36982 - GuillaumeGomez:slice_urls, r=frewsxcv

Add missing urls in slice doc module

r? @steveklabnik

7 years agoRemove unnecessary `pub` function classifier.
Corey Farwell [Sun, 9 Oct 2016 04:15:42 +0000 (00:15 -0400)]
Remove unnecessary `pub` function classifier.

7 years agoMake `ExternalHtml::load` short-circuited.
Corey Farwell [Sun, 9 Oct 2016 03:53:57 +0000 (23:53 -0400)]
Make `ExternalHtml::load` short-circuited.

7 years agoRefactor away `load_or_return` macro.
Corey Farwell [Sun, 9 Oct 2016 02:55:40 +0000 (22:55 -0400)]
Refactor away `load_or_return` macro.

7 years agorun rustfmt on librustc_lint folder
Srinivas Reddy Thatiparthy [Sun, 9 Oct 2016 04:08:07 +0000 (09:38 +0530)]
run rustfmt on librustc_lint folder

7 years agoAdd doc comments describing fields on `externalfiles::ExternalHtml`.
Corey Farwell [Sat, 8 Oct 2016 21:34:13 +0000 (17:34 -0400)]
Add doc comments describing fields on `externalfiles::ExternalHtml`.

7 years agoAuto merge of #36637 - GuillaumeGomez:fix_run_button, r=bluss
bors [Sun, 9 Oct 2016 02:42:55 +0000 (19:42 -0700)]
Auto merge of #36637 - GuillaumeGomez:fix_run_button, r=bluss

Fixes run button appearing when it shouldn't

Fixes #36621.

r? @steveklabnik

7 years agoDon't construct `PathBuf` ownership if we don't need it.
Corey Farwell [Sat, 8 Oct 2016 20:29:10 +0000 (16:29 -0400)]
Don't construct `PathBuf` ownership if we don't need it.

7 years agoAuto merge of #37041 - tbu-:pr_less_sizet_casts, r=alexcrichton
bors [Sat, 8 Oct 2016 22:59:49 +0000 (15:59 -0700)]
Auto merge of #37041 - tbu-:pr_less_sizet_casts, r=alexcrichton

Use less `size_t` casts in libstd since it's now defined as `usize`

7 years agoAuto merge of #37027 - alexcrichton:less-deps-in-bootstrap, r=japaric
bors [Sat, 8 Oct 2016 19:36:11 +0000 (12:36 -0700)]
Auto merge of #37027 - alexcrichton:less-deps-in-bootstrap, r=japaric

rustbuild: Optimize build times slightly

As the entry point for building the Rust compiler, a good user experience hinges
on this compiling quickly to get to the meat of the problem. To that end use
`#[cfg]`-specific dependencies to avoid building Windows crates on Unix and drop
the `regex` crate for now which was easily replacable with some string
searching.

7 years agorustbuild: Optimize build times slightly
Alex Crichton [Fri, 7 Oct 2016 19:26:45 +0000 (12:26 -0700)]
rustbuild: Optimize build times slightly

As the entry point for building the Rust compiler, a good user experience hinges
on this compiling quickly to get to the meat of the problem. To that end use
`#[cfg]`-specific dependencies to avoid building Windows crates on Unix and drop
the `regex` crate for now which was easily replacable with some string
searching.

7 years agoAdd missing urls in slice doc module
Guillaume Gomez [Wed, 5 Oct 2016 17:58:59 +0000 (19:58 +0200)]
Add missing urls in slice doc module

7 years agoAdd missing urls for hash modules
Guillaume Gomez [Tue, 4 Oct 2016 16:24:44 +0000 (18:24 +0200)]
Add missing urls for hash modules

7 years agoUse less `size_t` casts in libstd since it's now defined as `usize`
Tobias Bucher [Sat, 8 Oct 2016 13:48:28 +0000 (15:48 +0200)]
Use less `size_t` casts in libstd since it's now defined as `usize`

7 years agoAuto merge of #37039 - Manishearth:rollup, r=Manishearth
bors [Sat, 8 Oct 2016 12:55:27 +0000 (05:55 -0700)]
Auto merge of #37039 - Manishearth:rollup, r=Manishearth

Rollup of 6 pull requests

- Successful merges: #36937, #37016, #37028, #37029, #37031, #37034
- Failed merges: #37027

7 years agoAdd ICH test case for consts
Florian Diebold [Sat, 8 Oct 2016 12:44:51 +0000 (14:44 +0200)]
Add ICH test case for consts

Fixes #37000.

7 years agoAdd ICH test case for statics
Florian Diebold [Sat, 8 Oct 2016 12:43:50 +0000 (14:43 +0200)]
Add ICH test case for statics

Fixes #37001.

7 years agoRollup merge of #37034 - nox:empty-trait-list, r=alexcrichton
Manish Goregaokar [Sat, 8 Oct 2016 11:22:44 +0000 (16:52 +0530)]
Rollup merge of #37034 - nox:empty-trait-list, r=alexcrichton

Do not add an empty #[derive()] list in expand_derive (fixes #37033)

7 years agoRollup merge of #37031 - fitzgen:typo-in-gcc-rs-comment, r=alexcrichton
Manish Goregaokar [Sat, 8 Oct 2016 11:22:43 +0000 (16:52 +0530)]
Rollup merge of #37031 - fitzgen:typo-in-gcc-rs-comment, r=alexcrichton

Fix a typo in a comment describing gcc.rs's eh_frame_registry module

s/reigster/register/

r? @alexcrichton

7 years agoRollup merge of #37029 - japaric:no-panics-in-checked-ops, r=alexcrichton
Manish Goregaokar [Sat, 8 Oct 2016 11:22:43 +0000 (16:52 +0530)]
Rollup merge of #37029 - japaric:no-panics-in-checked-ops, r=alexcrichton

rewrite checked_{div,rem} to no contain any reference to panics

even without optimizations

r? @alexcrichton

7 years agoRollup merge of #37028 - alexcrichton:fix-deps, r=japaric
Manish Goregaokar [Sat, 8 Oct 2016 11:22:43 +0000 (16:52 +0530)]
Rollup merge of #37028 - alexcrichton:fix-deps, r=japaric

rustbuild: Fix dependencies of check-docs step

Some of the doc tests depend on `extern crate test`, so depend on libtest
instead of libstd here.

7 years agoRollup merge of #37016 - alexcrichton:workspaces, r=japaric
Manish Goregaokar [Sat, 8 Oct 2016 11:22:43 +0000 (16:52 +0530)]
Rollup merge of #37016 - alexcrichton:workspaces, r=japaric

Leverage Cargo workspaces in rustbuild

This is a continuation of https://github.com/rust-lang/rust/pull/36032 which implements the change to use `cargo metadata` to learn about the crate graph.

7 years agoRollup merge of #36937 - wesleywiser:patch-3, r=frewsxcv
Manish Goregaokar [Sat, 8 Oct 2016 11:22:43 +0000 (16:52 +0530)]
Rollup merge of #36937 - wesleywiser:patch-3, r=frewsxcv

Fix documentation for `write!` on `std::fmt` page

Fixes #36906

7 years agoAuto merge of #37015 - ahmedcharles:sudo, r=alexcrichton
bors [Sat, 8 Oct 2016 09:23:47 +0000 (02:23 -0700)]
Auto merge of #37015 - ahmedcharles:sudo, r=alexcrichton

Prevent accidentally running 'make install' as sudo.

r? @alexcrichton

I missed this in the previous PR, but this seems to work. It should probably go in a rollup, but I don't know how to do those. :/

7 years agoAuto merge of #37014 - nnethercote:avoid-pat_to_string, r=arielb1
bors [Sat, 8 Oct 2016 05:51:04 +0000 (22:51 -0700)]
Auto merge of #37014 - nnethercote:avoid-pat_to_string, r=arielb1

Avoid some `pat_to_string` calls.

`ty_of_method_or_bare_fn` currently calls `pat_to_string` even when it
doesn't need to. Fixing this avoids hundreds of large allocations (e.g.
171,600 bytes, in `mk_printer`) in several of rustc-benchmarks.

7 years agoPersistent macro scopes.
Jeffrey Seyfried [Thu, 6 Oct 2016 08:04:30 +0000 (08:04 +0000)]
Persistent macro scopes.

7 years agoAuto merge of #37006 - brson:jsbackend, r=alexcrichton
bors [Sat, 8 Oct 2016 01:17:54 +0000 (18:17 -0700)]
Auto merge of #37006 - brson:jsbackend, r=alexcrichton

Turn on JSBackend in the makefiles

This should make the nightlies work with emscripten. r? @alexcrichton

Closes #37004

7 years agorustbuild: Use `cargo metadata` to learn about DAG
Alex Crichton [Fri, 7 Oct 2016 06:30:38 +0000 (23:30 -0700)]
rustbuild: Use `cargo metadata` to learn about DAG

This updates the commit to use workspaces to use `cargo metadata` instead of
hardcoded lists about what to test. This should help us be resilient to updates
in the future on behalf of the crate DAG and minimize the amount of files that
need to be touched.

7 years agoDo not add an empty #[derive()] list in expand_derive (fixes #37033)
Anthony Ramine [Fri, 7 Oct 2016 23:42:58 +0000 (01:42 +0200)]
Do not add an empty #[derive()] list in expand_derive (fixes #37033)

7 years agoUnlock guard before overflow panic
Stephen M. Coakley [Fri, 7 Oct 2016 22:45:04 +0000 (17:45 -0500)]
Unlock guard before overflow panic

7 years agoFix a typo in a comment describing gcc.rs's eh_frame_registry module
Nick Fitzgerald [Fri, 7 Oct 2016 22:00:48 +0000 (15:00 -0700)]
Fix a typo in a comment describing gcc.rs's eh_frame_registry module

s/reigster/register/

7 years agoRename `resolve::macros::{ExpansionData -> InvocationData}`.
Jeffrey Seyfried [Mon, 3 Oct 2016 23:48:19 +0000 (23:48 +0000)]
Rename `resolve::macros::{ExpansionData -> InvocationData}`.

7 years agoImmutable `ExpansionData`.
Jeffrey Seyfried [Fri, 16 Sep 2016 08:50:34 +0000 (08:50 +0000)]
Immutable `ExpansionData`.

7 years agoCleanup `depth`s.
Jeffrey Seyfried [Mon, 26 Sep 2016 22:54:36 +0000 (22:54 +0000)]
Cleanup `depth`s.

7 years agoRefactor away `ext::expand::{expand_crate, expand_crate_with_expander}`.
Jeffrey Seyfried [Thu, 29 Sep 2016 00:22:46 +0000 (00:22 +0000)]
Refactor away `ext::expand::{expand_crate, expand_crate_with_expander}`.

7 years agoAdd macros from plugins in `libsyntax_ext::register_builtins`.
Jeffrey Seyfried [Wed, 28 Sep 2016 22:48:55 +0000 (22:48 +0000)]
Add macros from plugins in `libsyntax_ext::register_builtins`.

7 years agoCombine `std_inject::{no_core, no_std}` into `std_inject::injected_crate_name`.
Jeffrey Seyfried [Wed, 28 Sep 2016 22:28:19 +0000 (22:28 +0000)]
Combine `std_inject::{no_core, no_std}` into `std_inject::injected_crate_name`.

7 years agollvm: Update LLVM to include fix for pathologic case in its LiveDebugValues pass.
Michael Woerister [Fri, 7 Oct 2016 19:40:32 +0000 (15:40 -0400)]
llvm: Update LLVM to include fix for pathologic case in its LiveDebugValues pass.

7 years agorewrite checked_{div,rem} to no contain any reference to panics
Jorge Aparicio [Fri, 7 Oct 2016 20:12:21 +0000 (15:12 -0500)]
rewrite checked_{div,rem} to no contain any reference to panics

even without optimizations

7 years agorustbuild: Fix dependencies of check-docs step
Alex Crichton [Fri, 7 Oct 2016 19:28:54 +0000 (12:28 -0700)]
rustbuild: Fix dependencies of check-docs step

Some of the doc tests depend on `extern crate test`, so depend on libtest
instead of libstd here.

7 years agoUse workspaces and switch to a single Cargo.lock.
Ahmed Charles [Fri, 2 Sep 2016 08:55:29 +0000 (01:55 -0700)]
Use workspaces and switch to a single Cargo.lock.

This involves hacking the code used to run cargo test on various
packages, because it reads Cargo.lock to determine which packages should
be tested. This change implements a blacklist, since that will catch new
crates when they are added in the future.

7 years agoAuto merge of #36981 - alexcrichton:catch-unwind-for-tests, r=sfackler
bors [Fri, 7 Oct 2016 18:38:27 +0000 (11:38 -0700)]
Auto merge of #36981 - alexcrichton:catch-unwind-for-tests, r=sfackler

std: Minor cleanup to libtest

* Don't spawn two threads for all tests, just one now that `catch_unwind` is
  stable.
* Remove usage of the unstable `box` keyword
* Remove usage of the unstable `FnBox` trait

7 years agoAuto merge of #36945 - alexcrichton:proc-macro-rename, r=nrc
bors [Fri, 7 Oct 2016 14:58:27 +0000 (07:58 -0700)]
Auto merge of #36945 - alexcrichton:proc-macro-rename, r=nrc

rustc: Rename rustc_macro to proc_macro

This commit blanket renames the `rustc_macro` infrastructure to `proc_macro`,
which reflects the general consensus of #35900. A follow up PR to Cargo will be
required to purge the `rustc-macro` name as well.

7 years agoincr.comp.: Cover indirect changes in struct ICH test case
Michael Woerister [Thu, 29 Sep 2016 15:29:33 +0000 (11:29 -0400)]
incr.comp.: Cover indirect changes in struct ICH test case

7 years agoincr.comp.: Hide concrete hash algorithm used for ICH
Michael Woerister [Thu, 29 Sep 2016 15:00:11 +0000 (11:00 -0400)]
incr.comp.: Hide concrete hash algorithm used for ICH

7 years agoAvoid some `pat_to_string` calls.
Nicholas Nethercote [Fri, 7 Oct 2016 01:51:53 +0000 (12:51 +1100)]
Avoid some `pat_to_string` calls.

`ty_of_method_or_bare_fn` currently calls `pat_to_string` even when it
doesn't need to. Fixing this avoids hundreds of large allocations (e.g.
171,600 bytes, in `mk_printer`) in several of the rustc-benchmarks.

7 years agoFix documentation for `write!` on `std::fmt` page
Wesley Wiser [Thu, 6 Oct 2016 00:27:47 +0000 (20:27 -0400)]
Fix documentation for `write!` on `std::fmt` page

Fixes #36906

7 years agoAuto merge of #37024 - GuillaumeGomez:rollup, r=GuillaumeGomez
bors [Fri, 7 Oct 2016 11:24:24 +0000 (04:24 -0700)]
Auto merge of #37024 - GuillaumeGomez:rollup, r=GuillaumeGomez

Rollup of 5 pull requests

- Successful merges: #36222, #36665, #36929, #37003, #37008
- Failed merges:

7 years agoRollup merge of #37008 - tshepang:quotes, r=steveklabnik
Guillaume Gomez [Fri, 7 Oct 2016 09:45:05 +0000 (11:45 +0200)]
Rollup merge of #37008 - tshepang:quotes, r=steveklabnik

reference: use ticks instead of quotes

7 years agoRollup merge of #37003 - GuillaumeGomez:underline-removal, r=steveklabnik
Guillaume Gomez [Fri, 7 Oct 2016 09:45:04 +0000 (11:45 +0200)]
Rollup merge of #37003 - GuillaumeGomez:underline-removal, r=steveklabnik

Remove underline when run button hovered

r? @steveklabnik

7 years agoRollup merge of #36929 - angelsl:issue-36683, r=steveklabnik
Guillaume Gomez [Fri, 7 Oct 2016 09:45:04 +0000 (11:45 +0200)]
Rollup merge of #36929 - angelsl:issue-36683, r=steveklabnik

Reference: Mention `move` keyword for lambdas

From issue #36683

7 years agoRollup merge of #36665 - kmcallister:arc-docs, r=steveklabnik
Guillaume Gomez [Fri, 7 Oct 2016 09:45:04 +0000 (11:45 +0200)]
Rollup merge of #36665 - kmcallister:arc-docs, r=steveklabnik

Update Arc docs to match new Rc docs

`Rc` docs were updated in #36571. This applies similar changes to `Arc` docs.

r? @GuillaumeGomez

7 years agoRollup merge of #36222 - acrrd:better_underline_E0057, r=GuillaumeGomez
Guillaume Gomez [Fri, 7 Oct 2016 09:45:04 +0000 (11:45 +0200)]
Rollup merge of #36222 - acrrd:better_underline_E0057, r=GuillaumeGomez

Better underline for E0057,E0060,E0061

Fix #35214
Part of #35233

r? @jonathandturner

7 years agoAdd regression test.
Jeffrey Seyfried [Fri, 7 Oct 2016 09:23:41 +0000 (09:23 +0000)]
Add regression test.

7 years agoAuto merge of #36940 - eulerdisk:incr_test_for_hash_trait, r=michaelwoerister
bors [Fri, 7 Oct 2016 07:51:28 +0000 (00:51 -0700)]
Auto merge of #36940 - eulerdisk:incr_test_for_hash_trait, r=michaelwoerister

Test Case for Incr. Comp. Hash for traits #36681.

Fixes #36681
Part of #36350

Currently, the following tests fail:

Unsafe modifier
Extern modifier
Extern c to rust-intrinsic
Trait unsafety
Change type of method parameter (&i32 => &mut i32)
Mode of self parameter

r? @michaelwoerister

7 years agoSupport importing inaccessible `extern crate`s with a warning again.
Jeffrey Seyfried [Fri, 7 Oct 2016 07:35:43 +0000 (07:35 +0000)]
Support importing inaccessible `extern crate`s with a warning again.

7 years agoWrap & improve
KillTheMule [Fri, 7 Oct 2016 06:48:19 +0000 (08:48 +0200)]
Wrap & improve

7 years agoAuto merge of #36753 - srinivasreddy:hash, r=nrc
bors [Fri, 7 Oct 2016 04:53:29 +0000 (21:53 -0700)]
Auto merge of #36753 - srinivasreddy:hash, r=nrc

run rustfmt on libstd/collections/hash folder

7 years agoRun rustfmt on librustc_typeck/check/ folder
Srinivas Reddy Thatiparthy [Mon, 26 Sep 2016 03:41:27 +0000 (09:11 +0530)]
Run rustfmt on librustc_typeck/check/ folder

7 years agoPrevent accidentally running 'make install' as sudo.
Ahmed Charles [Fri, 7 Oct 2016 02:36:36 +0000 (19:36 -0700)]
Prevent accidentally running 'make install' as sudo.

7 years agoAuto merge of #35641 - ahmedcharles:install, r=alexcrichton
bors [Thu, 6 Oct 2016 23:31:27 +0000 (16:31 -0700)]
Auto merge of #35641 - ahmedcharles:install, r=alexcrichton

rustbuild: Add install target. #34675

It just prints to the screen currently.

r? @alexcrichton

I'm working on the next commit to actually have it install.