summary refs log tree commit diff
path: root/src/librustdoc/clean
AgeCommit message (Collapse)AuthorLines
2019-03-17Do not accidentally treat multi-segment meta-items as single-segmentVadim Petrochenkov-4/+10
2019-02-25Rollup merge of #58697 - taiki-e:question-in-macros, r=CentrilMazdak Farrokhzad-2/+2
Use ? in some macros
2019-02-24Use ? in some macrosTaiki Endo-2/+2
2019-02-24Rollup merge of #58642 - tspiteri:intra-rustdoc-prim-method, r=GuillaumeGomezMazdak Farrokhzad-2/+4
rustdoc: support methods on primitives in intra-doc links Fixes #58598.
2019-02-24Auto merge of #58232 - ljedrz:HirIdification_continued, r=Zoxcbors-6/+6
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-23rustdoc: support methods on primitives in intra-doc linksTrevor Spiteri-2/+4
2019-02-23Fix tidy check errorsHirokazu Hata-8/+38
2019-02-23Transition librustdoc to 2018 editionHirokazu Hata-159/+161
2019-02-20HirIdification: change some NodeId to HirId callsljedrz-6/+6
2019-02-19Auto merge of #58503 - varkor:const-generics-hir, r=petrochenkovbors-5/+56
Add const generics to the HIR Split out from https://github.com/rust-lang/rust/pull/53645. cc @yodaldevoid r? @eddyb
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-15Drive-by cleanupvarkor-3/+3
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-15Add Const kind to rustdocvarkor-2/+53
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-13HirId-ify hir::BodyIdljedrz-1/+1
2019-02-12Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnikbors-10/+10
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-10rustc: doc commentsAlexander Regueiro-10/+10
2019-02-10Rollup merge of #58243 - GuillaumeGomez:trait-alias-docs, r=ManishearthGuillaume Gomez-4/+32
Add trait alias support in rustdoc Fixes #57595. r? @QuietMisdreavus
2019-02-10Rollup merge of #58203 - euclio:rustdoc-async, r=GuillaumeGomezGuillaume Gomez-0/+39
rustdoc: display sugared return types for async functions Fixes #58027.
2019-02-10Remove spotlight for trait aliases and fix nitsGuillaume Gomez-3/+0
2019-02-10Add trait alias support in rustdocGuillaume Gomez-4/+35
2019-02-06display sugared return types for async functionsAndy Russell-0/+39
2019-02-06Auto merge of #58058 - QuietMisdreavus:use-attr, r=GuillaumeGomezbors-3/+6
rustdoc: don't try to get a DefId for a Def that doesn't have one Fixes https://github.com/rust-lang/rust/issues/58054 The compiler allows you to write a `use` statement for a built-in non-macro attribute, since `use proc_macro` can apply to both the `proc_macro` crate and the `#[proc_macro]` attribute. However, if you write a use statement for something that *doesn't* have this crossover, rustdoc will try to use it the same way as anything else... which resulted in an ICE because it tried to pull a DefId for something that didn't have one. This PR makes rustdoc skip those lookups when it encounters them, allowing it to properly process and render these imports.
2019-02-05Auto merge of #57851 - Aaron1011:fix/clean-lifetime, r=GuillaumeGomezbors-15/+37
Don't try to clean predicates involving ReErased There's nothing to render when we have a bound involving ReErased (either a type or region outliving it), so we don't attempt to generate a clean WherePredicate Fixes #57806 I haven't been able to come up with a minimized reproduction for the issue, but I've confirmed that this allows the docs to build for `parqet-rs`
2019-02-03cleanup: don't use node_to_hir_id where unneededljedrz-2/+1
2019-02-02hir: add HirId to main Hir nodesljedrz-1/+2
2019-02-01don't try to get a DefId for a Def that doesn't have oneQuietMisdreavus-3/+6
2019-01-22Don't try to clean predicates involving ReErasedAaron Hill-15/+37
There's nothing to render when we have a bound involving ReErased (either a type or region outliving it), so we don't attempt to generate a clean WherePredicate Fixes #57806
2019-01-14Add additional human-readable cfg strings to rustdocJethro Beekman-0/+2
2019-01-10inline pub extern crate statementsDebugSteven-5/+26
2019-01-05Rollup merge of #57314 - wiktorkuchta:master, r=Centrilkennytm-1/+1
Fix repeated word typos Inspired by #57295 (I skipped 'be be' because of it) and my [PR in another repo ](https://github.com/e-maxx-eng/e-maxx-eng/pull/389) Not a stupid `sed`, I actually tried to fix case by case.
2019-01-05Auto merge of #56837 - arielb1:nonprincipal-trait-objects, r=nikomatsakisbors-4/+15
Add support for trait-objects without a principal The hard-error version of #56481 - should be merged after we do something about the `traitobject` crate. Fixes #33140. Fixes #57057. r? @nikomatsakis
2019-01-04hack-fix to rustdocAriel Ben-Yehuda-4/+15
2019-01-03Fix repeated word typosWiktor Kuchta-1/+1
Found with `git grep -P '\b([a-z]+)\s+\1\b'`
2019-01-01Move the `Unevaluated` constant arm upwards in the type structureOliver Scherer-12/+11
2018-12-26Store `Ident` rather than just `Name` in HIR types `Item` and `ForeignItem`.Alexander Regueiro-3/+12
2018-12-25Remove licensesMark Rousskov-70/+0
2018-12-25Auto merge of #56962 - nivkner:fixme_fixup4, r=pnkfelixbors-1/+2
address some FIXME whose associated issues were marked as closed part of #44366
2018-12-22Auto merge of #56824 - euclio:internal-apis, r=QuietMisdreavusbors-21/+27
rustdoc: display rustc_private APIs as "Internal" This PR updates the display of `rustc_private` APIs to be "Internal" instead of "Experimental", and changes the colors appropriately. It also updates the copy of the `rustc_private` feature to sound more informative and less like a compiler suggestion. The PR additionally contains a significant refactor of the `short_stability` function to remove duplication and fix a few rendering bugs due to extra or missing spaces. Before: ![screen shot 2018-12-14 at 11 45 28 am](https://user-images.githubusercontent.com/1372438/50015926-c9768d80-ff95-11e8-9649-5df29df6909b.png) After: ![screen shot 2018-12-14 at 11 45 11 am](https://user-images.githubusercontent.com/1372438/50015934-cf6c6e80-ff95-11e8-912b-74b893f55425.png)
2018-12-20Auto merge of #56845 - GuillaumeGomez:const-docs, r=oli-obkbors-4/+10
Don't render const keyword on stable Fixes #55246. Continuation of #55327. r? @oli-obk
2018-12-19Rollup merge of #56663 - Zoxc:resolver-lifetime, r=pnkfelixPietro Albini-9/+9
Remove lifetime from Resolver
2018-12-19Set constness correctlyGuillaume Gomez-2/+8
2018-12-19FIXME(RFC1868) point the fixme to the tracking issueNiv Kaminer-1/+2
2018-12-18Don't render const keyword on stableGuillaume Gomez-2/+2
2018-12-14simplify deprecation and stability renderingAndy Russell-21/+27
2018-12-10fix intra-link resolution spans in block commentsAndy Russell-2/+0
This commit improves the calculation of code spans for intra-doc resolution failures. All sugared doc comments should now have the correct spans, including those where the comment is longer than the docs. It also fixes an issue where the spans were calculated incorrectly for certain unsugared doc comments. The diagnostic will now always use the span of the attributes, as originally intended. Fixes #55964.
2018-12-10Remove lifetime from ResolverJohn Kåre Alsaker-9/+9
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-43/+42
2018-12-06Use a function to access the Hir map to be able to turn it into a query laterJohn Kåre Alsaker-61/+61
2018-12-06Rollup merge of #56426 - petrochenkov:syntweak, r=nikomatsakisPietro Albini-3/+3
libsyntax_pos: A few tweaks