Jethro Beekman
7ccf492ae6
Package non-rust objects
2019-10-15 18:38:18 -04:00
Josh Stone
4c906dc84e
Add rustc-dev to nightly default and complete profiles
2019-10-15 18:38:18 -04:00
Josh Stone
3a05616cb6
minimize the rust-std component
...
This splits out a rustc-dev component with the compiler crates, and
keeps the status quo of default installed files on nightly. The default
changing to not install compiler libraries by default is left for a
future pull request.
However, on stable and beta, this does remove the compiler libraries
from the set of libraries installed by default, as they are never needed
there (per our stability story, they "cannot" be used).
2019-10-15 18:38:18 -04:00
Esteban Küber
c6dce7802d
Fix comparison after rebase
2019-10-15 14:07:32 -07:00
Esteban Küber
9ecd1d2767
Simplify code
2019-10-15 13:55:44 -07:00
Esteban Küber
9ed463a740
Do not suggest restriction on spans originating in macros
2019-10-15 13:55:44 -07:00
Esteban Küber
9c525ee95b
review comments
2019-10-15 13:55:44 -07:00
Esteban Küber
8cabb42541
Remove trailing whitespace
2019-10-15 13:55:44 -07:00
Esteban Küber
39a9e2ecba
Remove useless help
2019-10-15 13:55:44 -07:00
Esteban Küber
ab7d8f0f5a
Deduplicate some code and apply review comments
2019-10-15 13:55:44 -07:00
Esteban Küber
bc744bca90
Suggest associated bound restrictions in impl
s
2019-10-15 13:55:44 -07:00
Esteban Küber
5cc99eed04
Handle missing projection restriction
2019-10-15 13:55:44 -07:00
Esteban Küber
daa8491648
Update NLL tests
2019-10-15 13:55:44 -07:00
Esteban Küber
b81df6b739
Consider trait aliases
2019-10-15 13:55:44 -07:00
Esteban Küber
ca1885de41
Update some tests involving Self
2019-10-15 13:55:43 -07:00
Esteban Küber
99ab45b91d
Handle Self
restriction needed
2019-10-15 13:55:43 -07:00
Esteban Küber
dbd75c8c40
Handle more cases involving impl
and trait
2019-10-15 13:55:43 -07:00
Esteban Küber
5b7ffd9333
Handle more cases
2019-10-15 13:55:43 -07:00
Esteban Küber
190589f8a7
Use structured suggestion for restricting bounds
...
When a trait bound is not met and restricting a type parameter would
make the restriction hold, use a structured suggestion pointing at an
appropriate place (type param in param list or `where` clause).
Account for opaque parameters where instead of suggesting extending
the `where` clause, we suggest appending the new restriction:
`fn foo(impl Trait + UnmetTrait)`.
2019-10-15 13:55:43 -07:00
Manish Goregaokar
33543ed122
Update clippy
2019-10-15 13:52:34 -07:00
Matthew Jasper
4198df1f4b
Remove some mentions of gensyms
2019-10-15 21:12:05 +01:00
Matthew Jasper
94967f23f7
Remove gensyms
2019-10-15 21:12:05 +01:00
Matthew Jasper
1a2597b64a
Don't use gensym_if_underscore
to resolve _
bindings
...
Instead add a disambiguator to the keys used for distinguishing
resolutions.
2019-10-15 21:12:04 +01:00
Nicholas Nethercote
60851b08e5
Optimize BitSet
iteration.
...
This commit removes an `Option` check in `BitIter::next()`, avoids
calling `trailing_zeros()` when it's not necessary, and avoids the need
for `enumerate()`. This gives a tiny (0.2%) instruction count win on a
couple of benchmarks.
The commit also adds some comments, which is good because this iteration
code is moderately complex.
2019-10-16 06:53:08 +11:00
Nicholas Nethercote
2918a7d5a9
Add BitIter::new()
.
...
This factors out some duplicated code.
2019-10-16 06:19:41 +11:00
Eduard-Mihai Burtescu
c39af6e79b
rustc_codegen_ssa: remove some unnecessary Box special-casing.
2019-10-15 22:11:39 +03:00
Santiago Pastorino
fa3a4aeae5
Implement AsRef<[T]> for List<T>
2019-10-15 14:43:24 -03:00
Giles Cope
d82c1c546d
Avoid unused lifetime warning for lifetimes introduced when desugering async.
2019-10-15 18:05:13 +01:00
wangxiangqing
fe819a074c
Collect occurrences of for mismatched braces diagnostic
...
Change-Id: I20ba0b62308370ee961141fa1aefc4b9c9f0cb3a
2019-10-15 23:59:22 +08:00
Eduard-Mihai Burtescu
d89dddc920
rustc_metadata: address some review comments.
2019-10-15 18:23:51 +03:00
Eduard-Mihai Burtescu
34066d60c3
rustc_metadata: don't use more space than needed, for each Table.
2019-10-15 18:23:51 +03:00
Eduard-Mihai Burtescu
ee747f645f
rustc_metadata: replace Entry table with one table for each of its fields (AoS -> SoA).
2019-10-15 18:23:51 +03:00
Eduard-Mihai Burtescu
972b93b20e
rustc_metadata: use decoder::Metadata instead of &[u8] for Lazy<Table<T>>::get.
2019-10-15 18:23:51 +03:00
Eduard-Mihai Burtescu
cef4950280
rustc_metadata: generalize Table<T> to hold T, not Lazy<T>, elements.
2019-10-15 18:23:51 +03:00
Eduard-Mihai Burtescu
677f0df63b
rustc_metadata: add a helper macro for recording into PerDefTable's.
2019-10-15 18:23:51 +03:00
Eduard-Mihai Burtescu
5d52a7e0d0
rustc_metadata: split tables into an usize-keyed Table and a DefIndex-keyed PerDefTable.
2019-10-15 18:23:51 +03:00
Eduard-Mihai Burtescu
dd1264e90a
rustc_metadata: replace Lazy<[Table<T>]> with Lazy<Table<T>>.
2019-10-15 18:23:51 +03:00
Eduard-Mihai Burtescu
ffd18fc22c
rustc_metadata: parametrize Table by element type.
2019-10-15 18:23:51 +03:00
Eduard-Mihai Burtescu
f49274032b
rustc_metadata: rename index::Index to table::Table.
2019-10-15 18:23:50 +03:00
Eduard-Mihai Burtescu
83b3c39218
rustc_metadata: use 0 in index::Index to indicate missing entries.
2019-10-15 18:23:50 +03:00
Eduard-Mihai Burtescu
ea134563e7
rustc_metadata: use NonZeroUsize for the position of a Lazy.
2019-10-15 18:23:50 +03:00
Eduard-Mihai Burtescu
e505857914
rustc_metadata: remove now-redundant length from the start of the encoding.
2019-10-15 18:23:50 +03:00
bors
237d54ff6c
Auto merge of #65433 - Centril:rollup-rzvry15, r=Centril
...
Rollup of 4 pull requests
Successful merges:
- #64035 (Stabilize proc macros generating `macro_rules` items)
- #65376 (syntax: misc extractions)
- #65426 (Remove custom `PartialEq` impls for `LocalInternedString`.)
- #65428 (Refactor: Rename `db` locals to `diag`)
Failed merges:
r? @ghost
2019-10-15 15:14:43 +00:00
Esteban Küber
dee53d7c90
Fix suggestion to constrain trait for method to be found
2019-10-15 08:02:49 -07:00
Mazdak Farrokhzad
1fb8cfb481
Organize never_type
tests
...
Also move {run-fail -> ui}/never_type
2019-10-15 16:58:14 +02:00
phosphorus
53187c5753
Slides path lifetime to the lifetime resolver
...
add test to for the fix
add descriptive text for the fix
simplified code logics
update descriptive comments
update to cope with the tidyness requirement
merged commit suggestions
Co-Authored-By: varkor <github@varkor.com>
truncated redundant comments
update to cope with tidy-check
2019-10-15 13:59:32 +00:00
Mazdak Farrokhzad
8370f14225
Remove unnecessary use crate::sess::ParseSess;
.
2019-10-15 13:28:13 +02:00
Mazdak Farrokhzad
96d640971a
Rollup merge of #65428 - phansch:rename_db_var, r=Centril
...
Refactor: Rename `db` locals to `diag`
https://github.com/rust-lang/rust/pull/64272 replaced `DiagnosticBuilder` with `Diagnostic` in some places. This PR just renames the db variable from `db` to `diag` where it wasn't renamed.
r? @Mark-Simulacrum
2019-10-15 13:27:30 +02:00
Mazdak Farrokhzad
bc3e97a277
Rollup merge of #65426 - nnethercote:rm-custom-LocalInternedString-PartialEq-impls, r=petrochenkov
...
Remove custom `PartialEq` impls for `LocalInternedString`.
This is on-trend with the recent changes simplifying
`LocalInternedString` and reducing its use.
r? @petrochenkov
2019-10-15 13:27:29 +02:00
Mazdak Farrokhzad
d24c66fba3
Rollup merge of #65376 - Centril:syntax-extractions-1, r=petrochenkov
...
syntax: misc extractions
Part of https://github.com/rust-lang/rust/pull/65324 .
r? @petrochenkov
2019-10-15 13:27:28 +02:00