summary refs log tree commit diff
path: root/src/librustdoc/html
AgeCommit message (Collapse)AuthorLines
2018-07-05Remove unused variableGuillaume Gomez-1/+0
2018-07-05Extend collision prevention to every typeGuillaume Gomez-5/+1
2018-07-05Fix macro missing from doc searchGuillaume Gomez-1/+4
2018-06-15Fix search fn keywordGuillaume Gomez-1/+5
2018-06-13Don't auto-hide inherent impls even if `rustdoc-collapse == true`.kennytm-24/+25
2018-06-04Remove useless function call for keyword generation in rustdocGuillaume Gomez-2/+1
2018-06-04Few improvementsGuillaume Gomez-1/+1
2018-06-04Add doc keyword supportGuillaume Gomez-54/+70
2018-06-03Show which line the link is coming from.kennytm-3/+22
2018-06-03Auto merge of #51319 - Mark-Simulacrum:rollup, r=Mark-Simulacrumbors-3/+6
Rollup of 6 pull requests Successful merges: - #51143 (Specify that packed types must derive, not implement, Copy) - #51226 (Make Layout's align a NonZeroUsize) - #51297 (Fix run button style) - #51306 (impl Default for &mut str) - #51312 (Clarify the difference between get_mut and into_mut for OccupiedEntry) - #51313 (use type name in E0599 enum variant suggestion) Failed merges:
2018-06-02Add attributes for trait and methods as wellGuillaume Gomez-13/+21
2018-06-02Fix run button styleGuillaume Gomez-3/+6
2018-05-30Fixes some style issues in rustdoc "implementations on Foreign types"Guillaume Gomez-8/+33
2018-05-26Add `Ident::as_str` helperVadim Petrochenkov-1/+1
2018-05-23Rollup merge of #50947 - QuietMisdreavus:nice-tabs, r=GuillaumeGomezkennytm-0/+2
rustdoc: set tab width in rust source blocks cc https://github.com/rust-lang/rust/issues/49155 (fixes it?) This sets the tab width ([in supported browsers](https://developer.mozilla.org/en-US/docs/Web/CSS/tab-size)) in Rust source blocks to 4 spaces wide (instead of the default 8), to correspond with the style guidelines.
2018-05-21rustdoc: set tab width in rust source blocksQuietMisdreavus-0/+2
2018-05-20lexer: Fix span override for the first token in a stringVadim Petrochenkov-2/+2
2018-05-16Auto merge of #50473 - petrochenkov:pmapi, r=alexcrichtonbors-1/+1
Review proc macro API 1.2 cc https://github.com/rust-lang/rust/issues/38356 Summary of applied changes: - Documentation for proc macro API 1.2 is expanded. - Renamed APIs: `Term` -> `Ident`, `TokenTree::Term` -> `TokenTree::Ident`, `Op` -> `Punct`, `TokenTree::Op` -> `TokenTree::Punct`, `Op::op` -> `Punct::as_char`. - Removed APIs: `Ident::as_str`, use `Display` impl for `Ident` instead. - New APIs (not stabilized in 1.2): `Ident::new_raw` for creating a raw identifier (I'm not sure `new_x` it's a very idiomatic name though). - Runtime changes: - `Punct::new` now ensures that the input `char` is a valid punctuation character in Rust. - `Ident::new` ensures that the input `str` is a valid identifier in Rust. - Lifetimes in proc macros are now represented as two joint tokens - `Punct('\'', Spacing::Joint)` and `Ident("lifetime_name_without_quote")` similarly to multi-character operators. - Stabilized APIs: None yet. A bit of motivation for renaming (although it was already stated in the review comments): - With my compiler frontend glasses on `Ident` is the single most appropriate name for this thing, *especially* if we are doing input validation on construction. `TokenTree::Ident` effectively wraps `token::Ident` or `ast::Ident + is_raw`, its meaning is "identifier" and it's already named `ident` in declarative macros. - Regarding `Punct`, the motivation is that `Op` is actively misleading. The thing doesn't mean an operator, it's neither a subset of operators (there is non-operator punctuation in the language), nor superset (operators can be multicharacter while this thing is always a single character). So I named it `Punct` (first proposed in [the original RFC](https://github.com/rust-lang/rfcs/pull/1566), then [by @SimonSapin](https://github.com/rust-lang/rust/issues/38356#issuecomment-276676526)) , together with input validation it's now a subset of ASCII punctuation character category (`u8::is_ascii_punctuation`).
2018-05-15Auto merge of #48523 - varkor:generics-ty-generalisations, r=nikomatsakisbors-5/+8
The Great Generics Generalisation: Ty Edition Part of the generic parameter refactoring effort, split off from https://github.com/rust-lang/rust/pull/48149. Contains the `ty`-relative refactoring. r? @eddyb
2018-05-15Represent lifetimes as two joint tokens in proc macrosVadim Petrochenkov-1/+1
2018-05-15Inline get_typevarkor-2/+5
2018-05-15Rename GenericParam to GenericParamDefvarkor-4/+4
2018-05-15Rollup merge of #50691 - ollie27:rustdoc_pub_restricted, r=QuietMisdreavusGuillaume Gomez-2/+13
rustdoc: Add support for pub(restricted) This is useful when using `--document-private-items`. r? @QuietMisdreavus
2018-05-15Rollup merge of #50632 - GuillaumeGomez:minification, r=ollie27Guillaume Gomez-12/+28
Add minification process r? @QuietMisdreavus
2018-05-15Auto merge of #50259 - GuillaumeGomez:improve-results, r=ollie27bors-73/+137
Rustdoc improvements Fixes #50658. (last commit) A lot of small improvements. r? @QuietMisdreavus
2018-05-12Use fullpath instead of recreating itGuillaume Gomez-4/+2
2018-05-12rustdoc: Add support for pub(restricted)Oliver Middleton-2/+13
2018-05-12Fix invalid deduplicationGuillaume Gomez-8/+1
2018-05-12Fix items counts in search resultsGuillaume Gomez-12/+15
2018-05-12Reduce js files sizeGuillaume Gomez-26/+31
2018-05-12Remove extra span tagsGuillaume Gomez-1/+11
2018-05-12Handle blur on theme buttons nicelyGuillaume Gomez-1/+19
2018-05-12Add missing description in alias itemsGuillaume Gomez-3/+3
2018-05-12Improve alias renderingGuillaume Gomez-6/+16
2018-05-12Improve resultsGuillaume Gomez-26/+53
2018-05-12Add minification processGuillaume Gomez-12/+28
2018-05-12Rollup merge of #50550 - llogiq:fmt-result, r=petrochenkovMark Simulacrum-2/+2
use fmt::Result where applicable This is a quite boring PR, but I think the type alias improves readability, so why not use it?
2018-05-09use fmt::Result where applicableAndre Bogus-2/+2
2018-05-05Fix paths searchGuillaume Gomez-1/+1
2018-05-03Auto merge of #50413 - kennytm:rollup, r=kennytmbors-2/+2
Rollup of 12 pull requests Successful merges: - #50302 (Add query search order check) - #50320 (Fix invalid path generation in rustdoc search) - #50349 (Rename "show type declaration" to "show declaration") - #50360 (Clarify wordings of the `unstable_name_collision` lint.) - #50365 (Use two vectors in nearest_common_ancestor.) - #50393 (Allow unaligned reads in constants) - #50401 (Revert "Implement FromStr for PathBuf") - #50406 (Forbid constructing empty identifiers from concat_idents) - #50407 (Always inline simple BytePos and CharPos methods.) - #50416 (check if the token is a lifetime before parsing) - #50417 (Update Cargo) - #50421 (Fix ICE when using a..=b in a closure.) Failed merges:
2018-05-04Rollup merge of #50320 - GuillaumeGomez:fix-search-path-generation, ↵kennytm-1/+1
r=QuietMisdreavus Fix invalid path generation in rustdoc search Fixes #50311.
2018-05-03Fix invalid path generation in rustdoc searchGuillaume Gomez-1/+1
2018-05-02make it compile againflip1995-1/+1
2018-05-02Remove Option from the return type of Attribute::name()Seiichi Uchida-1/+1
2018-04-30Rename "show type declaration" to "show declaration"Guillaume Gomez-1/+1
2018-04-27fix search load page failureGuillaume Gomez-1/+1
2018-04-27Rollup merge of #50229 - GuillaumeGomez:search-one-result, r=QuietMisdreavuskennytm-31/+59
Add setting to go to item if there is only one result Fixes #50216. r? @QuietMisdreavus
2018-04-26Add setting to go to item if there is only one resultGuillaume Gomez-31/+59
2018-04-26rustc_target: move in syntax::abi and flip dependency.Irina Popa-2/+3
2018-04-25Some JS improvementsGuillaume Gomez-32/+24