about summary refs log tree commit diff
path: root/src/librustdoc
AgeCommit message (Collapse)AuthorLines
2019-02-24hir: remove NodeId from GenericParamljedrz-5/+7
2019-02-24hir: remove NodeId from Lifetime and Tyljedrz-11/+8
2019-02-24Auto merge of #58232 - ljedrz:HirIdification_continued, r=Zoxcbors-7/+7
HirId-ify intravisit A big step towards https://github.com/rust-lang/rust/pull/57578. This affects mostly `hir::{collector, intravisit}` and `rustc::lint`.
2019-02-23Auto merge of #57051 - Eijebong:parking_lot, r=nikomatsakisbors-1/+1
Update parking_lot to 0.7 Unfortunately this'll dupe parking_lot until the data_structures crate is published and be updated in rls in conjunction with crossbeam-channel
2019-02-23Rollup merge of #58643 - GuillaumeGomez:extra-variables, r=ManishearthMazdak Farrokhzad-1/+5
Don't generate minification variables if minification disabled If the minification is disabled, there is no sense having those variables. r? @QuietMisdreavus
2019-02-23Fix tidy check errorsHirokazu Hata-10/+45
2019-02-23Transition librustdoc to 2018 editionHirokazu Hata-423/+419
2019-02-22Rollup merge of #58591 - dwijnand:dedup-a-rustdoc-diag-construction, ↵Mazdak Farrokhzad-22/+8
r=GuillaumeGomez Dedup a rustdoc diagnostic construction None
2019-02-22Don't generate minification variable if minification disabledGuillaume Gomez-1/+5
2019-02-22Update parking_lot to 0.7Bastien Orivel-1/+1
Unfortunately this'll dupe parking_lot until the data_structures crate is published and be updated in rls in conjunction with crossbeam-channel
2019-02-20Dedup a rustdoc diagnostic constructionDale Wijnand-22/+8
2019-02-20HirIdification: change some NodeId to HirId callsljedrz-6/+6
2019-02-20hir: HirId-ify intravisitljedrz-1/+1
2019-02-20Rollup merge of #58409 - euclio:impl-trait-wrapping, r=QuietMisdreavuskennytm-30/+38
rustdoc: respect alternate flag when formatting impl trait Fixes #58226. Before: <img width="963" alt="screen shot 2019-02-12 at 3 23 30 pm" src="https://user-images.githubusercontent.com/1372438/52665732-4496ea00-2eda-11e9-9e29-efffe43b2abf.png"> After: <img width="964" alt="screen shot 2019-02-12 at 3 23 51 pm" src="https://user-images.githubusercontent.com/1372438/52665733-452f8080-2eda-11e9-999a-dd1fb28dee16.png">
2019-02-20Rollup merge of #58384 - GuillaumeGomez:fix-table-display, r=QuietMisdreavuskennytm-25/+6
Fix tables display Fixes #58134. cc @lzutao r? @QuietMisdreavus
2019-02-20Rollup merge of #58336 - GuillaumeGomez:fix-search-results-interactions, ↵kennytm-2/+2
r=oli-obk Fix search results interactions The bug is visible when you search for "none": the second tab is empty and therefore it messes with the classes. Then when you try to use arrows on the third tab, it just crashes (because only 2 "search-results" are present and you're on tab 3). r? @QuietMisdreavus
2019-02-20Rollup merge of #58303 - GuillaumeGomez:stability-tags-display, ↵kennytm-11/+10
r=QuietMisdreavus Improve stability tags display The issue was the font color on dark theme. Fixed now: <img width="352" alt="screenshot 2019-02-08 at 14 15 24" src="https://user-images.githubusercontent.com/3050060/52483276-bd810380-2bb3-11e9-8d46-95368569ac85.png"> r? @QuietMisdreavus
2019-02-20Rollup merge of #56470 - llogiq:process-termination-doctest, r=GuillaumeGomezkennytm-4/+10
Modify doctest's auto-`fn main()` to allow `Result`s This lets the default `fn main()` ~~return `impl Termination`~~ unwrap Results, which allows the use of `?` in most tests without adding it manually. This fixes #56260 ~~Blocked on `std::process::Termination` stabilization.~~ Using `Termination` would have been cleaner, but this should work OK.
2019-02-19Fix tables displayGuillaume Gomez-25/+6
2019-02-19Auto merge of #56514 - ollie27:rustdoc_test_libdir, r=QuietMisdreavusbors-20/+3
rustdoc: Don't modify library path for doctests It shouldn't be needed anymore because doctests are no longer compiled with `prefer-dynamic` (since #54939). r? @QuietMisdreavus
2019-02-19Auto merge of #58503 - varkor:const-generics-hir, r=petrochenkovbors-10/+79
Add const generics to the HIR Split out from https://github.com/rust-lang/rust/pull/53645. cc @yodaldevoid r? @eddyb
2019-02-17Modify doctest's auto-`fn main()` to allow `Result`sAndre Bogus-4/+10
This lets the default `fn main()` unwrap any `Result`s, which allows the use of `?` in most tests without adding it manually.
2019-02-17Rollup merge of #57929 - GuillaumeGomez:rustodc-remove-old-style-files, ↵kennytm-10/+24
r=ollie27 Rustdoc remove old style files Reopening of #56577 (which I can't seem to reopen...). I made the flag unstable so with this change, what was blocking the PR is now gone I assume.
2019-02-16Rollup merge of #58448 - euclio:missing-summaries, r=QuietMisdreavuskennytm-1/+6
rustdoc: mask `compiler_builtins` docs Fixes #46783. I wasn't able to fully confirm the underlying cause, but my theory is that functions in `compiler_builtins` were overwriting functions with the same names in libcore in the search index. Since the functions in `compiler_builtins` didn't have docs, that's why they weren't appearing in the results. Masking the `compiler_builtins` crate fixes the search results. It appears that this crate was accidentally unmasked in #49503.
2019-02-16Rollup merge of #58306 - GuillaumeGomez:crate-browser-history, r=QuietMisdreavuskennytm-1/+1
Don't default on std crate when manipulating browser history Fixes #58263. r? @QuietMisdreavus
2019-02-16Rollup merge of #58074 - scottmcm:stabilize-sort_by_cached_key, r=SimonSapinkennytm-1/+0
Stabilize slice_sort_by_cached_key I was going to ask on the tracking issue (https://github.com/rust-lang/rust/issues/34447), but decided to just send this and hope for an FCP here. The method was added last March by https://github.com/rust-lang/rust/pull/48639. Signature: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_by_cached_key ```rust impl [T] { pub fn sort_by_cached_key<K, F>(&mut self, f: F) where F: FnMut(&T) -> K, K: Ord; } ``` That's an identical signature to the existing `sort_by_key`, so I think the questions are just naming, implementation, and the usual "do we want this?". The implementation seems to have proven its use in rustc at least, which many uses: https://github.com/rust-lang/rust/search?l=Rust&q=sort_by_cached_key (I'm asking because it's exactly what I just needed the other day: ```rust all_positions.sort_by_cached_key(|&n| data::CITIES.iter() .map(|x| *metric_closure.get_edge(n, x.pos).unwrap()) .sum::<usize>() ); ``` since caching that key is a pretty obviously good idea.) Closes #34447
2019-02-15Drive-by cleanupvarkor-4/+4
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-15Add Const kind to rustdocvarkor-6/+75
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-13mask `compiler_builtins` docsAndy Russell-1/+6
Since `compiler_builtins` is being injected automatically, its docs aren't masked. This commit masks the crate's docs if it's brought in as an extern crate.
2019-02-13Rollup merge of #58202 - varkor:deprecated-future-external, r=GuillaumeGomezMazdak Farrokhzad-7/+24
Ignore future deprecations in #[deprecated] The future deprecation warnings should only apply to `#[rustc_deprecated]` as they take into account rustc's version. Fixes #57952. I've also slightly modified rustdoc's display of future deprecation notices to make it more consistent, so I'm assigning a rustdoc team member for review to make sure this is okay. r? @GuillaumeGomez
2019-02-13Rollup merge of #58167 - ljedrz:HirIdify_body_id, r=ZoxcMazdak Farrokhzad-1/+1
HirId-ify hir::BodyId Another step towards https://github.com/rust-lang/rust/pull/57578.
2019-02-13libpanic_unwind => 2018: fix ICEs.Mazdak Farrokhzad-3/+5
2019-02-13HirId-ify hir::BodyIdljedrz-1/+1
2019-02-12Stabilize slice_sort_by_cached_keyScott McMurray-1/+0
2019-02-12Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnikbors-43/+43
Cosmetic improvements to doc comments This has been factored out from https://github.com/rust-lang/rust/pull/58036 to only include changes to documentation comments (throughout the rustc codebase). r? @steveklabnik Once you're happy with this, maybe we could get it through with r=1, so it doesn't constantly get invalidated? (I'm not sure this will be an issue, but just in case...) Anyway, thanks for your advice so far!
2019-02-12respect alternate flag when formatting impl traitAndy Russell-30/+38
2019-02-11Update existing rustdoc testvarkor-5/+7
2019-02-11Display "Deprecation planned" in rustdoc for future rustc deprecationsvarkor-9/+22
2019-02-11Don't display "Deprecated since" for non-rustc deprecated itemsvarkor-2/+4
2019-02-10rustc: doc commentsAlexander Regueiro-43/+43
2019-02-10Rollup merge of #58297 - GuillaumeGomez:cleanup-js, r=QuietMisdreavusGuillaume Gomez-8/+6
Cleanup JS a bit r? @QuietMisdreavus
2019-02-10Rollup merge of #58243 - GuillaumeGomez:trait-alias-docs, r=ManishearthGuillaume Gomez-47/+132
Add trait alias support in rustdoc Fixes #57595. r? @QuietMisdreavus
2019-02-10Rollup merge of #58203 - euclio:rustdoc-async, r=GuillaumeGomezGuillaume Gomez-10/+60
rustdoc: display sugared return types for async functions Fixes #58027.
2019-02-10Remove spotlight for trait aliases and fix nitsGuillaume Gomez-5/+2
2019-02-10Add trait aliases to js typesGuillaume Gomez-1/+3
2019-02-10Add style for trait aliasesGuillaume Gomez-0/+4
2019-02-10Add trait alias support in rustdocGuillaume Gomez-46/+128
2019-02-10Fix search results interactionsGuillaume Gomez-2/+2
2019-02-09put back macro redirectGuillaume Gomez-0/+9
2019-02-08Don't default on std crate when manipulating browser historyGuillaume Gomez-1/+1