Guillaume Gomez
cbcf8d4235
Rollup merge of #78103 - GuillaumeGomez:rustdoc-book, r=jyn514
...
Add link to rustdoc book in rustdoc help popup
Part of #75520 .
It looks like this:



r? @jyn514
2020-10-19 18:20:26 +02:00
Guillaume Gomez
81180f4d99
Rollup merge of #78099 - pierwill:patch-5, r=jonas-schievink
...
Add missing punctuation
2020-10-19 18:20:24 +02:00
Guillaume Gomez
684fbd50ab
Rollup merge of #78089 - varkor:opt_const_param_of-error, r=lcnr
...
Fix issue with specifying generic arguments for primitive types
Fixes https://github.com/rust-lang/rust/issues/78005 .
r? @lcnr
2020-10-19 18:20:23 +02:00
Guillaume Gomez
a6919ef889
Rollup merge of #77877 - scottmcm:fewer-try-trait-method-references, r=shepmaster
...
Use `try{}` in `try_fold` to decouple iterators in the library from `Try` details
I'd like to experiment with changing the `?`/`try` desugaring and correspondingly the `Try` trait (see #42327 for discussions about the suboptimalities of the current one) and this change would keep from needing any `cfg(bootstrap)` in iterator things.
This will be lowered to the same thing, so shouldn't cause any perf issues:
08e2d46166/compiler/rustc_ast_lowering/src/expr.rs (L428-L429)
But ~~I'll trigger~~ I've triggered [a perf run](https://perf.rust-lang.org/compare.html?start=d65c08e9cc164b7b44de53503fae859a4fafd976&end=2c067c5235e779cd75e9f0cdfe572c64f1a12b9b ) just in case.
~~EDIT: changed to a draft because of the rustfmt-only syntax error. zulip thread about it: https://rust-lang.zulipchat.com/#narrow/stream/122651-general/topic/New.20bootstrap.20rustfmt.20doesn't.20support.20syntax.20from.20sept.3F/near/213098097~~
EDIT: This now includes a rustfmt version bump to get through tidy.
2020-10-19 18:20:20 +02:00
ThibsG
16b5f37b5a
Split eq_op
ui tests to avoid file limit error in CI
2020-10-19 17:36:48 +02:00
bors
f90e617305
Auto merge of #77908 - bugadani:obl-forest, r=nnethercote
...
Try to make ObligationForest more efficient
This PR tries to decrease the number of allocations in ObligationForest, as well as moves some cold path code to an uninlined function.
2020-10-19 15:14:15 +00:00
Guillaume Gomez
880d644a50
Add link to rustdoc book in rustdoc help popup
2020-10-19 15:25:33 +02:00
Bastian Kauschke
34c80aaffd
change name in mailmap
2020-10-19 15:23:32 +02:00
bors
74530adcba
Auto merge of #6166 - achris:master, r=flip1995
...
Suggest a compatible shell for setup-toolchain.sh
setup-toolchain.sh uses "[[" which is a bash builtin, but the guide
suggests running it with sh. On Ubuntu, /bin/sh points to dash and
running the script fails.
---
*Please keep the line below*
changelog: none
2020-10-19 13:17:07 +00:00
wcampbell
736c27ec0b
Revert "[net] clippy: needless_update"
...
This reverts commit 058699d0a2fca02127761f014d0ecfce1c5541ec.
2020-10-19 07:22:45 -04:00
Ralf Jung
153e843c49
fix Rvalue::ty for ThreadLocalRef
2020-10-19 11:44:28 +02:00
Stein Somers
488b999fc2
BTreeMap: test invariants more thoroughly and more readably
2020-10-19 11:36:39 +02:00
Julian Wollersberger
52cedcab92
Remove <CTX: QueryContext> in a bunch of places.
...
It was only needed by `find_cycle_in_stack()` in job.rs, but needed to be forwarded through dozens of types.
2020-10-19 11:11:09 +02:00
Vadim Petrochenkov
cee5521a03
Calculate visibilities once in resolve
...
Then use them through a query based on resolver outputs
2020-10-19 11:57:50 +03:00
Ralf Jung
c1766c6372
fix static_ptr_ty for foreign statics, and more comments in check_unsafety
2020-10-19 09:47:18 +02:00
Ralf Jung
cb33f956c3
remove what seems to be an outdated comment
...
Even in the PR that introduced this comment, it does not seem like these locals are actually ignored -- just their `source_info` is adjusted:
https://github.com/rust-lang/rust/pull/44700/files#diff-ae2f3c7e2f9744f7ef43e96072b10e98d4e3fe74a3a399a3ad8a810fbe56c520R139
2020-10-19 09:46:18 +02:00
pierwill
67dc9b7581
Add missing punctuation
2020-10-18 23:03:16 -07:00
bors
3d3507230c
Auto merge of #6195 - giraffate:sync-from-rust, r=ebroto
...
Rustup
I followed these steps: <https://github.com/rust-lang/rust-clippy/blob/master/CONTRIBUTING.md#fixing-build-failures-caused-by-rust >.
changelog: none
2020-10-19 06:01:21 +00:00
Olivia Crain
8f0bceda13
Refactor liveness-issue-77915 to liveness-asm and improve tests
2020-10-18 23:52:15 -05:00
Olivia Crain
17c6c5932c
Mark InOut operands as used in RWU table with write_place
2020-10-18 23:51:10 -05:00
bors
cb2462c53f
Auto merge of #78087 - camelid:bootstrap-print-units, r=jyn514
...
bootstrap: Print units for "finished in xxx" message
It now says "finished in xxx seconds".
Also slightly improved some wording in the README.
2020-10-19 04:34:34 +00:00
Takayuki Nakata
be136b2712
Merge remote-tracking branch 'upstream/master' into sync-from-rust
2020-10-19 13:05:51 +09:00
Camelid
48060f1a63
rustdoc: Show the correct source filename, without .html
...
Previously the title would be
lib.rs.html -- source
if `lib.rs` was the actual source filename. Now the title is
lib.rs – source
(note the en dash).
2020-10-18 19:38:47 -07:00
bors
78307d8700
Auto merge of #77278 - camelid:use-correct-article, r=estebank
...
Use correct article in help message for conversion or cast
Before it always used `an`; now it uses the correct article for the type.
2020-10-19 02:19:21 +00:00
Camelid
3eab21e22d
Don't ICE if called with a TyKind::Error
...
It felt too harsh to estebank and others to ICE even though it's
technically a mistake to show a `TyKind::Error`.
2020-10-18 17:38:47 -07:00
bors
e42cbe8edc
Auto merge of #77874 - camelid:range-docs-readability, r=scottmcm
...
Improve range docs
* Improve code formatting and legibility
* Various other readability improvements
2020-10-19 00:11:08 +00:00
Camelid
a885c5008c
Improve range docs
...
* Mention that `RangeFull` is a ZST and thus a singleton
* Improve code formatting and legibility
* Various other readability improvements
2020-10-18 16:02:08 -07:00
Ryan Wiedemann
67bc11bd04
Add more infomation about LintStore registration
...
Backstory: I somehow missed the fact that I needed to register a lint pass in order for it to run, and I spent some time confused until I figured it out. So I wanted to make it clear that a missing `register_(early|late)_pass` call is a likely cause of a lint not running.
2020-10-18 17:01:57 -06:00
varkor
c0d29fe7d7
Fix issue with specifying generic arguments for primitive types
2020-10-18 22:40:50 +01:00
bors
b1496c6e60
Auto merge of #78075 - est31:remove_redundant_static, r=jonas-schievink
...
Remove redundant 'static
2020-10-18 21:02:05 +00:00
Camelid
6716c8320f
bootstrap: Print units for "finished in xxx" message
...
It now says "finished in xxx seconds".
Also slightly improved some wording in the README.
2020-10-18 13:55:35 -07:00
Guillaume Gomez
4e2c59a970
Greatly improve display for small mobile devices screens
2020-10-18 21:54:59 +02:00
est31
66c1fc4c87
Move orphan module-name/mod.rs files into module-name.rs files
2020-10-18 20:56:15 +02:00
bors
187b8771dc
Auto merge of #76885 - dylni:move-slice-check-range-to-range-bounds, r=KodrAus
...
Move `slice::check_range` to `RangeBounds`
Since this method doesn't take a slice anymore (#76662 ), it makes more sense to define it on `RangeBounds`.
Questions:
- Should the new method be `assert_len` or `assert_length`?
2020-10-18 18:50:43 +00:00
bors
4d247ad7d3
Auto merge of #77306 - lcnr:inline-ok, r=eddyb
...
normalize substs while inlining
fixes #68347 or more precisely, this fixes the same ICE in rust analyser as veloren is pinned to a specific nightly
and had an error with the current one.
I didn't look into creating an MVCE here as that seems fairly annoying, will spend a few minutes doing so rn. (failed)
r? `@eddyb` cc `@bjorn3`
2020-10-18 16:10:00 +00:00
Nadrieril
c4ae6c2bb9
Add comment
2020-10-18 17:05:19 +01:00
est31
b87e4f36e7
Remove redundant 'static in the compiler
2020-10-18 17:30:15 +02:00
est31
a687420d17
Remove redundant 'static from library crates
2020-10-18 17:25:51 +02:00
bors
834821e3b6
Auto merge of #78066 - bugadani:wat, r=jonas-schievink
...
Clean up small, surprising bits of code
This PR clean up a small number of unrelated, small things I found while browsing the code base.
2020-10-18 13:50:31 +00:00
Nadrieril
da0ba2f645
The only remaining constant patterns are opaque
2020-10-18 14:21:20 +01:00
Nadrieril
d1a784e7b9
Treat string literals separately from other constants
2020-10-18 14:21:20 +01:00
Nadrieril
aa4172076e
Handle ranges of float consistently
...
This deconfuses the comparison of floats, that currently mixed ranges
and non-ranges.
2020-10-18 14:21:20 +01:00
Nadrieril
f504e9a425
Fix comment
2020-10-18 14:21:20 +01:00
Oliver Scherer
3708c86de1
Treat booleans as integers with valid range 0..=1
2020-10-18 14:21:20 +01:00
Nadrieril
99852e0db6
A ConstantValue constructor with a slice pattern is an error
2020-10-18 14:21:20 +01:00
Oliver Scherer
c3d0445021
Destructure byte slices and remove all the workarounds
2020-10-18 14:21:20 +01:00
Oliver Scherer
bb8111069e
Destructure byte array constants to array patterns instead of keeping them opaque
2020-10-18 14:21:20 +01:00
Nadrieril
3b37d941a2
Add some tests
2020-10-18 14:21:19 +01:00
Ralf Jung
762ded17f8
we can test std and core panic macros together
2020-10-18 14:37:03 +02:00
bors
98e16884b1
Auto merge of #78058 - bugadani:arena2, r=lcnr
...
Make sure arenas don't allocate bigger than HUGE_PAGE
Right now, arenas allocate based on the size of the last chunk. It is possible for a `grow` call to allocate a chunk that is not a multiple of `PAGE`, and this size is doubled for each subsequent allocation. This means, instead of `HUGE_PAGE`, the biggest page possible is actually unknown.
This change fixes this, and also removes an unnecessary checked multiplication. It is still possible to allocate bigger than `HUGE_PAGE` pages, but this will only happen as many times as absolutely necessary.
2020-10-18 11:19:14 +00:00