Commit Graph

110046 Commits

Author SHA1 Message Date
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
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
bors
39b62533c7 Auto merge of #70837 - nnethercote:speed-up-find_library_crate, r=petrochenkov
Speed up path searching with `find_library_crate`.

By doing prefix and suffix checking on a `String` copy of each relevant
`PathBuf`, rather than the `PathBuf` itself.
2020-04-07 07:12:51 +00:00
Nicholas Nethercote
a90661a780 Use a SmallVec for Cache::predecessors.
This is a very small win.
2020-04-07 15:12:50 +10:00
bors
209b2be09f Auto merge of #70164 - eddyb:walk-generic-arg, r=nikomatsakis
ty/walk: iterate `GenericArg`s instead of `Ty`s.

Before this PR, `Ty::walk` only iterated over `Ty`s, but that's becoming an increasing problem with `const` generics, as `ty::Const`s in `Substs` are missed by it.

By working with `GenericArg` instead, we can handle both `Ty`s and `ty::Const`s, but also `ty::Region`s, which used to require ad-hoc mechanisms such as `push_regions`.

I've also removed `TraitRef::input_types`, as it's both long obsolete, and easy to misuse.
2020-04-07 04:01:26 +00:00
mark
968b2a36a5 update rustc-dev-guide 2020-04-06 21:13:39 -05:00
Josh Stone
f854070bb8 Forward OsStr::clone_into to the inner Vec
Despite OS differences, they're all just `Vec<u8>` inside, so we can
just forward `clone_into` calls to that optimized implementation.
2020-04-06 18:26:37 -07:00
Josh Stone
b80fa76ee0 Implement ToOwned::clone_into for CStr
It can try to keep its allocation by converting the inner `Box` to
`Vec`, using `clone_into` on the bytes, then convert back to `Box`.
2020-04-06 18:26:37 -07:00
bors
bf1f2eedda Auto merge of #70865 - Dylan-DPC:rollup-jje2cuv, r=Dylan-DPC
Rollup of 5 pull requests

Successful merges:

 - #70612 (Add io::Write::write_all_vectored)
 - #70690 (Clean up E0501 explanation)
 - #70821 (expose suggestions::InferCtxtExt for clippy)
 - #70839 (clean up E0506 explanation)
 - #70859 (Move sanitize-inline-always test to sanitize directory)

Failed merges:

r? @ghost
2020-04-07 00:56:00 +00:00
Vadim Petrochenkov
5a4fa4554f linker: Some minor code cleanup 2020-04-07 02:41:41 +03:00
Nicholas Nethercote
a932616cf1 Speed up path searching with find_library_crate.
By doing prefix and suffix checking on a `String` copy of each relevant
`PathBuf`, rather than the `PathBuf` itself.
2020-04-07 09:21:15 +10:00
Jonas Schievink
b30d906a98 Add some more comments 2020-04-07 01:10:49 +02:00
Josh Stone
e8339e820b Use split_at in slice's ToOwned::clone_into
It appears to codegen slightly more efficiently with `split_at` taking
two slices at once, rather than slicing across different calls.
2020-04-06 15:50:59 -07:00
Linus Färnstrand
f7778d36c7 Use assoc integer constants in librustc_* 2020-04-07 00:43:16 +02:00
Linus Färnstrand
cf8df0157a Use assoc integer constants in libserialize 2020-04-07 00:43:15 +02:00