summary refs log tree commit diff
path: root/src/librustdoc
AgeCommit message (Collapse)AuthorLines
2016-11-03Stabilize `..` in tuple (struct) patternsVadim Petrochenkov-1/+1
2016-10-31Changed most vec! invocations to use square bracesiirelu-10/+10
Most of the Rust community agrees that the vec! macro is clearer when called using square brackets [] instead of regular brackets (). Most of these ocurrences are from before macros allowed using different types of brackets. There is one left unchanged in a pretty-print test, as the pretty printer still wants it to have regular brackets.
2016-10-30Auto merge of #37431 - jseyfried:refactor_crate_config, r=eddybbors-25/+19
Move `CrateConfig` from `Crate` to `ParseSess` This is a syntax-[breaking-change]. Most breakage can be fixed by removing a `CrateConfig` argument. r? @eddyb
2016-10-29Move `CrateConfig` from `Crate` to `ParseSess`.Jeffrey Seyfried-25/+19
2016-10-28rustc: move the MIR map into TyCtxt.Eduard Burtescu-1/+1
2016-10-25Utilize AccumulateVec to avoid heap allocations in mk_{substs, type_list, ↵Mark-Simulacrum-1/+1
tup} calls.
2016-10-19Improve `$crate`.Jeffrey Seyfried-3/+2
2016-10-15rustdoc: Improve playground run buttonsOliver Middleton-104/+42
The main change is to stop using javascript to generate the URLs and use rustdoc instead. This also adds run buttons to the error index examples.
2016-10-14Rollup merge of #37102 - est31:rustdoc_question_mark, r=GuillaumeGomezJonathan Turner-2/+10
rustdoc: color the question mark operator The idea of coloring `?` specially was proposed by @eddyb in: https://github.com/rust-lang/rust/issues/31436#issuecomment-247426582
2016-10-12Rollup merge of #37050 - frewsxcv:librustdoc, r=alexcrichtonAlex Crichton-38/+61
librustdoc refactoring and cleanup.
2016-10-12Rollup merge of #36995 - nrc:stable, r=@nikomatsakisAlex Crichton-1/+1
stabilise ?, attributes on stmts, deprecate Reflect r? @nikomatsakis
2016-10-12Change color and make ? boldest31-1/+2
2016-10-12rustdoc: color the question mark operatorest31-2/+9
The idea was proposed by eddyb in: https://github.com/rust-lang/rust/issues/31436#issuecomment-247426582
2016-10-12Stabilise `?`Nick Cameron-1/+1
cc [`?` tracking issue](https://github.com/rust-lang/rust/issues/31436)
2016-10-11Rollup merge of #36679 - QuietMisdreavus:rustdoc-line-breaks, r=steveklabnikGuillaume Gomez-102/+335
rustdoc: print non-self arguments of bare functions and struct methods on their own line This change alters the formatting rustdoc uses when it creates function and struct method documentation. For bare functions, each argument is printed on its own line. For struct methods, non-self arguments are printed on their own line. In both cases, no line breaks are introduced if there are no arguments, and for struct methods, no line breaks are introduced if there is only a single self argument. This should aid readability of long function signatures and allow for greater comprehension of these functions. I've run rustdoc with these changes on my crate egg-mode and its set of dependencies and put the result [on my server](https://shiva.icesoldier.me/doc-custom/egg_mode/). Of note, here are a few shortcut links that highlight the changes: * [Bare function with a long signature](https://shiva.icesoldier.me/doc-custom/egg_mode/place/fn.reverse_geocode.html) * [Struct methods, with single self argument and with self and non-self arguments](https://shiva.icesoldier.me/doc-custom/egg_mode/tweet/struct.Timeline.html#method.reset) * [Bare functions with no arguments](https://shiva.icesoldier.me/doc-custom/rand/fn.thread_rng.html) and [struct methods with no arguments](https://shiva.icesoldier.me/doc-custom/hyper/client/struct.Client.html#method.new) are left unchanged. This PR consists of two commits: one for bare functions and one for struct methods.
2016-10-09Remove unnecessary `pub` function classifier.Corey Farwell-1/+1
2016-10-09Make `ExternalHtml::load` short-circuited.Corey Farwell-10/+16
2016-10-09Refactor away `load_or_return` macro.Corey Farwell-26/+37
2016-10-08Add doc comments describing fields on `externalfiles::ExternalHtml`.Corey Farwell-0/+6
2016-10-08Auto merge of #36637 - GuillaumeGomez:fix_run_button, r=blussbors-2/+32
Fixes run button appearing when it shouldn't Fixes #36621. r? @steveklabnik
2016-10-08Don't construct `PathBuf` ownership if we don't need it.Corey Farwell-3/+3
2016-10-07Auto merge of #36981 - alexcrichton:catch-unwind-for-tests, r=sfacklerbors-1/+1
std: Minor cleanup to libtest * Don't spawn two threads for all tests, just one now that `catch_unwind` is stable. * Remove usage of the unstable `box` keyword * Remove usage of the unstable `FnBox` trait
2016-10-07Rollup merge of #37003 - GuillaumeGomez:underline-removal, r=steveklabnikGuillaume Gomez-0/+1
Remove underline when run button hovered r? @steveklabnik
2016-10-06Remove underline when run button hoveredGuillaume Gomez-0/+1
2016-10-06std: Minor cleanup to libtestAlex Crichton-1/+1
* Don't spawn two threads for all tests, just one now that `catch_unwind` is stable. * Remove usage of the unstable `box` keyword * Remove usage of the unstable `FnBox` trait
2016-10-06Rollup merge of #36966 - ollie27:rustdoc_mut_ptr_impl, r=alexcrichtonJonathan Turner-2/+2
rustdoc: Fix missing *mut T impl `impl<T> *mut T` is currently missing from https://doc.rust-lang.org/nightly/std/primitive.pointer.html and this adds it back.
2016-10-05Fixes run button appearing when it shouldn'tGuillaume Gomez-2/+32
2016-10-04Remove some unused methods from metadataVadim Petrochenkov-3/+4
Address comments + Fix rebase
2016-10-04Turn some impossible definitions into ICEsVadim Petrochenkov-10/+8
2016-10-04Eliminate ty::VariantKind in favor of def::CtorKindVadim Petrochenkov-11/+11
2016-10-04Fix cross-crate resolution of half-items created by export shadowingVadim Petrochenkov-5/+6
2016-10-04rustdoc: Fix missing *mut T implOliver Middleton-2/+2
`impl<T> *mut T` is currently missing from https://doc.rust-lang.org/nightly/std/primitive.pointer.html and this adds it back.
2016-10-04Rollup merge of #36903 - frewsxcv:typekind, r=jseyfriedManish Goregaokar-108/+107
Minor librustdoc cleanup and refactoring.
2016-10-03Auto merge of #36847 - alexcrichton:rustc-macro-doc, r=nrcbors-0/+1
rustdoc: Fix documenting rustc-macro crates This commit adds a "hack" to the session to track whether we're a rustdoc session or not. If we're rustdoc then we skip the expansion to add the rustc-macro infrastructure. Closes #36820
2016-10-02Remove redundant 'Variant' in variant names, stop reexporting.Corey Farwell-22/+22
2016-10-02Migrate `VariantKind` constructor to `Clean` impl.Corey Farwell-7/+7
https://github.com/rust-lang/rust/pull/36903#discussion_r81477884
2016-10-02Simplify equality checks.Corey Farwell-3/+3
2016-10-02Remove redundant 'Import' in variant names, stop reexporting.Corey Farwell-12/+11
2016-10-02Cleanup `return` statements.Corey Farwell-17/+16
2016-10-02Migrate `VariantKind` construction function to associated function.Corey Farwell-8/+10
2016-10-02Rename method 'to_string' to match conventions.Corey Farwell-3/+3
2016-10-02Remove redundant 'Type' in variant names, stop reexporting.Corey Farwell-48/+47
2016-10-01Auto merge of #36885 - Manishearth:rollup, r=Manishearthbors-49/+47
Rollup of 6 pull requests - Successful merges: #36865, #36872, #36873, #36877, #36880, #36882 - Failed merges:
2016-10-01Rollup merge of #36599 - ↵Manish Goregaokar-3/+3
jonas-schievink:whats-a-pirates-favorite-data-structure, r=pnkfelix Contains a syntax-[breaking-change] as a separate commit (cc #31645).nnAlso renames slice patterns from `PatKind::Vec` to `PatKind::Slice`.
2016-10-01Rollup merge of #36872 - frewsxcv:rustdoc, r=GuillaumeGomezManish Goregaokar-49/+47
A couple refactorings in librustdoc. None
2016-09-30Change the sigs of set_print/set_panic to allow restoring the default objectsBrian Anderson-1/+1
2016-09-30Simplify logic around Context's root_path.Corey Farwell-14/+12
Was previously cached and maintained in the `Context`, which to me seems overkill.
2016-09-30Migrate Item ➡ ItemType function to method.Corey Farwell-35/+35
2016-09-30rustdoc: Fix documenting rustc-macro cratesAlex Crichton-0/+1
This commit adds a "hack" to the session to track whether we're a rustdoc session or not. If we're rustdoc then we skip the expansion to add the rustc-macro infrastructure. Closes #36820
2016-09-28Call arrays "arrays" instead of "vecs" internallyJonas Schievink-3/+3