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
Stein Somers
003516f91a
BTreeMap: split off most code of remove and split_off
2020-10-18 13:13:23 +02:00
bors
ad268bd638
Auto merge of #78035 - camelid:basic-block-pointer-note, r=RalfJung
...
Note that `BasicBlock` is just an index
r? `@RalfJung`
2020-10-18 09:08:00 +00:00
Dániel Buga
2e99439900
Replace unnecessary map_or_else with map_or
2020-10-18 11:01:09 +02:00
Dániel Buga
f3a0f68453
Zip -> Enumerate
2020-10-18 11:01:08 +02:00
Dániel Buga
d708d7fb79
No need to map the max_distance
2020-10-18 11:01:08 +02:00
Dániel Buga
ed7c6819e4
Early return to decrease indentation
2020-10-18 11:01:08 +02:00
chansuke
d3467fe520
#[deny(unsafe_op_in_unsafe_fn)]
in sys/cloudabi
2020-10-18 17:59:54 +09:00
Dániel Buga
8e548bf8d6
Remove weird slice conversion
2020-10-18 10:31:58 +02:00
Dániel Buga
6f43af26e9
Clean up surprising borrow
2020-10-18 10:31:57 +02:00
bors
94332bbe10
Auto merge of #78047 - khyperia:set_span_mut, r=bjorn3
...
Make set_span take mut self
This was a mistake in https://github.com/rust-lang/rust/pull/77614
It's not a _huge_ deal, because backends can always implement this with interior mutability, but it's nice to avoid interior mutability when possible. For context, the `set_source_location` method, called alongside `set_span`, also takes `&mut self`.
r? `@eddyb`
2020-10-18 05:36:23 +00:00