Mazdak Farrokhzad
e233331a51
syntax::print -> new crate rustc_ast_pretty
2020-02-01 18:59:49 +01:00
bors
d1e594f402
Auto merge of #68192 - GuillaumeGomez:remove-inlined-types, r=kinnison
...
Remove usage of global variable "inlined_types"
r? @pietroalbini
2020-01-22 18:04:56 +00:00
Oliver Middleton
3e0bfe1238
rustdoc: Correct order of `async` and `unsafe` in `async unsafe fn`s
2020-01-20 18:14:51 +00:00
Guillaume Gomez
12882a8392
Remove usage of global variable "inlined_types"
2020-01-20 13:34:44 +01:00
Guillaume Gomez
8a9b951f57
Fix rendering on sidebar and update tests
2020-01-15 21:34:15 +01:00
Guillaume Gomez
d755238172
Simplify deref impls for type aliases
2020-01-15 21:21:30 +01:00
Guillaume Gomez
e6ad49aa67
Include type alias implementations
2020-01-15 18:14:11 +01:00
Guillaume Gomez
81a5b94ac6
formatting
2020-01-15 13:43:09 +01:00
Guillaume Gomez
12f029b7ee
Fix deref impl on type alias
2020-01-15 13:43:09 +01:00
Mazdak Farrokhzad
8bd3d240e3
nix syntax::errors & prefer rustc_errors over errors
2020-01-10 07:41:30 +01:00
Yuki Okushi
c07204b1d1
Rollup merge of #67908 - ollie27:rustdoc_const_html_escape, r=GuillaumeGomez
...
rustdoc: HTML escape const values
r? @GuillaumeGomez
2020-01-07 13:46:07 +09:00
bors
ebbb2bf37a
Auto merge of #67886 - Centril:rustc_hir_canon_imports, r=nagisa
...
Nix `rustc_hir` reexports in rustc::hir
r? @Zoxc cc @Mark-Simulacrum
2020-01-06 12:55:40 +00:00
Oliver Middleton
e2305d0055
rustdoc: HTML escape const values
2020-01-05 23:19:42 +00:00
Ivan Tham
3d857efb46
Use `as_deref()` to replace `as_ref().map(...)`
...
Suggested by @lzutao
2020-01-05 23:10:30 +08:00
Mazdak Farrokhzad
ebfd8673a7
Remove rustc_hir reexports in rustc::hir.
2020-01-05 12:49:22 +01:00
Mazdak Farrokhzad
7901c7f707
canonicalize FxHash{Map,Set} imports
2020-01-04 18:57:22 +01:00
Mazdak Farrokhzad
b1aad76586
Normalize `syntax::edition` imports.
2020-01-02 19:31:38 +01:00
Mazdak Farrokhzad
4ff12ce4c1
Normalize `syntax::symbol` imports.
2020-01-02 13:57:04 +01:00
Mazdak Farrokhzad
75e4783f63
Normalize `syntax::source_map` imports.
2020-01-02 13:57:04 +01:00
Vadim Petrochenkov
70f1d57048
Rename `syntax_pos` to `rustc_span` in source code
2020-01-01 09:15:18 +03:00
David Tolnay
4646a88b7a
Deprecate Error::description for real
...
`description` has been documented as soft-deprecated since 1.27.0 (17
months ago). There is no longer any reason to call it or implement it.
This commit:
- adds #[rustc_deprecated(since = "1.41.0")] to Error::description;
- moves description (and cause, which is also deprecated) below the
source and backtrace methods in the Error trait;
- reduces documentation of description and cause to take up much less
vertical real estate in rustdocs, while preserving the example that
shows how to render errors without needing to call description;
- removes the description function of all *currently unstable* Error
impls in the standard library;
- marks #[allow(deprecated)] the description function of all *stable*
Error impls in the standard library;
- replaces miscellaneous uses of description in example code and the
compiler.
2019-12-24 22:39:49 -08:00
Ohad Ravid
811bdeee00
Show value for consts in the documentation
2019-12-24 10:10:36 +01:00
Mark Rousskov
a06baa56b9
Format the world
2019-12-22 17:42:47 -05:00
Guillaume Gomez
0d7a49d356
Implement PrintWithSpace trait on hir::Mutability
2019-12-22 13:31:47 +01:00
Guillaume Gomez
5a0d747eef
Remove clean::Mutability enum
2019-12-21 21:19:03 +01:00
Andy Russell
94630d4c8b
replace serialize with serde in rustdoc
2019-12-12 16:33:25 -05:00
Guillaume Gomez
9e3e421ab3
Sort auto trait and blanket implementations display
2019-12-08 14:24:06 +01:00
bors
710a362dc7
Auto merge of #66828 - GuillaumeGomez:less-minification, r=kinnison
...
Less minification
The goal of this PR is to remove the minification process on the `search-index.js` file. It provides great result in term of space reduction but the computation time is far too long. I'll work on this issue and will put it back once it's fast enough.
cc @nox @lqd
r? @kinnison
2019-12-05 17:45:31 +00:00
Guillaume Gomez
2d0f0ca25b
Add missing backline
2019-12-02 11:25:27 +01:00
Guillaume Gomez
852079fbf2
minify theme.js as well
2019-12-02 10:25:36 +01:00
Guillaume Gomez
35ba58f5a9
Remove minification on search-index.js file
2019-12-02 10:25:36 +01:00
Mazdak Farrokhzad
b45f21d38e
move UnstableFeatures -> rustc_feature
2019-11-30 02:50:47 +01:00
Mazdak Farrokhzad
0bb06cbea9
Rollup merge of #66657 - ollie27:rustdoc_flock_panic, r=GuillaumeGomez
...
rustdoc: Don't panic when failing to write .lock file
It can be treated like any other unexpected IO error.
I couldn't think of a good way to add a test for this unfortunately.
r? @GuillaumeGomez
2019-11-23 23:22:38 +01:00
Oliver Middleton
05ef20f922
rustdoc: Don't panic when failing to write .lock file
...
It can be treated like any other unexpected IO error.
2019-11-23 02:08:10 +00:00
Guillaume Gomez
d0b67ddc0f
Revert "Update Source Code Pro and include italics"
...
This reverts commit ea9519bf16
.
2019-11-21 11:18:23 +01:00
Mazdak Farrokhzad
4bd9168d7f
Rollup merge of #66514 - GuillaumeGomez:fix-search-filter-save, r=kinnison
...
Fix selected crate search filter
Fixes #62929 .
r? @kinnison
2019-11-20 18:32:10 +01:00
Mazdak Farrokhzad
423137b779
Rollup merge of #65665 - tspiteri:italic-and-update-SourceCodePro, r=GuillaumeGomez
...
Update Source Code Pro and include italics
Fixes #65502 .
A few notes:
* As stated in #65502 , this does increase the download size.
* Since this PR changes the font set, I think docs.rs would have to be updated if this PR is merged.
* The fonts have a double extension (.ttf.woff); this is to keep the names consistent with the upstream font release which does that to distinguish these from the .otf.woff files ([Source Code Pro otf renders poorly on older Windows system apps](https://github.com/adobe-fonts/source-code-pro/issues/25#issuecomment-9019600 )).
2019-11-20 12:58:26 +01:00
Guillaume Gomez
530d866aef
Apply review comments
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
e365120243
Prevent invalid html characters in themes name
2019-11-18 16:43:48 +01:00
Guillaume Gomez
00ef5c1b98
Fix selected crate search filter
2019-11-18 14:15:00 +01:00
Mazdak Farrokhzad
59e79ff137
Rollup merge of #64696 - GuillaumeGomez:rustdoc-sub-settings, r=kinnison
...
[rustdoc] add sub settings
This PR is to give a finer control over what types are automatically expanded or not as well as the possibility to add sub-settings in the settings page.
![Screenshot from 2019-09-23 00-46-14](https://user-images.githubusercontent.com/3050060/65395521-15aff300-dd9c-11e9-9437-429ca347d455.png )
r? @Mark-Simulacrum
2019-11-07 14:27:21 +01:00
Guillaume Gomez
8784b074e7
Change sub-setting CSS class to sub-settings
2019-11-04 11:39:00 +01:00
Nicholas Nethercote
b9cef6984b
Simplify various `Symbol` use points.
...
Including removing a bunch of unnecessary `.as_str()` calls, and a bunch
of unnecessary sigils.
2019-11-02 09:01:02 +11:00
Guillaume Gomez
79956b96e8
add sub settings in rustdoc
2019-10-29 13:54:11 +01:00
Mazdak Farrokhzad
fb12c70852
rustc, rustc_passes: don't depend on syntax_expand.
...
This is done by moving some data definitions to syntax::expand.
2019-10-27 17:05:57 +01:00
Trevor Spiteri
ea9519bf16
Update Source Code Pro and include italics
2019-10-21 16:25:03 +02:00
Guillaume Gomez
87744841c8
Add option to disable keyboard shortcuts in docs
2019-10-21 11:36:52 +02:00
Mazdak Farrokhzad
d420d719c4
move syntax::ext to new crate syntax_expand
2019-10-16 10:59:53 +02:00