summary refs log tree commit diff
path: root/src/librustdoc/clean
AgeCommit message (Collapse)AuthorLines
2014-06-24Remove the quad_precision_float feature gateAlex Crichton-5/+1
The f128 type has very little support in the compiler and the feature is basically unusable today. Supporting half-baked features in the compiler can be detrimental to the long-term development of the compiler, and hence this feature is being removed.
2014-06-21rustdoc: show default type parameters in genericsTom Jakubowski-1/+4
fix #12291
2014-06-17Add a b'x' byte literal of type u8.Simon Sapin-0/+8
2014-06-16Fix rustdoc's formatting of lifetimesP1start-1/+1
rustdoc was previously formatting lifetimes with two apostrophes, presumably as a result of #14797.
2014-06-14rustc: Obsolete the `@` syntax entirelyAlex Crichton-1/+1
This removes all remnants of `@` pointers from rustc. Additionally, this removes the `GC` structure from the prelude as it seems odd exporting an experimental type in the prelude by default. Closes #14193 [breaking-change]
2014-06-13libsyntax: Allow `+` to separate trait bounds from objects.Patrick Walton-1/+2
RFC #27. After a snapshot, the old syntax will be removed. This can break some code that looked like `foo as &Trait:Send`. Now you will need to write `foo as (&Trait+Send)`. Closes #12778. [breaking-change]
2014-06-13Introduce VecPerParamSpace and use it to represent sets of types andNiko Matsakis-21/+53
parameters This involves numerous substeps: 1. Treat Self same as any other parameter. 2. No longer compute offsets for method parameters. 3. Store all generic types (both trait/impl and method) with a method, eliminating odd discrepancies. 4. Stop doing unspeakable things to static methods and instead just use the natural types, now that we can easily add the type parameters from trait into the method's polytype. 5. No doubt some more. It was hard to separate these into distinct commits. Fixes #13564
2014-06-11rustc: Move the AST from @T to Gc<T>Alex Crichton-7/+8
2014-06-09auto merge of #14606 : pcwalton/rust/fn-trait-sugar, r=alexcrichtonbors-0/+4
r? @alexcrichton
2014-06-09librustc: Implement sugar for the `FnMut` traitPatrick Walton-0/+4
2014-06-09rustdoc: Correctly classify enums/typedefsAlex Crichton-1/+1
Both of these items are surfaced as a DefTy, so some extra logic was needed in the decoder module to figure out whether one is actually an enum or whether it's a typedef. Closes #14757
2014-06-08Remove unused name_str_pair methodSteven Fackler-6/+0
2014-06-06Test fixes from the rollupAlex Crichton-1/+1
2014-06-06rustdoc: Inline static documentation across cratesAlex Crichton-0/+14
2014-06-06Move Def out of syntax crate, where it does not belongNiko Matsakis-24/+26
2014-06-06Move subst data structures into subst.rs, fix capitalizationNiko Matsakis-7/+8
2014-06-06auto merge of #14667 : aochagavia/rust/pr2, r=huonwbors-9/+9
2014-06-06Change to_str().to_string() to just to_str()Adolfo OchagavĂ­a-9/+9
2014-06-05rustdoc: Include supertraits on inlined traitsTom Jakubowski-1/+9
Previously, documentation for an inlined trait (i.e. a trait imported and reexported from another crate) didn't display the trait's supertraits. Closes #14636
2014-06-03rustdoc: Put primitives in respective modulesAlex Crichton-9/+19
The logical location for the documentation of a primitive is in the module that declared it was a module for that primitive.
2014-06-02rustdoc: Correctly inline required/provided methodsAlex Crichton-12/+16
Apparently relying on provided_source in ty::Method is unreliable! Closes #14594
2014-06-01rustdoc: Ensure external impls are inlined onceAlex Crichton-10/+17
If the type associated with the impl is `pub use`'d or referenced twice in a downstream crate, the impl will attempt to be inlined twice. Closes #14584
2014-06-01rustdoc: Filter private methods from inlined implsAlex Crichton-2/+7
Closes #14583
2014-05-31syntax: Fix an accidental hyperlink in a commentAlex Crichton-1/+1
2014-05-31rustdoc: Don't inline tuple struct constructorsAlex Crichton-0/+5
These don't actually point to anything, so there's no need to inline them.
2014-05-31rustdoc: Fix cross-crate links to reexported itemsAlex Crichton-1/+16
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-31rustdoc: Suck in all impls from external cratesAlex Crichton-4/+38
There is currently no way to query all impls for a type from an external crate, and with primitive types in play this is also quite difficult. Instead of filtering, just suck in all impls from upstream crates into the local AST, and have them get stripped later. This will allow population of all implementations of traits for primitive types, as well as filling in some corner cases with inlining documentation in other cases.
2014-05-31rustdoc: Filter inlining private external itemsAlex Crichton-1/+2
This prevents structures like RcBox from showing up in the documentation
2014-05-31rustdoc: Create anchor pages for primitive typesAlex Crichton-23/+203
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-31rustdoc: Fill in external type parameters correctlyAlex Crichton-21/+22
Type parameters were filled in for some areas, but not all. This commit unifies the two code paths to fill in type parameters everywhere. Closes #14508
2014-05-31rustdoc: Stringify more named lifetimesAlex Crichton-1/+1
cc #14462
2014-05-30std: Rename {Eq,Ord} to Partial{Eq,Ord}Alex Crichton-3/+3
This is part of the ongoing renaming of the equality traits. See #12517 for more details. All code using Eq/Ord will temporarily need to move to Partial{Eq,Ord} or the Total{Eq,Ord} traits. The Total traits will soon be renamed to {Eq,Ord}. cc #12517 [breaking-change]
2014-05-29auto merge of #14483 : ahmedcharles/rust/patbox, r=alexcrichtonbors-1/+1
2014-05-29auto merge of #14481 : alexcrichton/rust/no-format-strbuf, r=sfacklerbors-4/+4
* Removes `format_strbuf!()`
2014-05-28Add AST node for pattern macrosKeegan McAllister-1/+6
2014-05-28std: Remove format_strbuf!()Alex Crichton-4/+4
This was only ever a transitionary macro.
2014-05-27Rename PatUniq to PatBox. Fixes part of #13910.Ahmed Charles-1/+1
2014-05-27rustdoc: Only link to local inlined foreign itemsAlex Crichton-0/+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-39/+39
[breaking-change]
2014-05-25rustdoc: Move inlining to its own moduleAlex Crichton-0/+2108