Vadim Petrochenkov
175d325ccb
rustc_metadata: Move some code around
...
Plugin search doesn't need a crate loader, only crate locator
2019-10-24 20:51:33 +03:00
Vadim Petrochenkov
2cda75c48f
rustc_metadata: Remove unnecessary use of crate store in plugin loader
2019-10-24 20:51:33 +03:00
Vadim Petrochenkov
2c16f84490
rustc_driver: Remove unnecessary use of crate store
2019-10-24 20:50:11 +03:00
csmoe
184a61f0bf
Don't assert for different instance on impl trait alias
2019-10-25 01:15:37 +08:00
Eduard-Mihai Burtescu
1ca8da4036
rustc_typeck: compute better spans for inferred_outlives.
2019-10-24 20:06:37 +03:00
Eduard-Mihai Burtescu
93cac9c3da
rustc: add Span
s to inferred_outlives_of
predicates.
2019-10-24 20:06:37 +03:00
bors
10a52c25ca
Auto merge of #65762 - mati865:msys2-bug, r=pietroalbini
...
workaround msys2 bug
2019-10-24 16:08:03 +00:00
Mateusz Mikuła
2fea52511e
workaround msys2 bug
...
Co-Authored-By: Pietro Albini <pietro@pietroalbini.org>
2019-10-24 18:03:01 +02:00
Guanqun Lu
5defe06f96
reorder TomlTarget struct's fields based on the order in config.toml.example
2019-10-24 23:54:31 +08:00
Guanqun Lu
2c93fd2cb6
reorder Rust struct's fields based on the order in config.toml.example
2019-10-24 23:53:45 +08:00
Guanqun Lu
e1e60c339a
reorder Install struct's fields based on the order in config.toml.example
2019-10-24 23:51:02 +08:00
Guanqun Lu
945223128a
reorder Build struct's fields based on the order in config.toml.example
2019-10-24 23:50:03 +08:00
Guanqun Lu
a90954163b
reorder Llvm struct's fields based on the order in config.toml.example
2019-10-24 23:46:05 +08:00
Guanqun Lu
2f7e3d55c9
add the missing rust.musl-root option in config.toml.example
2019-10-24 23:43:06 +08:00
Guanqun Lu
9adea61777
add a WARNING to rust.optimize option in config.toml.example
2019-10-24 23:41:48 +08:00
Manish Goregaokar
7d0162d7ed
Update clippy
2019-10-24 08:15:32 -07:00
Michael Woerister
ee1173a8ff
self-profiling: Update measureme to 0.4.0 and use new RAII-based API.
2019-10-24 17:14:38 +02:00
Michael Woerister
f6aa64b7b0
self-profiling: Remove unused methods from profiler.
2019-10-24 17:13:38 +02:00
Alex Crichton
060b6cbe74
Update hashbrown to 0.6.2
...
Pulls in rust-lang/hashbrown#119 which should be a good improvement for
compile times of hashmap-heavy crates.
2019-10-24 08:07:03 -07:00
Sydney Acksman
4cfcb77084
Changed APIT with explicit generic args span to specific arg spans
2019-10-24 09:47:26 -05:00
Lukas Kalbertodt
c36b9ddcb4
Add UI tests for array::IntoIter
impls
...
This it to make sure traits are implemented for arrays with length 32
and below, while they are not implemented for >= 33.
2019-10-24 15:46:44 +02:00
Lukas Kalbertodt
5334a307d5
Add unit tests for array::IntoIter
...
Many tests are based on tests by Josh Stone <cuviper@gmail.com>
2019-10-24 15:46:44 +02:00
Lukas Kalbertodt
a2e94ca1ee
Add array::IntoIter
as a consuming/by-value array iterator
...
The iterator is implemented using const generics. It implements the
traits `Iterator`, `DoubleEndedIterator`, `ExactSizeIterator`,
`FusedIterator` and `TrustedLen`. It also contains a public method
`new` to create it from an array.
`IntoIterator` was not implemented for arrays yet, as there are still
some open questions regarding backwards compatibility. This commit
only adds the iterator impl and does not yet offer a convenient way
to obtain that iterator.
2019-10-24 15:46:44 +02:00
Esteban Küber
18d873e8f0
Avoid ICE when adjusting bad self ty
2019-10-24 00:41:14 -07:00
bors
8e0007f829
Auto merge of #65474 - Mark-Simulacrum:rustc-dev-split, r=pietroalbini
...
Split the rustc target libraries into separate rustc-dev component
This is re-applies a squashed version of #64823 as well as including #65337 to fix bugs noted after merging the first PR.
The second PR is confirmed as fixing windows-gnu, and presumably also fixes other platforms, such as musl (i.e. #65335 should be fixed); `RUSTUP_DIST_SERVER=https://dev-static.rust-lang.org rustup toolchain install nightly-2019-10-16` can be installed to confirm that this is indeed the case.
2019-10-24 07:27:00 +00:00
wangxiangqing
b1331563ba
Deprecated proc_macro doesn't trigger warning on build library
...
Change-Id: Ib3a396e7334d209fe6c6ef425bbfc7b2ae471378
2019-10-24 14:14:51 +08:00
bors
55e00631e5
Auto merge of #65733 - Centril:rollup-0zth66f, r=Centril
...
Rollup of 12 pull requests
Successful merges:
- #64178 (More Clippy fixes for alloc, core and std)
- #65144 (Add Cow::is_borrowed and Cow::is_owned)
- #65193 (Lockless LintStore)
- #65479 (Add the `matches!( $expr, $pat ) -> bool` macro)
- #65518 (Avoid ICE when checking `Destination` of `break` inside a closure)
- #65583 (rustc_metadata: use a table for super_predicates, fn_sig, impl_trait_ref.)
- #65641 (Derive `Rustc{En,De}codable` for `TokenStream`.)
- #65648 (Eliminate `intersect_opt`.)
- #65657 (Remove `InternedString`)
- #65691 (Update E0659 error code long explanation to 2018 edition)
- #65696 (Fix an issue with const inference variables sticking around under Chalk + NLL)
- #65704 (relax ExactSizeIterator bound on write_bytes)
Failed merges:
r? @ghost
2019-10-24 03:38:57 +00:00
Esteban Küber
8467ceff22
Tweak format string error to point at arguments always
...
Add secondary span labels with no text to make it clear when there's a
mismatch bewteen the positional arguments in a format string and the
arguments to the macro. This shouldn't affect experienced users, but it
should make it easier for newcomers to more clearly understand how
`format!()` and `println!()` are supposed to be used.
```
error: 2 positional arguments in format string, but there is 1 argument
--> file8.rs:2:14
|
2 | format!("{} {}", 1);
| ^^ ^^ -
```
instead of
```
error: 2 positional arguments in format string, but there is 1 argument
--> file8.rs:2:14
|
2 | format!("{} {}", 1);
| ^^ ^^
```
2019-10-23 17:32:33 -07:00
Mazdak Farrokhzad
822f787546
Adjust the tracking issue for untagged_unions
.
...
Also elaborate on some feature gates in `active.rs`.
2019-10-24 02:24:14 +02:00
Eduard-Mihai Burtescu
d717806363
rustc_typeck: don't record direct callees in generator_interior.
2019-10-24 01:58:25 +03:00
Mazdak Farrokhzad
15a6c09b6e
pre-expansion gate type_ascription
2019-10-24 00:32:03 +02:00
Mazdak Farrokhzad
e4ed886578
pre-expansion gate box_syntax
2019-10-24 00:32:03 +02:00
Mazdak Farrokhzad
137ded8ab1
pre-expansion gate label_break_value
2019-10-24 00:32:03 +02:00
Mazdak Farrokhzad
66995a6a71
dedup GAT gate checks
2019-10-24 00:32:03 +02:00
Mazdak Farrokhzad
1935ba658c
pre-expansion gate try_blocks
2019-10-24 00:32:03 +02:00
Mazdak Farrokhzad
665a876e30
pre-expansion gate exclusive_range_pattern
2019-10-24 00:32:03 +02:00
Mazdak Farrokhzad
2aff6b36d7
pre-expansion gate box_patterns
2019-10-24 00:32:03 +02:00
Mazdak Farrokhzad
1f470ceac2
pre-expansion gate decl_macro
2019-10-24 00:32:03 +02:00
Mazdak Farrokhzad
49cbfa1a6f
pre-expansion gate const_generics
2019-10-24 00:32:03 +02:00
Mazdak Farrokhzad
04c661ba02
pre-expansion gate crate_visibility_modifier
2019-10-24 00:32:03 +02:00
Mazdak Farrokhzad
c17a1fd7d0
pre-expansion gate associated_type_bounds
2019-10-24 00:32:03 +02:00
Mazdak Farrokhzad
2d182b82ce
pre-expansion gate trait_alias.
2019-10-24 00:32:03 +02:00
Mazdak Farrokhzad
2e64bb2d37
syntax: reject trait Foo: Bar = Baz;
.
...
Add test for rejecting `trait A: B1 = B2;`.
Also test rejection of `trait A: = B;`.
2019-10-24 00:31:11 +02:00
Guillaume Gomez
01a1bcb7f9
Fix default "disable-shortcuts" feature value
2019-10-24 00:25:04 +02:00
David Wood
7ffbd62445
ignore uninhabited non-exhaustive variant fields
...
This commit modifies the uninhabitedness checking so that the fields of
a non-exhaustive variant (which is not local) are ignored if they are
uninhabited. This is an improvement over the previous behaviour which
considered all non-local non-exhaustive variants useful because
unreachable patterns are now detected.
Signed-off-by: David Wood <david@davidtw.co>
2019-10-23 22:10:58 +01:00
Mazdak Farrokhzad
3cd7a17406
Rollup merge of #65704 - RalfJung:exact-size, r=oli-obk
...
relax ExactSizeIterator bound on write_bytes
Too many iterators don't have that bound. Instead we do run-time checks.
r? @oli-obk
2019-10-23 22:19:24 +02:00
Mazdak Farrokhzad
b2b35797d0
Rollup merge of #65696 - varkor:nll-chalk-const-generics-issue, r=eddyb
...
Fix an issue with const inference variables sticking around under Chalk + NLL
Fixes https://github.com/rust-lang/rust/issues/65675 .
Fixes https://github.com/rust-lang/rust/issues/62579 .
r? @eddyb
cc @LukasKalbertodt @skinny121
2019-10-23 22:19:22 +02:00
Mazdak Farrokhzad
ba9a9ebb25
Rollup merge of #65691 - GuillaumeGomez:2018-edition-E0659, r=Dylan-DPC
...
Update E0659 error code long explanation to 2018 edition
Fixes #65571
r? @Centril
2019-10-23 22:19:21 +02:00
Mazdak Farrokhzad
a649b1666c
Rollup merge of #65657 - nnethercote:rm-InternedString-properly, r=eddyb
...
Remove `InternedString`
This PR removes `InternedString` by converting all occurrences to `Symbol`. There are a handful of places that need to use the symbol chars instead of the symbol index, e.g. for stable sorting; local conversions `LocalInternedString` is used in those places.
r? @eddyb
2019-10-23 22:19:19 +02:00
Mazdak Farrokhzad
951b8c84be
Rollup merge of #65648 - nnethercote:rm-intersect_opt, r=nikomatsakis
...
Eliminate `intersect_opt`.
Its fourth argument is always `Some(pred)`, so the pattern matching is
unnecessary. This commit inlines and removes it.
r? @nikomatsakis
2019-10-23 22:19:17 +02:00