Guillaume Gomez
45b83c9164
Fix Makefile themes check
2019-11-18 18:53:45 +01:00
Guillaume Gomez
a9e8d4c0c5
Remove redundant html check
2019-11-18 16:49:44 +01:00
Nadrieril
1425ae1154
Tweak diagnostics code
2019-11-18 15:49:29 +00:00
Guillaume Gomez
71c7dace89
improve error messages and documentation
2019-11-18 16:43:48 +01:00
Guillaume Gomez
b004a50f73
remove -Z option from rustdoc theme checker tool
2019-11-18 16:43:48 +01:00
Guillaume Gomez
530d866aef
Apply review comments
2019-11-18 16:43:48 +01:00
Guillaume Gomez
8f9014d98f
Rename rustdoc options --themes and --check-themes to --theme and --check-theme
2019-11-18 16:43:48 +01:00
Guillaume Gomez
685b63a163
remove unstable docs
2019-11-18 16:43:48 +01:00
Guillaume Gomez
7cbf31aa04
rename check-theme option into check-themes
2019-11-18 16:43:48 +01:00
Guillaume Gomez
bbfd63c89a
Improve documentation, add checks for themes option arguments, make sure the themes file names are js compatible
2019-11-18 16:43:48 +01:00
Guillaume Gomez
6f2d1f51eb
Fix typos
...
Co-Authored-By: Oliver Middleton <olliemail27@gmail.com>
2019-11-18 16:43:48 +01:00
Guillaume Gomez
8f44c604d2
Rename theme-checker option to check-theme
2019-11-18 16:43:48 +01:00
Guillaume Gomez
82872addf1
Add sentence to tell other options are ignored when running check-theme
2019-11-18 16:43:48 +01:00
Guillaume Gomez
e365120243
Prevent invalid html characters in themes name
2019-11-18 16:43:48 +01:00
QuietMisdreavus
d350008c88
add test for rustdoc's --themes flag
2019-11-18 16:43:47 +01:00
Guillaume Gomez
f3e4279ccc
Apply review comments
2019-11-18 16:43:47 +01:00
Guillaume Gomez
dcccd28e42
Warn instead of failing for themes
2019-11-18 16:43:47 +01:00
Guillaume Gomez
3eba28432f
Add documentation for stabilized flags
2019-11-18 16:43:47 +01:00
Guillaume Gomez
add6204484
Stabilize rustdoc theme options
2019-11-18 16:43:47 +01:00
Nadrieril Feneanar
2079ae3a52
Update src/test/ui/pattern/issue-53820-slice-pattern-large-array.rs
...
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
2019-11-18 15:40:49 +00:00
Simon Sapin
74b571402f
Use drop_in_place
in array::IntoIter::drop
...
This skips the loop when the element type is known not to have drop glue, even in debug mode.
2019-11-18 15:56:26 +01:00
Guillaume Gomez
00ef5c1b98
Fix selected crate search filter
2019-11-18 14:15:00 +01:00
bors
a0d40f8bdf
Auto merge of #66459 - eddyb:update-llvm-wasm-dwarf, r=alexcrichton
...
Update src/llvm-project to include rust-lang/llvm-project#27 .
See https://github.com/rust-lang/llvm-project/pull/27 , which works around https://github.com/rust-lang/llvm-project/pull/20#discussion_r344425408 (where I stumbled over some UB in DWARF emission for WASM, resulting in non-deterministic output).
r? @alexcrichton cc @yurydelendik
2019-11-18 09:14:12 +00:00
Harald Hoyer
de122e673a
std::error::Chain: remove Copy
...
remove Copy from Iterator as per comment
https://github.com/rust-lang/rust/issues/58520#issuecomment-553682166
2019-11-18 09:01:34 +01:00
Camille GILLOT
a65091ffff
Rename generated lifetime.
2019-11-18 08:41:28 +01:00
Camille GILLOT
35cba9eb0b
Retire EnumLiftImpl.
2019-11-18 08:41:28 +01:00
Camille GILLOT
033d1df19b
Retire BraceStructLiftImpl.
2019-11-18 08:41:28 +01:00
Camille GILLOT
2add2075de
Create derive proc-macro for Lift trait.
2019-11-18 08:41:28 +01:00
bors
9966af3897
Auto merge of #66396 - smmalis37:pythontest, r=alexcrichton
...
Make a test compatible across python versions.
Progress on #65063
This PR allows this test to work on both python2 and python3, ~~and it also allows `./x.py test` to fully complete on my system without python2 installed at all.~~
2019-11-18 06:09:04 +00:00
bors
d67ca28354
Auto merge of #66238 - ehuss:stabilize-rustdoc-edition, r=GuillaumeGomez
...
rustdoc: Stabilize `edition` annotation.
The rustdoc `edition` annotation is currently ignored on stable. This means that the tests will be ignored, unless there is a `rust` annotation, then it will use the global edition. I suspect this was just an oversight during the edition stabilization, but I don't know. Example:
```rust
/// ```edition2018
/// // This code block was ignored on stable.
/// ```
/// ```rust,edition2018
/// // This code block would use whatever edition is passed on the command line.
/// ```
```
AFAIK, it is not possible to write a test that verifies stable behavior, as all tests appear to set RUSTC_BOOTSTRAP which forces all tests to run as "nightly", even on a stable release.
Closes #65980
2019-11-18 03:06:42 +00:00
bors
361791bb5f
Auto merge of #65456 - estebank:trait-bound-borrow, r=matthewjasper
...
Suggest borrowing when it would satisfy an unmet trait bound
When there are multiple implementors for the same trait that is present
in an unmet binding, modify the E0277 error to refer to the parent
obligation and verify whether borrowing the argument being passed in
would satisfy the unmet bound. If it would, suggest it.
Fix #56368 .
2019-11-18 00:05:38 +00:00
Esteban Küber
8d1c2612f8
review comments
2019-11-17 14:40:41 -08:00
Esteban Küber
578bc438b0
Do not ICE on trait aliases with missing obligations
2019-11-17 14:40:41 -08:00
Nadrieril
7f5e0441e2
ConstantValue
is the only other ctor allowed when subtracting from slice ctors
2019-11-17 19:58:11 +00:00
Nadrieril
bd0e3ccd0b
Store SliceKinds directly when subtracting
2019-11-17 19:25:03 +00:00
bors
0f0c640e0e
Auto merge of #66385 - ecstatic-morse:check-only-pass2, r=eddyb
...
Make dataflow-based const qualification the canonical one
For over a month, dataflow-based const qualification has been running in parallel with `qualify_consts` to check the bodies of `const` and `static`s. This PR removes the old qualification pass completely in favor of the dataflow-based one.
**edit:**
This PR also stops checking `QUALIF_ERROR_BIT` during promotion. This check appears to no longer serve a purpose now that the CTFE engine is more robust.
As a side-effect, this resolves #66167 .
r? @eddyb
2019-11-17 18:38:15 +00:00
Nadrieril
daa117eab7
Small improvement to exhaustiveness diagnostics
2019-11-17 17:59:37 +00:00
Nadrieril
54e97e889b
Factor out slice constructor struct and simplify
2019-11-17 17:59:37 +00:00
Vadim Petrochenkov
febde53fde
rustc_metadata: Cleanup crate search with exact paths
2019-11-17 20:13:54 +03:00
Vadim Petrochenkov
26f113e5b6
rustc_metadata: Remove CrateMetadata::is_proc_macro_crate
2019-11-17 20:13:53 +03:00
Vadim Petrochenkov
09c1c94df3
rustc_metadata: Stop leaking Lazy
from the rmeta
module
2019-11-17 20:13:53 +03:00
Vadim Petrochenkov
c1570238b8
rustc_metadata: Move CrateMetadata
into decoder.rs
...
It allows to make most of its fields private
2019-11-17 20:13:42 +03:00
Vadim Petrochenkov
41ee980f9f
rustc_metadata: Give a constructor to CratePaths
2019-11-17 20:12:50 +03:00
Vadim Petrochenkov
0aed810abf
rustc_metadata: Minor cleanup
2019-11-17 20:12:50 +03:00
Vadim Petrochenkov
ff3e06fbe6
rustc_metadata: Give a constructor to CrateMetadata
2019-11-17 20:12:50 +03:00
Vadim Petrochenkov
bdce69dd83
rustc_metadata: Give a constructor to CrateLocator
2019-11-17 20:12:50 +03:00
Vadim Petrochenkov
c6bcf6016c
rustc_metadata: locator::Context
-> CrateLocator
2019-11-17 20:12:50 +03:00
Vadim Petrochenkov
68985c7613
rustc_metadata: Move some structs from cstore
to decoder
...
This allows to privatize their fields.
2019-11-17 19:59:34 +03:00
Nadrieril
d0cfef32a8
Unify the various slice constructors
2019-11-17 15:54:44 +00:00
Yuki Okushi
d8ea7866fc
Add JohnTitor to rustc-guide toolstate notification list
...
Also update org names of some books
2019-11-18 00:47:38 +09:00