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
Camille GILLOT
44a595f52c
Simplify impl for SymbolStr.
2019-11-17 22:37:16 +01:00
Camille GILLOT
3d97a91e7f
Remove extern crate.
2019-11-17 22:37:16 +01:00
Camille GILLOT
5b4dad7ad2
Derive HashStable_Generic for ABI types.
2019-11-17 22:37:16 +01:00
Camille GILLOT
e8e7ad6fb8
Implement HashStable for RangeInclusive.
2019-11-17 22:37:15 +01:00
Camille GILLOT
79bde05b45
Derive HashStable for PanicStrategy.
2019-11-17 22:37:15 +01:00
Camille GILLOT
375a761303
HashStable in libsyntax.
2019-11-17 22:37:15 +01:00
Camille GILLOT
333c11433b
Derive HashStable in librustc_target.
2019-11-17 22:37:15 +01:00
Camille GILLOT
2ba84c6bea
HashStable_Generic for librustc_target.
2019-11-17 22:37:14 +01:00
Camille GILLOT
a265bc22f1
HashStable_Generic for libsyntax_pos.
2019-11-17 22:37:13 +01:00
Camille GILLOT
2a67986eb6
HashStable literals in libsyntax.
2019-11-17 22:37:10 +01:00
Camille GILLOT
efcb695f4c
Further HashStable_Generic derives.
2019-11-17 22:37:10 +01:00
Camille GILLOT
1dd5133dce
Move impl HashStable for Symbol in libsyntax_pos.
2019-11-17 22:37:09 +01:00
Camille GILLOT
05f5f76b3b
Move impl HashStable for SymbolStr in libsyntax_pos.
2019-11-17 22:37:09 +01:00
Camille GILLOT
c2e1658c67
Use proc_macro for HashStable derive in libsyntax.
2019-11-17 22:37:08 +01:00
Camille GILLOT
5b0e702f6c
Create a generic HashStable derive.
2019-11-17 22:37:01 +01: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