summary refs log tree commit diff
path: root/src/librustdoc
AgeCommit message (Collapse)AuthorLines
2014-01-07Inline reexports in rustdocAlex Crichton-141/+257
If a reexport comes from a non-public module, then the documentation for the reexport will be inlined into the module that exports it, but if the reexport is targeted at a public type (like the prelude), then it is not inlined but rather hyperlinked.
2014-01-06Disowned the Visitor.Eduard Burtescu-5/+5
2014-01-04Don't allow newtype structs to be dereferenced. #6246Brian Anderson-6/+32
2014-01-03librustc: Remove `@mut` support from the parserPatrick Walton-9/+3
2014-01-03librustdoc: De-`@mut` `librustdoc`Patrick Walton-7/+7
2014-01-02Bump version to 0.9Brian Anderson-1/+1
2014-01-02auto merge of #10696 : fhahn/rust/issue9543-remove-extern-mod-foo, r=pcwaltonbors-4/+4
This patch for #9543 throws an `obsolete syntax` error for `extern mod foo (name="bar")` . I was wondering if [this](https://github.com/fhahn/rust/compare/mozilla:master...fhahn:issue9543-remove-extern-mod-foo?expand=1#diff-da9d34ca1d0f6beee2838cf02e07345cR4444) is the correct place to do this? I think the wording of the error message could probably be improved as well. If this approach is OK, I'm going to run the whole test suite tomorrow and update the old syntax to the new one.
2014-01-01Remove `extern mod foo (name="bar")` syntax, closes #9543Florian Hahn-4/+4
2014-01-01auto merge of #11255 : klutzy/rust/small-cleanup, r=pcwaltonbors-4/+4
This patchset removes some `@`s and unnecessary traits, and replaces a function (`dummy_sp()`) returning constant value by static variable.
2014-01-01syntax::codemap: Add static DUMMY_SPklutzy-1/+1
It replaces `dummy_sp()`.
2014-01-01rustc::driver: Remove two @sklutzy-3/+3
2013-12-31Remove references to rustdoc_ngBrian Anderson-1/+1
2013-12-30Remove features from librustdocAlan Andrade-1/+0
2013-12-30auto merge of #11185 : huonw/rust/doc-ignore, r=cmrbors-4/+16
Currently any line starting with `#` is filtered from the output, including line like `#[deriving]`; this patch makes it so lines are only filtered when followed by a space similar to the current behaviour of the tutorial/manual tester.
2013-12-30rustdoc: Unify the handling of the hidden example lines.Huon Wilson-6/+15
2013-12-30rustdoc: only filter lines starting with '# ' from the shown code.Huon Wilson-2/+5
Currently any line starting with `#` is filtered from the output, including line like `#[deriving]`; this patch makes it so lines are only filtered when followed by a space similar to the current behaviour of the tutorial/manual tester.
2013-12-29Rename pkgid variablesLuis de Bethencourt-2/+2
2013-12-29Fix rustdoc bug involving PatLitCorey Richardson-3/+8
2013-12-26librustc: De-`@mut` the def map.Patrick Walton-2/+4
This is the last `@mut` in `librustc` that does not depend on libsyntax.
2013-12-26librustc: De-`@mut` the additional library search pathsPatrick Walton-5/+8
2013-12-26Register new snapshotsAlex Crichton-2/+0
2013-12-25Method-ify CStoreSteven Fackler-1/+1
2013-12-23rustdoc: Add the ability to test code in commentsAlex Crichton-40/+335
This adds support for the `--test` flag to rustdoc which will parse a crate, extract all code examples in doc comments, and then run each test in the extra::test driver.
2013-12-22auto merge of #11064 : huonw/rust/vec-sort, r=alexcrichtonbors-30/+28
This uses quite a bit of unsafe code for speed and failure safety, and allocates `2*n` temporary storage. [Performance](https://gist.github.com/huonw/5547f2478380288a28c2): | n | new | priority_queue | quick3 | |-------:|---------:|---------------:|---------:| | 5 | 200 | 155 | 106 | | 100 | 6490 | 8750 | 5810 | | 10000 | 1300000 | 1790000 | 1060000 | | 100000 | 16700000 | 23600000 | 12700000 | | sorted | 520000 | 1380000 | 53900000 | | trend | 1310000 | 1690000 | 1100000 | (The times are in nanoseconds, having subtracted the set-up time (i.e. the `just_generate` bench target).) I imagine that there is still significant room for improvement, particularly because both priority_queue and quick3 are doing a static call via `Ord` or `TotalOrd` for the comparisons, while this is using a (boxed) closure. Also, this code does not `clone`, unlike `quick_sort3`; and is stable, unlike both of the others.
2013-12-22std::vec: make the sorting closure use `Ordering` rather than just beingHuon Wilson-28/+28
(implicitly) less_eq.
2013-12-21std::vec: add a sugary .sort() method for plain Ord sorting.Huon Wilson-1/+1
This moves the custom sorting to `.sort_by`.
2013-12-20extra: remove sort in favour of the std method.Huon Wilson-8/+6
Fixes #9676.
2013-12-19auto merge of #11057 : alexcrichton/rust/no-at-in-ebml, r=pcwaltonbors-1/+1
Now that the metadata is an owned value with a lifetime of a borrowed byte slice, it's possible to have future optimizations where the metadata doesn't need to be copied around (very expensive operation).
2013-12-19Purge @-boxes from the reading half of EBMLAlex Crichton-1/+1
Now that the metadata is an owned value with a lifetime of a borrowed byte slice, it's possible to have future optimizations where the metadata doesn't need to be copied around (very expensive operation).
2013-12-19auto merge of #11041 : cmr/rust/pkgid_changes, r=cmr,metajackbors-1/+3
2013-12-19Add some things to inspect crate-id'sCorey Richardson-1/+1
2013-12-19Rename pkgid to crate_idCorey Richardson-0/+2
Closes #11035
2013-12-18auto merge of #11029 : huonw/rust/rm-vec-as-buf, r=cmrbors-3/+2
For `str.as_mut_buf`, un-closure-ification is achieved by outright removal (see commit message). The others are replaced by `.as_ptr`, `.as_mut_ptr` and `.len`
2013-12-19std::str: replace .as_imm_buf with .as_ptr.Huon Wilson-3/+2
2013-12-18rustdoc: thread through the context for renderingCorey Richardson-3/+9
This partially reverts 8b5a317.
2013-12-17auto merge of #11018 : sfackler/rust/variant-strip, r=alexcrichtonbors-11/+6
Previously, if every variant was private, it would display as a variantless enum instead of having the "some variants stripped" comment.
2013-12-17auto merge of #11030 : cmr/rust/rustdoc_on_fire, r=metajackbors-9/+8
By returning the items to process and storing them in a queue, we were losing the context that was setup for that item during the recursion. This is an easy fix, rather than hoisting out the state that it needs.
2013-12-17Fix rustdoc HTML renderingCorey Richardson-9/+8
By returning the items to process and storing them in a queue, we were losing the context that was setup for that item during the recursion. This is an easy fix, rather than hoisting out the state that it needs.
2013-12-17auto merge of #11005 : sanxiyn/rust/mut, r=alexcrichtonbors-4/+4
There is no `~mut T` and `[mut T]` any more.
2013-12-16Fix rustdoc output of enums with private variantsSteven Fackler-11/+6
Previously, if every variant was private, it would display as a variantless enum instead of having the "some variants stripped" comment.
2013-12-16Fallout of rewriting std::commAlex Crichton-238/+140
2013-12-17Remove obsolete mutability from ast::TySeo Sanghyeon-4/+4
2013-12-15Register new snapshotsAlex Crichton-8/+1
Understand 'pkgid' in stage0. As a bonus, the snapshot now contains now metadata (now that those changes have landed), and the snapshot download is half as large as it used to be!
2013-12-15auto merge of #10948 : cmr/rust/update_pkgid, r=metajackbors-7/+4
2013-12-14librustpkg: don't clobber the crate attributes for the pkgidCorey Richardson-1/+1
2013-12-13auto merge of #10849 : adridu59/rust/patch-css, r=alexcrichtonbors-5/+11
rustdoc: - fix search-bar layout doc: CSS: - switch to native pandoc toc depth - rm some dead code - clamp width to be readable (we're not Wikipedia!) - don't background-color titles, it's bloating - make syntax-highlighting colors inline with rust-lang.org - space indents @alexcrichton
2013-12-13librustdoc: use pkgid instead of link metaCorey Richardson-7/+4
2013-12-11Make 'self lifetime illegal.Erik Price-38/+38
Also remove all instances of 'self within the codebase. This fixes #10889.
2013-12-10auto merge of #10791 : pcwalton/rust/decelling, r=pcwaltonbors-28/+35
34 uses of `Cell` remain. r? @alexcrichton
2013-12-10Make crate hash stable and externally computable.Jack Moffitt-0/+2
This replaces the link meta attributes with a pkgid attribute and uses a hash of this as the crate hash. This makes the crate hash computable by things other than the Rust compiler. It also switches the hash function ot SHA1 since that is much more likely to be available in shell, Python, etc than SipHash. Fixes #10188, #8523.