bors
d6e4028a0d
Auto merge of #65713 - lzutao:clippy-up, r=Manishearth
...
Update clippy
Replaces #65690
cc #65503
Closes #65683
2019-10-23 06:07:49 +00:00
Lzu Tao
557cbd0fd5
Public some types for compiletest_rs
2019-10-23 03:49:42 +00:00
Lzu Tao
7e0ef6e92e
update compiletest
2019-10-23 02:46:10 +00:00
Clar Fon
eeb549bfc3
Add Cow::is_borrowed and Cow::is_owned
2019-10-22 19:56:41 -04:00
Eric Huss
fe3dc31710
Update cargo
2019-10-22 15:22:57 -07:00
Mark Rousskov
4e8d1b2292
Add some documentation
2019-10-22 16:53:28 -04:00
Mathias Blikstad
ef5acdeceb
RFC 2027: "first draft" of implementation
...
These are a squashed series of commits.
2019-10-22 15:24:33 -04:00
flip1995
6bc16ef3c7
Update Clippy
2019-10-22 19:11:28 +00:00
flip1995
76f9b3b4c9
Readd some PartialEq and Hash derives used by Clippy
2019-10-22 19:11:28 +00:00
Mateusz Mikuła
bedbf3bacb
Apply clippy::single_match suggestion
2019-10-22 19:23:10 +02:00
Mateusz Mikuła
7491468278
Apply clippy::while_let_on_iterator suggestions
2019-10-22 19:23:10 +02:00
Mateusz Mikuła
e1aa297b8b
Apply clippy::redundant_pattern_matching suggestion
2019-10-22 19:23:10 +02:00
Mateusz Mikuła
95c06a2970
Apply clippy::needless_return suggestions
2019-10-22 19:23:10 +02:00
Igor Aleksanov
8497f793d5
Add missing space in librustdoc
2019-10-22 20:14:34 +03:00
Mateusz Mikuła
dffc1b3282
Apply clippy::useless_let_if_seq suggestion
2019-10-22 19:14:22 +02:00
Ralf Jung
fe84809394
relax ExactSizeIterator bound on write_bytes: too many iterators don't have that bound
2019-10-22 18:08:21 +02:00
togiberlin
de3fd021f5
Target-feature documented as unsafe. rustc book and rustc -C help have been modified.
2019-10-22 17:16:45 +02:00
varkor
51c687446d
Add regression test for #65675
2019-10-22 15:49:43 +01:00
varkor
9220558c24
Fix an issue with const inference variables sticking around under Chalk + NLL
2019-10-22 15:49:43 +01:00
Yuki Okushi
a1f65895a0
Add link to async/await
2019-10-22 21:10:51 +09:00
bors
57bfb80962
Auto merge of #65503 - popzxc:refactor-libtest, r=wesleywiser
...
Refactor libtest
## Short overview
`libtest` got refactored and splitted into smaller modules
## Description
`libtest` module is already pretty big and hard to understand. Everything is mixed up: CLI, console output, test execution, etc.
This PR splits `libtest` into smaller logically-consistent modules, makes big functions smaller and more readable, and adds more comments, so `libtest` will be easier to understand and maintain.
Although there are a lot of changes, all the refactoring is "soft", meaning that no public interfaces were affected and nothing should be broken.
Thus this PR (at least should be) completely backward-compatible.
r? @wesleywiser
cc @Centril
2019-10-22 12:01:41 +00:00
varkor
2dda8ad98a
Use E0741 for structural match error
2019-10-22 12:28:23 +01:00
varkor
7f13a4a80a
Remove FIXME
2019-10-22 12:26:32 +01:00
varkor
9f788f3a2b
Fix rustdoc const generics test
2019-10-22 12:26:32 +01:00
varkor
f0e6cd9f89
Remove "type parameter depends on const parameter" error from resolution
2019-10-22 12:26:32 +01:00
varkor
133cd2cfaf
Search for generic parameters when finding non-structural_match
types
2019-10-22 12:26:32 +01:00
varkor
bbd53deaeb
Forbid non-structural_match
types in const generics
2019-10-22 12:26:32 +01:00
varkor
600607f45a
Move search_for_adt_without_structural_match
to ty/mod
2019-10-22 12:26:32 +01:00
Eduard-Mihai Burtescu
371cc39b25
rustc_metadata: use a table for impl_trait_ref.
2019-10-22 14:21:16 +03:00
Eduard-Mihai Burtescu
7a80a11a83
rustc_metadata: use a table for fn_sig.
2019-10-22 14:21:14 +03:00
Michael Woerister
66a0253780
self-profiling: Remove module names from some event-ids in codegen backend.
2019-10-22 12:53:46 +02:00
Eduard-Mihai Burtescu
74db3e8a9e
rustc_metadata: use a table for super_predicates.
2019-10-22 13:42:11 +03:00
Dylan DPC
07f2f054ec
Update error_codes.rs
2019-10-22 12:07:07 +02:00
Yuki Okushi
7a85c430fb
Add test for issue-63496
2019-10-22 18:52:08 +09:00
Guillaume Gomez
ed965f1b6a
Update E0659 error code long explanation to 2018 edition
2019-10-22 11:52:05 +02:00
Ralf Jung
fc5b48514e
add comments
2019-10-22 10:18:38 +02:00
Ralf Jung
768965a2a6
bring back some Debug instances for Miri
2019-10-22 10:15:56 +02:00
Yuki Okushi
93fab980e3
Add test for issue-52437
2019-10-22 17:05:03 +09:00
Yuki Okushi
dd0f98bc3e
Add test for issue-51431
2019-10-22 17:05:03 +09:00
Yuki Okushi
a239c8dfb2
Add test for issue-41366
2019-10-22 17:05:03 +09:00
yjhmelody
40f92b3b05
refactor maybe_append
2019-10-22 12:25:14 +08:00
bors
50ffa79589
Auto merge of #65501 - alexcrichton:remove-emscripten-backend, r=Mark-Simulacrum
...
Remove `src/llvm-emscripten` submodule
With #65251 landed there's no need to build two LLVM backends and ship
them with rustc, every target we have now uses the same LLVM backend!
This removes the `src/llvm-emscripten` submodule and additionally
removes all support from rustbuild for building the emscripten LLVM
backend. Multiple codegen backend support is left in place for now, and
this is intended to be an easy 10-15 minute win on CI times by avoiding
having to build LLVM twice.
2019-10-22 04:09:28 +00:00
Dan Gohman
3f1af9056d
Code cleanups following up on #65576 .
...
This makes a few code cleanups to follow up on the review comments in
https://github.com/rust-lang/rust/pull/65576 .
2019-10-21 17:29:40 -07:00
bors
6576f4be5a
Auto merge of #65671 - Centril:rollup-00glhmb, r=Centril
...
Rollup of 7 pull requests
Successful merges:
- #62330 (Change untagged_unions to not allow union fields with drop)
- #65092 (make is_power_of_two a const function)
- #65621 (miri: add write_bytes method to Memory doing bounds-checks and supporting iterators)
- #65647 (Remove unnecessary trait bounds and derivations)
- #65653 (keep the root dir clean from debugging)
- #65660 (Rename `ConstValue::Infer(InferConst::Canonical(..))` to `ConstValue::Bound(..)`)
- #65663 (Fix typo from #65214 )
Failed merges:
r? @ghost
2019-10-22 00:20:12 +00:00
Yuki Okushi
4fcc784c9a
Apply suggestions
2019-10-22 09:02:58 +09:00
Yuki Okushi
cde60e82a0
Add long error explanation for E0728
2019-10-22 08:48:01 +09:00
Alex Crichton
c7d285b781
Remove src/llvm-emscripten
submodule
...
With #65251 landed there's no need to build two LLVM backends and ship
them with rustc, every target we have now uses the same LLVM backend!
This removes the `src/llvm-emscripten` submodule and additionally
removes all support from rustbuild for building the emscripten LLVM
backend. Multiple codegen backend support is left in place for now, and
this is intended to be an easy 10-15 minute win on CI times by avoiding
having to build LLVM twice.
2019-10-21 13:05:31 -07:00
Mazdak Farrokhzad
56756c28a0
Rollup merge of #65663 - Amanieu:typo, r=varkor
...
Fix typo from #65214
2019-10-21 22:00:54 +02:00
Mazdak Farrokhzad
c461d02e08
Rollup merge of #65660 - varkor:canonical-const-to-bound-const, r=eddyb
...
Rename `ConstValue::Infer(InferConst::Canonical(..))` to `ConstValue::Bound(..)`
It already has the right form, so this is just a renaming. Fixes https://github.com/rust-lang/rust/issues/65655 .
r? @eddyb
2019-10-21 22:00:53 +02:00
Mazdak Farrokhzad
760cd9759e
Rollup merge of #65653 - RalfJung:gitignore, r=Mark-Simulacrum,Centril
...
keep the root dir clean from debugging
We landed this before with https://github.com/rust-lang/rust/pull/63307 but recently in https://github.com/rust-lang/rust/pull/65630 the IMO bad ignore crept back in.
If you regularly do graphviz-based debugging and you are fine leaving junk in the rustc root dir, please configure your local `.git/info/exclude`. But most people working on rustc don't work with graphciz all that often (I for once never did), and not everyone likes to have stray generated files in their source dirs.
Also Cc https://github.com/rust-lang/rust/pull/63373 https://github.com/rust-lang/rust/pull/53768 @ecstatic-morse @Mark-Simulacrum
2019-10-21 22:00:51 +02:00