summary refs log tree commit diff
path: root/src/librustdoc
AgeCommit message (Collapse)AuthorLines
2015-08-04rustc: replace def::MethodProvenance with ty::ImplOrTraitItemContainer.Eduard Burtescu-1/+1
2015-07-30fix rustdoc metadata parsingAlexis Beingessner-3/+4
2015-07-28remove `get_ident` and `get_name`, make `as_str` soundOliver Schneider-13/+13
2015-07-27std: Deprecate a number of unstable featuresAlex Crichton-6/+4
Many of these have long since reached their stage of being obsolete, so this commit starts the removal process for all of them. The unstable features that were deprecated are: * cmp_partial * fs_time * hash_default * int_slice * iter_min_max * iter_reset_fuse * iter_to_vec * map_in_place * move_from * owned_ascii_ext * page_size * read_and_zero * scan_state * slice_chars * slice_position_elem * subslice_offset
2015-07-21Use a span from the correct file for the inner span of a moduleNick Cameron-0/+4
This basically only affects modules which are empty (or only contain comments). Closes #26755
2015-07-21Auto merge of #27103 - wthrowe:doc_format, r=alexcrichtonbors-24/+18
This fixes a couple of bugs visible on https://doc.rust-lang.org/nightly/std/marker/trait.Sync.html . For example: * `impl<T> Sync for *const T` should read `impl<T> !Sync for *const T` * `impl<T> !Sync for Weak<T>` should read `impl<T> !Sync for Weak<T> where T: ?Sized` This does change a struct in librustdoc and it seems that almost everything there is marked public, so if librustdoc has stability guarantees that could be a problem. If it is, I'll find a way to rework the change to avoid modifying public structures.
2015-07-20librustdoc: blur page when help dialogue is presentAndreas Tolfsen-41/+62
Blurs the document's background when the help dialogue is present, making the contents of the dialogue stand out more.
2015-07-18Fix rustdoc formatting of implsWilliam Throwe-24/+18
Some cases displayed negative impls as positive, and some were missing where clauses. This factors all the impl formatting into one function so the different cases can't get out of sync again.
2015-07-18Auto merge of #27074 - steveklabnik:gh27014, r=alexcrichtonbors-4/+3
Fixes #27014 r? @alexcrichton I'm not 100% sure there's not a better way to do this, but it works. Also, I wasn't sure how, where, or if to write a test for this.
2015-07-17DRYTamir Duberstein-2/+2
2015-07-16rustdoc: properly capture rustc outputSteve Klabnik-4/+3
When rustc gives an error, there's a ton of extra output from the panic. Now, we use monitor() to supress the excess output. Fixes #27014
2015-07-16Merge branch 'fix-26673' of https://github.com/nhowell/rust into rollup_centralSteve Klabnik-0/+6
2015-07-16Rollup merge of #26977 - brson:stddoc, r=GankroManish Goregaokar-0/+5
Yet another attempt to make the prose on the std crate page clearer and more informative. This does a lot of things: tightens up the opening, adds useful links (including a link to the search bar), offers guidance on how to use the docs, and expands the prelude docs as a useful newbie entrypoint. r? @steveklabnik cc @aturon
2015-07-13Address feedbackBrian Anderson-0/+5
2015-07-12Set zero padding for pre tagsIvan Ukhov-0/+3
2015-07-12Auto merge of #26957 - wesleywiser:rename_connect_to_join, r=alexcrichtonbors-22/+22
Fixes #26900
2015-07-12Auto merge of #26895 - jroesch:modernize-typeck-names, r=nikomatsakisbors-1/+1
This PR modernizes some names in the type checker. The only remaining snake_case name in ty.rs is `ctxt` which should be resolved by @eddyb's pending refactor. We can bike shed over the names, it would just be nice to bring the type checker inline with modern Rust. r? @eddyb cc @nikomatsakis
2015-07-12Auto merge of #26966 - nagisa:tail-init, r=alexcrichtonbors-3/+2
Fixes #26906
2015-07-12Rollup merge of #26967 - tsurai:master, r=steveklabnikManish Goregaokar-1/+1
The very first code fragment off every struct and trait documentation page generates wrong playground code. This pull request adjusts ```playpen.js``` to only create a link for real examples. Documentation: ```rust pub struct String { // some fields omitted } ``` Playground: ```rust Struct std::String [−] [src] ``` r? @steveklabnik
2015-07-12Rollup merge of #26881 - andreastt:international_keyboard, r=alexcrichtonManish Goregaokar-44/+48
Avoids some code duplication and relies less on deprecated properties on `KeyboardEvent`. The code is still looking quite bad, but that’s primarily because interop in this area is a disaster zone.
2015-07-11Auto merge of #26882 - andreastt:style_improvements, r=alexcrichtonbors-5/+4
Sharpens the help dialogues edges by removing border-padding, which matches better with the rest of the document. Also increases somewhat the rounded edges of the key symbols to make it clear they are symbols. Also introduces closing apostrophes and ellipsis for search field placeholder.
2015-07-12Implement RFC 1058Simonas Kazlauskas-3/+2
2015-07-11doc: remove playground links for structs and traitsCristian Kubis-1/+1
2015-07-10Change some instances of .connect() to .join()Wesley Wiser-22/+22
2015-07-10doc: set playground to nightly for unstable codeCristian Kubis-1/+8
2015-07-09Use vec![elt; n] where possibleUlrik Sverdrup-1/+1
The common pattern `iter::repeat(elt).take(n).collect::<Vec<_>>()` is exactly equivalent to `vec![elt; n]`, do this replacement in the whole tree. (Actually, vec![] is smart enough to only call clone n - 1 times, while the former solution would call clone n times, and this fact is virtually irrelevant in practice.)
2015-07-08Remove snake_case names from ty.rsJared Roesch-1/+1
2015-07-08librustdoc: generalise handling of keyboard shortcutsAndreas Tolfsen-44/+48
2015-07-08librustdoc: sharpen help dialogue edgesAndreas Tolfsen-5/+4
Sharpens the help dialogues edges by removing border-padding, which matches better with the rest of the document. Also increases somewhat the rounded edges of the key symbols to make it clear they are symbols. Also introduces closing apostrophes and ellipsis for search field placeholder.
2015-07-02Auto merge of #26733 - nhowell:update-jquery, r=steveklabnikbors-6/+6
r? @steveklabnik
2015-07-01rustdoc: Update jQuery from 2.1.0 to 2.1.4Nick Howell-6/+6
2015-07-01rustdoc: Reset the title when pressing the back buttonNick Howell-0/+6
Fixes #26673
2015-07-01Add netbsd amd64 supportAlex Newman-0/+1
2015-07-01In js from the docs, change keyboard eventlistener to be compatible with ↵Mathieu David-6/+33
non-english keyboard layouts. Fixes #26016 Fixes #16572
2015-06-26rustc: switch most remaining middle::ty functions to methods.Eduard Burtescu-25/+24
2015-06-23Remove the mostly unecessary ParamBounds structJared Roesch-13/+0
2015-06-22Auto merge of #26037 - nhowell:plain_js_playpen, r=steveklabnikbors-14/+34
Since the "Book" already avoids jQuery in its inline script tags and playpen.js is tiny, I figured I would convert it to plain old JS as well. Side note: This is a separate issue, but another thing I noticed in my testing is that the "⇱" character doesn't display correctly in Chrome on Windows 7. (Firefox and IE work fine; other browsers not tested) r? @steveklabnik Edit: Github didn't like the "script" tag above Edit 2: Actually, now IE seems to render "⇱" fine for me. Odd.
2015-06-20Auto merge of #26417 - brson:feature-err, r=steveklabnikbors-2/+2
It now says '#[feature] may not be used on the stable release channel'. I had to convert this error from a lint to a normal compiler error. I left the lint previously-used for this in place since removing it is a breaking change. It will just go unused until the end of time. Fixes #24125
2015-06-19Auto merge of #26351 - eddyb:tls-tcx, r=nikomatsakisbors-54/+55
Pre-requisite for splitting the type context into global and local parts. The `Repr` and `UserString` traits were also replaced by `Debug` and `Display`.
2015-06-19Rollup merge of #26401 - jooert:fix26360, r=steveklabnikManish Goregaokar-0/+3
Fixes #26360. r? @steveklabnik
2015-06-18Make a better error message for using #[feature] on stable rustBrian Anderson-2/+2
It now says '#[feature] may not be used on the stable release channel'. I had to convert this error from a lint to a normal compiler error. I left the lint previously-used for this in place since removing it is a breaking change. It will just go unused until the end of time. Fixes #24125
2015-06-19rustc: replace Repr/UserString impls with Debug/Display ones.Eduard Burtescu-1/+1
2015-06-19rustc: enforce stack discipline on ty::ctxt.Eduard Burtescu-53/+54
2015-06-19rustc: remove ownership of tcx from trans' context.Eduard Burtescu-9/+9
2015-06-18rustdoc: Update document title when displaying search resultsJohannes Oertel-0/+3
Fixes #26360.
2015-06-17More test fixes and fallout of stability changesAlex Crichton-2/+2
2015-06-17Fallout in tests and docs from feature renamingsAlex Crichton-6/+9
2015-06-14Find type of orphan methods for rustdoc search.Mihnea Dobrescu-Balaur-1/+3
2015-06-12Split TyArray into TyArray and TySlice.Eli Friedman-3/+3
Arrays and slices are closely related, but not that closely; making the separation more explicit is generally more clear.
2015-06-12Convert playpen.js to plain JS.Nick Howell-14/+34
It is still compatible with IE9+. This removes the jQuery dependency from the "Book" entirely.