bors
3478d7c360
Auto merge of #76257 - JulianKnodt:i75777, r=Dylan-DPC
...
Add regression test
This adds a regression test for #75777 , effectively closing it since it is solved on nightly and beta.
Closes #75777
2020-10-31 01:34:49 +00:00
Aaron Hill
ac12e6fd0e
Fix test
2020-10-30 20:02:15 -04:00
Aaron Hill
7b7c223827
Always pass -Z future-incompat-report
to UI tests
2020-10-30 20:02:15 -04:00
Aaron Hill
2f6e59d941
Don't display empty future-compat report
2020-10-30 20:02:15 -04:00
Aaron Hill
4621ce9858
Update into-iter-on-arrays test to check future-incompat-report
2020-10-30 20:02:15 -04:00
Aaron Hill
4b4f84f327
Only error on unfixed diagnostics
2020-10-30 20:02:15 -04:00
Aaron Hill
2d17597f84
Strip out non-diagnostic lines from rustfix input
2020-10-30 20:02:15 -04:00
Aaron Hill
a77a65c029
Print future breakage report
2020-10-30 20:02:14 -04:00
Aaron Hill
6bdb4e3206
Some work
2020-10-30 20:02:14 -04:00
Aaron Hill
23018a55d9
Implement rustc side of report-future-incompat
2020-10-30 20:02:14 -04:00
Vadim Petrochenkov
d0c63bccc5
parser: Cleanup LazyTokenStream
and avoid some clones
...
by using a named struct instead of a closure.
2020-10-31 01:56:34 +03:00
bors
0d033dee3e
Auto merge of #78182 - LeSeulArtichaut:ty-visitor-contolflow, r=lcnr,oli-obk
...
TypeVisitor: use `std::ops::ControlFlow` instead of `bool`
Implements MCP rust-lang/compiler-team#374 .
Blocked on FCP in rust-lang/compiler-team#374 .
r? `@lcnr` cc `@jonas-schievink`
2020-10-30 22:53:55 +00:00
Michael Howell
17b8ca952b
Pull theme picker keyboard code into main.js
...
Most of the code in mod.rs should be code that really needs to have
the list of available themes inlined into it.
2020-10-30 14:31:04 -07:00
Michael Howell
90c7c634e3
Add comment describing the Escape key weirdness
2020-10-30 13:54:36 -07:00
Michael Howell
6918a17aa4
Add aria roles for theme picker menu
2020-10-30 13:35:41 -07:00
Michael Howell
ac3a434ed9
Allow the theme picker to work with arrow keys
...
This is mostly motivated by docs.rs. It's really weird
when arrow keys work in the top dropdown menu, but don't work
in other dropdown menus on the same page.
2020-10-30 13:34:30 -07:00
Federico Poli
97a65b6f81
Add option to customize the nll-facts' folder location
2020-10-30 21:33:08 +01:00
Michael Howell
300362e0e4
Close the theme picker when Escape is pressed
2020-10-30 13:03:01 -07:00
Benoît du Garreau
307cc11beb
Constantify more BTreeMap and BTreeSet functions
...
- BTreeMap::len
- BTreeMap::is_empty
- BTreeSet::len
- BTreeSet::is_empty
2020-10-30 19:24:08 +01:00
bors
ffe52882ed
Auto merge of #78424 - jyn514:THE-PAPERCLIP-COMETH, r=davidtwco
...
Fix some more clippy warnings
Found while working on https://github.com/rust-lang/rust/pull/77351 . It turns out that `x.py clippy --fix` does work on that branch as long as you pass `CARGOFLAGS=--lib`.
2020-10-30 14:24:02 +00:00
Joshua Nelson
5339bd1ebe
Add back missing comments
2020-10-30 10:13:41 -04:00
Joshua Nelson
57c6ed0c07
Fix even more clippy warnings
2020-10-30 10:13:39 -04:00
Joshua Nelson
bfecb18771
Fix some more clippy warnings
2020-10-30 10:12:56 -04:00
LeSeulArtichaut
9433eb83fe
Remove implicit Continue
type
2020-10-30 12:27:47 +01:00
LeSeulArtichaut
24e1a7e656
Use ControlFlow::is{break,continue}
2020-10-30 12:27:46 +01:00
LeSeulArtichaut
8e4cf0b3ed
TypeVisitor: use ControlFlow
in clippy
2020-10-30 12:27:45 +01:00
LeSeulArtichaut
61f8182cec
TypeVisitor: use ControlFlow
in rustc_{mir,privacy,traits,typeck}
2020-10-30 12:27:44 +01:00
LeSeulArtichaut
4fe735b320
TypeVisitor: use ControlFlow
in rustc_{infer,lint,trait_selection}
2020-10-30 12:27:34 +01:00
LeSeulArtichaut
2c85b6fae0
TypeVisitor: use std::ops::ControlFlow
instead of bool
2020-10-30 12:25:24 +01:00
bors
388ef34904
Auto merge of #78562 - JohnTitor:rollup-otg906u, r=JohnTitor
...
Rollup of 8 pull requests
Successful merges:
- #77334 (Reorder benches const variable)
- #77888 (Simplify a nested bool match)
- #77921 (f64: Refactor collapsible_if)
- #78523 (Revert invalid `fn` return type parsing change)
- #78524 (Avoid BorrowMutError with RUSTC_LOG=debug)
- #78545 (Make anonymous binders start at 0)
- #78554 (Improve wording of `core::ptr::drop_in_place` docs)
- #78556 (Link to pass docs from NRVO module docs)
Failed merges:
- #78424 (Fix some more clippy warnings)
r? `@ghost`
2020-10-30 10:01:49 +00:00
Yuki Okushi
2471a7cdaa
Rollup merge of #78556 - camelid:mir-opt-nrvo-docs, r=jyn514
...
Link to pass docs from NRVO module docs
It can be easy to miss that this is documented on the pass's struct if you are
looking at the module docs.
Cc https://rust-lang.zulipchat.com/#narrow/stream/189540-t-compiler.2Fwg-mir-opt/topic/what.20is.20NRVO.3F
2020-10-30 18:00:58 +09:00
Yuki Okushi
73d0340fd5
Rollup merge of #78554 - camelid:improve-drop_in_place-docs-wording, r=jyn514
...
Improve wording of `core::ptr::drop_in_place` docs
And two small intra-doc link conversions in `std::{f32, f64}`.
2020-10-30 18:00:58 +09:00
Yuki Okushi
05f80f03a9
Rollup merge of #78545 - jackh726:anonymous, r=oli-obk
...
Make anonymous binders start at 0
A few changes to some test outputs, but these actually look *more* correct to me.
2020-10-30 18:00:56 +09:00
Yuki Okushi
f8539221d0
Rollup merge of #78524 - tmiasko:source-files-borrow, r=Aaron1011
...
Avoid BorrowMutError with RUSTC_LOG=debug
```console
$ touch empty.rs
$ env RUSTC_LOG=debug rustc +stage1 --crate-type=lib empty.rs
```
Fails with a `BorrowMutError` because source map files are already
borrowed while `features_query` attempts to format a log message
containing a span.
Release the borrow before the query to avoid the issue.
2020-10-30 18:00:54 +09:00
Yuki Okushi
8111706c18
Rollup merge of #78523 - estebank:fix-return-type-parse-regression, r=dtolnay
...
Revert invalid `fn` return type parsing change
Revert one of the changes in #78379 .
Fix #78507 .
2020-10-30 18:00:53 +09:00
Yuki Okushi
02a4b58a3f
Rollup merge of #77921 - wcampbell0x2a:f64-collapsible-if, r=jyn514
...
f64: Refactor collapsible_if
2020-10-30 18:00:49 +09:00
Yuki Okushi
439ea4b621
Rollup merge of #77888 - LingMan:ast_pretty_tt_prepend_space, r=jyn514
...
Simplify a nested bool match
Logically this first eliminates the innermost match by merging the patterns.
Then, in a second step, turns the newly innermost match into a `matches!` call.
2020-10-30 18:00:45 +09:00
Yuki Okushi
0723b274d2
Rollup merge of #77334 - pickfire:patch-4, r=jyn514
...
Reorder benches const variable
Move LEN so it is is read in order.
2020-10-30 18:00:41 +09:00
kadmin
a7e8208074
Add regression test
2020-10-30 07:49:14 +00:00
bors
8df58ae03a
Auto merge of #78393 - SNCPlay42:match-if-guard, r=tmandry
...
Always record reference to binding in match if guards
When encountering a binding from a `match` pattern in its `if` guard when computing a generator's interior types, we must always record the type of a reference to the binding because of how `if` guards are lowered to MIR. This was missed in #75213 because the binding in that test case was autorefed and we recorded that adjusted type anyway.
Fixes #78366
2020-10-30 07:05:57 +00:00
Camelid
f558d96253
Link to pass docs from NRVO module docs
2020-10-29 23:05:45 -07:00
Camelid
fee4f8feb0
Improve wording of core::ptr::drop_in_place
docs
...
And two small intra-doc link conversions in `std::{f32, f64}`.
2020-10-29 20:09:29 -07:00
bors
0d33ab7af4
Auto merge of #78432 - sexxi-goose:fix-77993-take3, r=nikomatsakis
...
Handle type errors in closure/generator upvar_tys
Fixes #77993
2020-10-30 03:00:13 +00:00
Joshua Nelson
8cf7d66d0a
Create config.toml in the current directory, not the top-level directory
...
See https://github.com/rust-lang/rust/issues/78509 for discussion.
2020-10-29 21:23:55 -04:00
bors
c792f03379
Auto merge of #78540 - RalfJung:miri, r=RalfJung
...
update Miri
Cc `@rust-lang/miri` r? `@ghost`
2020-10-30 00:28:32 +00:00
Tomasz Miąsko
affb47fa57
Add a test for compiletest rustc-env & unset-rustc-env directives
2020-10-30 00:00:00 +00:00
Tomasz Miąsko
ad278943ad
Move compiletest meta tests to a separate directory
2020-10-30 15:15:04 +01:00
Tomasz Miąsko
b816e5dfb4
validator: Extend aliasing check to a call terminator
2020-10-30 00:00:00 +00:00
Jack Huey
41ce397990
Make anonymous binders start at 0
2020-10-29 18:50:23 -04:00
bors
a3d7a5e945
Auto merge of #78528 - jonas-schievink:rollup-e70g9zk, r=jonas-schievink
...
Rollup of 11 pull requests
Successful merges:
- #75078 (Improve documentation for slice strip_* functions)
- #76138 (Explain fully qualified syntax for `Rc` and `Arc`)
- #78244 (Dogfood {exclusive,half-open} ranges in compiler (nfc))
- #78422 (Do not ICE on invalid input)
- #78423 (rustc_span: improve bounds checks in byte_pos_to_line_and_col)
- #78431 (Prefer new associated numeric consts in float error messages)
- #78462 (Use unwrapDIPtr because the Scope may be null.)
- #78493 (Update cargo)
- #78499 (Prevent String::retain from creating non-utf8 strings when abusing panic)
- #78505 (Update Clippy - temporary_cstring_as_ptr deprecation)
- #78527 (Fix some more typos)
Failed merges:
r? `@ghost`
2020-10-29 20:56:25 +00:00