Guillaume Gomez
e17518f65e
Show everything when noscript is on
2018-12-06 23:34:36 +01:00
Guillaume Gomez
a68988719c
cleanup
2018-12-06 23:34:36 +01:00
Guillaume Gomez
34e31830c0
Prevent lazy iterations over DOM
2018-12-06 23:34:36 +01:00
Guillaume Gomez
edfe2a893e
Greatly improve rustdoc rendering speed issues
2018-12-06 23:34:35 +01:00
John Kåre Alsaker
a70babed03
Use a function to access the Hir map to be able to turn it into a query later
2018-12-06 17:24:36 +01:00
Pietro Albini
0aa72ad55d
Rollup merge of #56426 - petrochenkov:syntweak, r=nikomatsakis
...
libsyntax_pos: A few tweaks
2018-12-06 07:48:53 +01:00
Pietro Albini
a88feabac4
Rollup merge of #56332 - GuillaumeGomez:specifi-crate-search, r=QuietMisdreavus
...
[rustdoc] Specific crate search
Reopening of #54706 .
Fixes #54616 .
<img width="1440" alt="screenshot 2018-11-29 at 01 29 11" src="https://user-images.githubusercontent.com/3050060/49191372-979adf80-f376-11e8-963e-e4feb927c1da.png ">
r? @QuietMisdreavus
2018-12-06 07:48:50 +01:00
Pietro Albini
3073c7af5f
Rollup merge of #56315 - weiznich:rustdoc_inline_macro_reexport, r=QuietMisdreavus
...
Rustdoc inline macro reexport
Fixes #56173
I assume this needs to have tests? Any pointers where these need to be added?
2018-12-06 07:48:48 +01:00
bors
1839c144bc
Auto merge of #54517 - mcr431:53956-panic-on-include_bytes-of-own-file, r=michaelwoerister
...
53956 panic on include bytes of own file
fix #53956
When using `include_bytes!` on a source file in the project, compiler would panic on subsequent compilations because `expand_include_bytes` would overwrite files in the source_map with no source. This PR changes `expand_include_bytes` to check source_map and use the already existing src, if any.
2018-12-06 01:36:51 +00:00
bors
4988b096e6
Auto merge of #56549 - pietroalbini:rollup, r=pietroalbini
...
Rollup of 15 pull requests
Successful merges:
- #51753 (Document `From` implementations)
- #55563 (Improve no result found sentence in doc search)
- #55987 (Add Weak.ptr_eq)
- #56119 (Utilize `?` instead of `return None`.)
- #56372 (Refer to the second borrow as the "second borrow" in E0501.rs)
- #56388 (More MIR borrow check cleanup)
- #56424 (Mention raw-ident syntax)
- #56452 (Remove redundant clones)
- #56456 (Handle existential types in dead code analysis)
- #56466 (data_structures: remove tuple_slice)
- #56476 (Fix invalid line number match)
- #56497 (cleanup: remove static lifetimes from consts in libstd)
- #56498 (Fix line numbers display)
- #56523 (Added a bare-bones eslint config (removing jslint))
- #56538 (Use inner iterator may_have_side_effect for Cloned)
Failed merges:
r? @ghost
2018-12-05 23:00:36 +00:00
Pietro Albini
0fb90f372e
Rollup merge of #56523 - JohnHeitmann:es6, r=GuillaumeGomez
...
Added a bare-bones eslint config (removing jslint)
This change removes the small bit of jslint config, replacing it
with eslint. I've currently configured eslint to mostly only report
the more serious of lints, although there are still some style nits
turned on.
Eslint better supports modern js, and will be a good pre-TypeScript code
quality aid.
Install eslint with `npm install -g eslint`. Run with `eslint html/static/*.js`,
or let your IDE do it. This requires no build step.
Upcoming changes will start fixing identified bugs and other lints (mostly unused and var redef issues).
2018-12-05 23:54:38 +01:00
Pietro Albini
39d4c0caa4
Rollup merge of #56498 - GuillaumeGomez:line-numbers, r=QuietMisdreavus
...
Fix line numbers display
Thanks to @talchas for finding the bug and suggesting the solution!
r? @QuietMisdreavus
2018-12-05 23:54:37 +01:00
Pietro Albini
d07d299cba
Rollup merge of #56476 - GuillaumeGomez:invalid-line-number-match, r=QuietMisdreavus
...
Fix invalid line number match
If a code line is longer than the width, it then gets to the next line making the line number not matching it anymore.
r? @QuietMisdreavus
2018-12-05 23:54:34 +01:00
Pietro Albini
64371f1cfe
Rollup merge of #56119 - frewsxcv:frewsxcv-option-carrier, r=TimNN
...
Utilize `?` instead of `return None`.
None
2018-12-05 23:54:25 +01:00
Pietro Albini
66ba6b3a66
Rollup merge of #55563 - GuillaumeGomez:doc-search-sentence, r=QuietMisdreavus
...
Improve no result found sentence in doc search
Fixes #55531 .
Look:
<img width="1440" alt="screenshot 2018-11-01 at 02 21 56" src="https://user-images.githubusercontent.com/3050060/47827257-f6236c80-dd7c-11e8-9ea9-99c8cb4b2de5.png ">
r? @QuietMisdreavus
2018-12-05 23:54:22 +01:00
bors
14997d56a5
Auto merge of #55933 - euclio:doc-panic, r=QuietMisdreavus
...
emit error when doc generation fails
Fixes #41813 .
The diagnostic looks something like this:
```
error: couldn't generate documentation: No space left on device (os error 28)
|
= note: failed to create or modify "/path/to/crate/target/doc/src/lazycell"
```
2018-12-05 20:27:17 +00:00
Andy Russell
c359f98c7a
emit error when doc generation fails
...
Fixes #41813 .
2018-12-05 10:10:31 -05:00
Matthew Russo
f0f8aa9e05
adds DocTest filename variant, refactors doctest_offset out of source_map, fixes remaining test failures
2018-12-04 19:52:42 -05:00
John Heitmann
5d7cf59e94
Added trailing newline
2018-12-04 16:13:04 -08:00
John Heitmann
56ace3e870
Added a bare-bones eslint config (removing jslint)
...
This change removes the small bit of jslint config, replacing it
with eslint. I've currently configured eslint to mostly only report
the more serious of lints, although there are still some style nits
turned on.
Upcoming changes will start fixing lints.
2018-12-04 15:46:15 -08:00
Matthew Russo
88130f1796
updates all Filename variants to take a fingerprint
2018-12-04 17:24:12 -05:00
Corey Farwell
c025d61409
Replace usages of ..i + 1 ranges with ..=i.
2018-12-04 12:05:19 -08:00
Corey Farwell
9012af6f19
Utilize ? instead of return None.
2018-12-04 08:57:34 -08:00
Guillaume Gomez
e41e85cb5c
Fix line numbers display
2018-12-04 11:33:57 +01:00
Georg Semmler
9d4e17ae1a
Remove support for proc macro doc inlining
2018-12-04 10:23:30 +01:00
Georg Semmler
11fb023d4f
Allow renaming macro
2018-12-04 10:23:13 +01:00
bors
596e10fd32
Auto merge of #55707 - GuillaumeGomez:file-sidebar, r=QuietMisdreavus
...
Add source file sidebar
This is just a start currently but that gives a good overview of what it'll look like:
<img width="1440" alt="screenshot 2018-11-06 at 01 39 15" src="https://user-images.githubusercontent.com/3050060/48035592-05336180-e165-11e8-82e1-5ead0c345eb9.png ">
r? @QuietMisdreavus
2018-12-04 07:00:19 +00:00
bors
91d5d56c00
Auto merge of #55682 - GuillaumeGomez:primitive-sidebar-link-gen, r=QuietMisdreavus
...
Fixes primitive sidebar link generation
Fixes #50746 .
Fixes #55656 .
r? @QuietMisdreavus
2018-12-04 03:34:32 +00:00
Guillaume Gomez
82a7b6fde8
Don't generate suffix for source-file.js
2018-12-03 22:37:34 +01:00
Vadim Petrochenkov
08f8faedd0
syntax: Rename some keywords
...
`CrateRoot` -> `PathRoot`, `::` doesn't necessarily mean crate root now
`SelfValue` -> `SelfLower`, `SelfType` -> `SelfUpper`, both `self` and `Self` can be used in type and value namespaces now
2018-12-04 00:30:27 +03:00
kennytm
ac363d8793
Rollup merge of #56438 - yui-knk:remove_not_used_DotEq_token, r=petrochenkov
...
Remove not used `DotEq` token
Currently libproc_macro does not use `DotEq` token.
https://github.com/rust-lang/rust/pull/49545 changed libproc_macro
to not generate `DotEq` token.
2018-12-03 18:07:20 +08:00
kennytm
17f6fc78c5
Rollup merge of #56416 - GuillaumeGomez:css-body, r=QuietMisdreavus
...
Remove unneeded body class selector
r? @QuietMisdreavus
2018-12-03 18:07:13 +08:00
Guillaume Gomez
23abd182d8
Fix invalid line number match
2018-12-02 19:12:37 +01:00
yui-knk
96bf06baf3
Remove not used DotEq token
...
Currently libproc_macro does not use `DotEq` token.
https://github.com/rust-lang/rust/pull/49545 changed libproc_macro
to not generate `DotEq` token.
2018-12-02 23:11:08 +09:00
Guillaume Gomez
08a6cf30f0
Remove unneeded body class selector
2018-12-01 18:20:43 +01:00
Guillaume Gomez
f20a1d7b5d
Rollup merge of #56321 - jnqnfe:css_nested_list_margin, r=GuillaumeGomez
...
rustdoc: add bottom margin spacing to nested lists
the current CSS for nested lists sets margin-bottom to zero, which means that a nested list is squished up against subsequent list items/paragraphs
this changes the bottom margin to .6em, same as for paragraphs
before:

