Commit Graph

110166 Commits

Author SHA1 Message Date
Dylan DPC
9a84771a23
Rollup merge of #70914 - tsandstr:typo1, r=Dylan-DPC
Corrects a typo in rustdoc documentation.

Fixes rust-lang#70856

Sorry, I am just learning git and I think I may have accidentally done some wacky stuff that closed my last PR. Here it is again.
2020-04-08 18:37:28 +02:00
Dylan DPC
e3346e5b95
Rollup merge of #70892 - lcnr:interators_are_nice, r=nikomatsakis
wf: refactor `compute_trait_ref`

moves `extend_cause_with_original_assoc_item_obligation` out of `compute_trait_ref` and
changes `trait_assoc_items` to an iterator. This saves us from building an unnecessary `Vec<_>`

r? @eddyb i guess
2020-04-08 18:37:27 +02:00
Dylan DPC
66966667b5
Rollup merge of #70883 - GuillaumeGomez:cleanup-e0507, r=Dylan-DPC
Clean up E0507 explanation

r? @Dylan-DPC
2020-04-08 18:37:25 +02:00
Dylan DPC
e97a6e7bdc
Rollup merge of #70876 - nnethercote:smallvec-predecessors, r=estebank
Use a `SmallVec` for `Cache::predecessors`.

This is a very small win.
2020-04-08 18:37:24 +02:00
Dylan DPC
b9bb12640e
Rollup merge of #70850 - ssomers:btreemap_first_last, r=Amanieu
BTreeMap first last proposal tweaks

Clean-up and following up on a request in #62924.

Trying the reviewer of the original code #65637...
r? @scottmcm
2020-04-08 18:37:22 +02:00
Dylan DPC
54abd4ffcf
Rollup merge of #70847 - pietroalbini:ci-move-docker-lib, r=Mark-Simulacrum
ci: move /var/lib/docker to /mnt on GHA

There are some builders that are running out of disk space while building the Docker images, such as arm-android. This moves and symlinks `/var/lib/docker` to the `/mnt` partition on Linux GHA.

Example of a build failing because of this: https://github.com/rust-lang-ci/rust/runs/564628621
2020-04-08 18:37:18 +02:00
Dylan DPC
956e50bce1
Rollup merge of #70789 - lcnr:macros, r=varkor
remove false positives of unused_braces

fixes #70717

We could potentially be more aggressive when linting let bindings by checking if there are any explicit `ref`s.
I have been unable to create a snippet which compiles when using braces but has a borrowck error
without them. The closes I've gotten is [the following (playground)](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=4a1552ebe9648cb13fcb8dd969189a6c).

r? @eddyb
2020-04-08 18:37:16 +02:00
Bastian Kauschke
839d229550
add VecDeque::make_contiguous tracking issue 2020-04-08 16:53:04 +02:00
Niko Matsakis
563152d883 comment pessimistic yield and saving/restoring state 2020-04-08 14:49:57 +00:00
Guillaume Gomez
80e3126ec1 Clean up E0510 explanation 2020-04-08 15:05:52 +02:00
Alex Aktsipetrov
aaebbe196b Suggest move for closures and async blocks in more cases. 2020-04-08 13:01:53 +02:00
marmeladema
6ae3888b19 librustc_resolve: fixup nit in previous commit 2020-04-08 09:23:58 +01:00
Eduard-Mihai Burtescu
9d13520a6b Replace "rc"/"arc" lang items with Rc/Arc diagnostic items. 2020-04-08 10:47:41 +03:00
Tobias Thiel
f03db79eaa rustc_session: forbid lints override regardless of position 2020-04-07 22:05:32 -07:00
mark
b9f91e5227 ignore 429's when linkcheck 2020-04-07 23:29:45 -05:00
mark
daddf4db72 fix another ICE 2020-04-07 22:47:26 -05:00
mark
a38eae5942 fix ice with trait obj dummy self 2020-04-07 22:47:26 -05:00
mark
4fe09f282b fix abuses of tykind::err 2020-04-07 22:47:25 -05:00
Theo Sandstrom
4cdb2065ef Remove unnecessary TypeFlags::NOMINAL_FLAGS
This was a relic from when we had "nominal flags" and "cached
properties." The latter no longer exists, so nominal flags are no
longer necessary. In fact, every flag is considered a nominal flag. I
went ahead and removed all references to NOMINAL_FLAGS.

