summary refs log tree commit diff
path: root/src/librustdoc/html/format.rs
AgeCommit message (Collapse)AuthorLines
2014-10-07Use slice syntax instead of slice_to, etc.Nick Cameron-3/+3
2014-10-06rustdoc: Remove dummy UnknownBound variantTom Jakubowski-5/+1
2014-10-06rustdoc: Support unboxed fn sugar in boundsTom Jakubowski-3/+3
2014-10-06rustdoc: Correctly name lifetimes in boundsTom Jakubowski-3/+11
Fix #16518
2014-10-02rollup merge of #17666 : eddyb/take-garbage-outAlex Crichton-1/+1
Conflicts: src/libcollections/lib.rs src/libcore/lib.rs src/librustdoc/lib.rs src/librustrt/lib.rs src/libserialize/lib.rs src/libstd/lib.rs src/test/run-pass/issue-8898.rs
2014-10-02Revert "Use slice syntax instead of slice_to, etc."Aaron Turon-3/+3
This reverts commit 40b9f5ded50ac4ce8c9323921ec556ad611af6b7.
2014-10-02rustdoc: remove handling of Gc.Eduard Burtescu-1/+1
2014-10-02Use slice syntax instead of slice_to, etc.Nick Cameron-3/+3
2014-09-29rustdoc: Render where clauses as appropriateTom Jakubowski-8/+37
Fix #16546
2014-09-19Add enum variants to the type namespaceNick Cameron-1/+1
Change to resolve and update compiler and libs for uses. [breaking-change] Enum variants are now in both the value and type namespaces. This means that if you have a variant with the same name as a type in scope in a module, you will get a name clash and thus an error. The solution is to either rename the type or the variant.
2014-08-27Implement generalized object and type parameter bounds (Fixes #16462)Niko Matsakis-8/+1
2014-08-18libsyntax: Remove the `use foo = bar` syntax from the language in favorPatrick Walton-1/+1
of `use bar as foo`. Change all uses of `use foo = bar` to `use bar as foo`. Implements RFC #47. Closes #16461. [breaking-change]
2014-08-12Implement Index for HashMapP1start-6/+6
This also deprecates HashMap::get. Use indexing instead.
2014-07-28rustdoc: improvements to stability dashboardAaron Turon-24/+33
* Makes dashboard width dynamic. * Colors unmarked items. * Gives overall crate percentages.
2014-07-25rustdoc: Fix links to Box/GcAlex Crichton-3/+3
These are lang items now, so the internal representations need to be re-translated back to the original structures manually. Closes #15185 Closes #15800
2014-07-24libsyntax: Remove `~self` and `mut ~self` from the language.Patrick Walton-1/+1
This eliminates the last vestige of the `~` syntax. Instead of `~self`, write `self: Box<TypeOfSelf>`; instead of `mut ~self`, write `mut self: Box<TypeOfSelf>`, replacing `TypeOfSelf` with the self-type parameter as specified in the implementation. Closes #13885. [breaking-change]
2014-07-16librustc: Implement the fully-expanded, UFCS form of explicit self.Patrick Walton-0/+3
This makes two changes to region inference: (1) it allows region inference to relate early-bound regions; and (2) it allows regions to be related before variance runs. The former is needed because there is no relation between the two regions before region substitution happens, while the latter is needed because type collection has to run before variance. We assume that, before variance is inferred, that lifetimes are invariant. This is a conservative overapproximation. This relates to #13885. This does not remove `~self` from the language yet, however. [breaking-change]
2014-07-17deprecate Vec::getNick Cameron-1/+1
2014-07-13auto merge of #15614 : lucidd/rust/#15474, r=alexcrichtonbors-1/+4
This fixes #15474
2014-07-12auto merge of #15605 : blake2-ppc/rust/rustdoc-const-t, r=alexcrichtonbors-1/+12
Update the formatting of raw immutable pointers to print *const T.
2014-07-11rustdoc: render 1-tuples as (T,) instead of (T)Kevin Walter-1/+4
2014-07-11rustdoc: Change type name of raw pointer from *T to *const Troot-1/+12
Update the formatting of raw immutable pointers to print *const T.
2014-07-10rustdoc: Add stability dashboardAaron Turon-0/+70
This commit adds a crate-level dashboard summarizing the stability levels of all items for all submodules of the crate. The information is also written as a json file, intended for consumption by pages like http://huonw.github.io/isrustfastyet/ Closes #13541
2014-07-08std: Rename the `ToStr` trait to `ToString`, and `to_str` to `to_string`.Richo Healey-4/+4
[breaking-change]
2014-07-02rustdoc: s/nil/unit/ internally.Huon Wilson-4/+4
Quick poll on IRC suggested that unit was the preferred name for ().
2014-06-30rustdoc: incorporate stability index throughoutAaron Turon-0/+35
This commit hooks rustdoc into the stability index infrastructure in two ways: 1. It looks up stability levels via the index, rather than by manual attributes. 2. It adds stability level information throughout rustdoc output, rather than just at the top header. In particular, a stability color (with mouseover text) appears next to essentially every item that appears in rustdoc's HTML output. Along the way, the stability index code has been lightly refactored.
2014-06-29librustc: Remove the fallback to `int` for integers and `f64` forPatrick Walton-1/+1
floating point numbers for real. This will break code that looks like: let mut x = 0; while ... { x += 1; } println!("{}", x); Change that code to: let mut x = 0i; while ... { x += 1; } println!("{}", x); Closes #15201. [breaking-change]
2014-06-21rustdoc: show default type parameters in genericsTom Jakubowski-0/+5
fix #12291
2014-06-17rustdoc: Remove outdated syntaxAlex Crichton-7/+4
Fixing some of rustdoc's rendering to use newer syntaxes rather than older syntaxes.
2014-06-15Register new snapshotsAlex Crichton-1/+0
2014-06-11std: Remove i18n/l10n from format!Alex Crichton-24/+17
* The select/plural methods from format strings are removed * The # character no longer needs to be escaped * The \-based escapes have been removed * '{{' is now an escape for '{' * '}}' is now an escape for '}' Closes #14810 [breaking-change]
2014-06-06rustdoc: Inline static documentation across cratesAlex Crichton-22/+19
2014-06-06Change to_str().to_string() to just to_str()Adolfo Ochagavía-1/+1
2014-05-31rustdoc: Fix cross-crate links to reexported itemsAlex Crichton-8/+2
Cross crate links can target items which are not rendered in the documentation. If the item is reexported at a higher level, the destination of the link (a concatenation of the fully qualified name) may actually lead to nowhere. This fixes this problem by altering rustdoc to emit pages which redirect to the local copy of the reexported structure. cc #14515 Closes #14137
2014-05-31doc: Fix a number of broken linksAlex Crichton-4/+10
cc #14515
2014-05-31rustdoc: Create anchor pages for primitive typesAlex Crichton-30/+60
This commit adds support in rustdoc to recognize the `#[doc(primitive = "foo")]` attribute. This attribute indicates that the current module is the "owner" of the primitive type `foo`. For rustdoc, this means that the doc-comment for the module is the doc-comment for the primitive type, plus a signal to all downstream crates that hyperlinks for primitive types will be directed at the crate containing the `#[doc]` directive. Additionally, rustdoc will favor crates closest to the one being documented which "implements the primitive type". For example, documentation of libcore links to libcore for primitive types, but documentation for libstd and beyond all links to libstd for primitive types. This change involves no compiler modifications, it is purely a rustdoc change. The landing pages for the primitive types primarily serve to show a list of implemented traits for the primitive type itself. The primitive types documented includes both strings and slices in a semi-ad-hoc way, but in a way that should provide at least somewhat meaningful documentation. Closes #14474
2014-05-29auto merge of #14510 : kballard/rust/rename_strallocating_into_owned, ↵bors-1/+1
r=alexcrichton We already have into_string(), but it was implemented in terms of into_owned(). Flip it around and deprecate into_owned(). Remove a few spurious calls to .into_owned() that existed in libregex and librustdoc.
2014-05-28Replace StrAllocating.into_owned() with .into_string()Kevin Ballard-1/+1
We already have into_string(), but it was implemented in terms of into_owned(). Flip it around and deprecate into_owned(). Remove a few spurious calls to .into_owned() that existed in libregex and librustdoc.
2014-05-28std: Remove format_strbuf!()Alex Crichton-3/+3
This was only ever a transitionary macro.
2014-05-27rustdoc: Only link to local inlined foreign itemsAlex Crichton-1/+1
This commit alters rustdoc to keep a hash set of known inlined items which is a whitelist for generating URLs to. Closes #14438
2014-05-27std: Rename strbuf operations to stringRicho Healey-10/+10
[breaking-change]
2014-05-27std: Remove String's to_ownedRicho Healey-1/+1
2014-05-25rustdoc: Fix rendering of the 'static boundAlex Crichton-1/+1
2014-05-25rustdoc: Link to local reexportations of itemsAlex Crichton-1/+1
Within the documentation for a crate, all hyperlinks to reexported items don't go across crates, but rather to the items in the crate itself. This will allow references to Option in the standard library to link to the standard library's Option, instead of libcore's. This does mean that other crate's links for Option will still link to libcore's Option.
2014-05-24core: rename strbuf::StrBuf to string::StringRicho Healey-9/+9
[breaking-change]
2014-05-22libcore: Remove all uses of `~str` from `libcore`.Patrick Walton-1/+1
[breaking-change]
2014-05-22libstd: Remove `~str` from all `libstd` modules except `fmt` and `str`.Patrick Walton-11/+19
2014-05-22rustdoc: Fill in external trait methodsAlex Crichton-3/+7
This commit alters rustdoc to crawl the metadata of upstream libraries in order to fill in default methods for traits implemented in downstream crates. This, for example, documents the `insert` function on hash maps. This is a fairly lossy extraction from the metadata. Documentation and attributes are lost, but they aren't used anyway. Unfortunately, argument names are also lost because they are not present in the metadata. Source links are also lost because the spans are not serialized. While not perfect, it appears that presenting this documentation through rustdoc is much better than nothing, so I wanted to land this to allow iteration on it later on.
2014-05-15core: Update all tests for fmt movementAlex Crichton-1/+1
2014-05-15Updates with core::fmt changesAlex Crichton-70/+70
1. Wherever the `buf` field of a `Formatter` was used, the `Formatter` is used instead. 2. The usage of `write_fmt` is minimized as much as possible, the `write!` macro is preferred wherever possible. 3. Usage of `fmt::write` is minimized, favoring the `write!` macro instead.