after:

2018-11-29 13:10:52 +01:00
Guillaume Gomez
afe41078ad
Add arrow to the crate select box
2018-11-29 01:29:49 +01:00
Guillaume Gomez
dd717deccb
Add crate filtering
2018-11-28 19:33:33 +01:00
Georg Semmler
230f5d5676
rustdoc: Fix inlining reexporting bang-macros
2018-11-28 17:11:06 +01:00
Georg Semmler
50b4eefcf5
rustdoc: Fix inlining reexported custom derives
2018-11-28 17:10:21 +01:00
Lyndon Brown
c013de4f9b
rustdoc: add margin-bottom spacing to nested lists
...
set to zero meant that the nested list was squished up against
subsequent list items/paragraphs
this changes the bottom margin to .6em, same as for paragraphs
an example demonstrating the difference with screenshots is given in the
pull request
2018-11-28 16:05:43 +00:00
Mark Mansi
6494f1e60e
rustc-guide has moved
2018-11-26 15:03:13 -06:00
Guillaume Gomez
8d67de4e91
Don't show file sidebar by default
2018-11-24 11:43:52 +01:00
Guillaume Gomez
e87f8cc49b
Source sidebar improvements
2018-11-24 09:49:57 +01:00
Guillaume Gomez
93520d2ad1
Add source file sidebar
2018-11-24 09:49:57 +01:00
scalexm
05995a8522
Introduce TyKind::Placeholder variant
2018-11-24 01:24:40 +01:00
Guillaume Gomez
9aedfd5a3b
Rollup merge of #55367 - GuillaumeGomez:private-item-doc-test-lint, r=QuietMisdreavus
...
lint if a private item has doctests
Fixes #55333 .
r? @QuietMisdreavus
2018-11-22 10:37:43 +01:00
Guillaume Gomez
5af8f1d8d7
Fixes primitive sidebar link generation
2018-11-21 19:46:11 +01:00
Guillaume Gomez
c209ed8435
Improve no result found sentence in doc search
2018-11-21 19:45:04 +01:00
Eduard-Mihai Burtescu
da622a3796
rustc: remove {FxHash,Node,DefId,HirId,ItemLocal}{Map,Set} "constructor" fns.
2018-11-21 07:27:02 +02:00