Fixes rust-lang#70836
2020-04-07 21:57:31 -04:00
Mazdak Farrokhzad
f6c729d4a0 track_caller: harden naked interactions 2020-04-08 03:49:53 +02:00
Esteban Küber
a3e54b59f9 Do not suggest adding type param when use is already suggested
Fix #70365, cc #70572.
2020-04-07 18:07:26 -07:00
Josh Stone
ce8abc63a7 Avoid extra &mut in Chain::fold and try_fold 2020-04-07 16:58:52 -07:00
Josh Stone
2c4cffde3b Reduce callsites in Chain::last() 2020-04-07 16:50:26 -07:00
Josh Stone
8aac1077ed Reduce callsites in Chain::count() 2020-04-07 16:50:16 -07:00
marmeladema
59e0db69e0 librustc_hir: return LocalDefId instead of DefId in local_def_id 2020-04-08 00:43:56 +01:00
Theo Sandstrom
d55c3998e0 Corrects a typo in rustdoc documentation.
Fixes rust-lang#70856
2020-04-07 18:37:35 -04:00
flip1995
70d9f9eab6
Update Clippy 2020-04-07 22:50:58 +02:00
Eric Huss
ff26849e6b Update cargo 2020-04-07 13:29:15 -07:00
Guillaume Gomez
cbee6c5f0c Extend sidebar scrollbar changes to all scrollbars 2020-04-07 22:10:17 +02:00
Ralf Jung
203accce35 bump Miri 2020-04-07 20:23:43 +02:00
Ana-Maria Mihalache
d0e0f4021d Remove old mir-opt test format. 2020-04-07 18:02:11 +00:00
Josh Stone
859b8da21f Implement Chain with Option fuses
The iterators are now "fused" with `Option` so we don't need separate
state to track which part is already exhausted, and we may also get
niche layout for `None`. We don't use the real `Fuse` adapter because
its specialization for `FusedIterator` unconditionally descends into the
iterator, and that could be expensive to keep revisiting stuff like
nested chains. It also hurts compiler performance to add more iterator
layers to `Chain`.
2020-04-07 10:55:00 -07:00
Ana-Maria Mihalache
ea4aca19c1 Normalize away pairs of line:col numbers. 2020-04-07 17:49:14 +00:00
Ana-Maria Mihalache
e0bb75ef69 Add EMIT_MIR_FOR_EACH_BIT_WIDTH to tests that need it. 2020-04-07 17:49:14 +00:00
Ana-Maria Mihalache
688a4ddd20 --bless more mir-opt tests. 2020-04-07 17:49:14 +00:00
Jonas Schievink
b8f416d67f Further improve comments 2020-04-07 19:30:16 +02:00
Tomasz Miąsko
ebd02670fe Update LLVM submodule fixing sanitizers build with glibc 2.31 2020-04-07 18:00:02 +02:00
Bastian Kauschke
817f05986a remove false positives of unused_braces 2020-04-07 17:54:50 +02:00
Guillaume Gomez
e1aa88c6a0 Improve scrollbar display in rustdoc 2020-04-07 17:50:39 +02:00
Bastian Kauschke
ab4178bd7d wf: refactor compute_trait_ref 2020-04-07 17:49:47 +02:00
Ana-Maria Mihalache
ef88769e4f --bless all mir-opt tests. 2020-04-07 15:09:01 +00:00
bors
42abbd8878 Auto merge of #70884 - Dylan-DPC:rollup-r3raqdf, r=jonas-schievink
Rollup of 5 pull requests

Successful merges:

 - #70201 (Small tweaks in ToOwned::clone_into)
 - #70762 (Miri leak check: memory reachable through globals is not leaked)
 - #70846 (Keep codegen units unmerged when building compiler builtins)
 - #70854 (Use assoc int submodules)
 - #70857 (Don't import integer and float modules, use assoc consts 2)

Failed merges:

r? @ghost
2020-04-07 13:43:30 +00:00
Tomasz Miąsko
7c5a4cdd66 Make LLVM version suffix independent of rustc version on dev channel
Remove rustc version from LLVM version suffix on dev channel, avoiding
the need for full rebuilds when moving between commits with different
LLVM submodule & rustc version.
2020-04-07 15:03:24 +02:00
Dylan DPC
89d661f15d
Rollup merge of #70857 - faern:use-assoc-int-float-consts, r=dtolnay
Don't import integer and float modules, use assoc consts 2

Follow up to #70777. I missed quite a lot of places. Partially because I wanted to keep the size of the last PR down, and partially because my regexes were not good enough :)

r? @dtolnay
2020-04-07 14:46:59 +02:00
Dylan DPC
78c64d062a
Rollup merge of #70854 - faern:use-assoc-int-submodules, r=dtolnay
Use assoc int submodules

Bumping some submodules to the commits their masters currently point at. The main point of this is to get the associated integer/float constant documentation updates that were recently merged to them:

* https://github.com/rust-lang/nomicon/pull/207
* https://github.com/rust-lang/rust-by-example/pull/1327
* https://github.com/rust-lang/stdarch/pull/848

But for some, a few more changes slipped by that happened to be in the master branch of these submodules.

r? @dtolnay
2020-04-07 14:46:58 +02:00
Dylan DPC
f56fb51a8b
Rollup merge of #70846 - tmiasko:compiler-builtins-codegen-units, r=alexcrichton
Keep codegen units unmerged when building compiler builtins

Make it possible to control how mono items are partitioned into code generation
units, when compiling the compiler builtins, by retaining the original partitioning.

Helps with #48625, #61063, #67960, #70489.

r? @alexcrichton
2020-04-07 14:46:56 +02:00
Dylan DPC
f2c59bd603
Rollup merge of #70762 - RalfJung:miri-leak-check, r=oli-obk
Miri leak check: memory reachable through globals is not leaked

Also make Miri memory dump prettier by sharing more code with MIR dumping, and fix a bug where the Miri memory dump would print some allocations twice.

r? @oli-obk

Miri PR: https://github.com/rust-lang/miri/pull/1301
2020-04-07 14:46:55 +02:00
Dylan DPC
795bc2ccff
Rollup merge of #70201 - cuviper:clone_into, r=dtolnay
Small tweaks in ToOwned::clone_into

- `<[T]>::clone_into` is slightly more optimized.
- `CStr::clone_into` is new, letting it reuse its allocation.
- `OsStr::clone_into` now forwards to the underlying slice/`Vec`.
2020-04-07 14:46:53 +02:00
Guillaume Gomez
6569a2ec1b Clean up E0507 explanation 2020-04-07 14:08:04 +02:00
Eduard-Mihai Burtescu
b88cb3dc11 bootstrap: work around "unused attribute" errors in incremental stdlib rebuilds. 2020-04-07 14:59:07 +03:00