about summary refs log tree commit diff
path: root/src/librustdoc/markdown_pass.rs
AgeCommit message (Collapse)AuthorLines
2013-09-22rustdoc: Out with the old, in with the newAlex Crichton-941/+0
Removes old rustdoc, moves rustdoc_ng into its place instead (plus drops the _ng suffix). Also shreds all reference to rustdoc_ng from the Makefile rules.
2013-08-07Change const to staticSangeun Kim-5/+5
2013-08-07Change Freeze to StaticSangeun Kim-3/+3
2013-08-06remove `extra::iter`Daniel Micay-2/+2
This module provided adaptors for the old internal iterator protocol, but they proved to be quite unreadable and are not generic enough to handle borrowed pointers well. Since Rust no longer defines an internal iteration protocol, I don't think there's going to be any reuse via these adaptors.
2013-08-05Updated std::Option, std::Either and std::ResultMarvin Löbel-4/+4
- Made naming schemes consistent between Option, Result and Either - Changed Options Add implementation to work like the maybe monad (return None if any of the inputs is None) - Removed duplicate Option::get and renamed all related functions to use the term `unwrap` instead
2013-08-03remove obsolete `foreach` keywordDaniel Micay-7/+7
this has been replaced by `for`
2013-08-01std: Change `Times` trait to use `do` instead of `for`blake2-ppc-2/+2
Change the former repetition:: for 5.times { } to:: do 5.times { } .times() cannot be broken with `break` or `return` anymore; for those cases, use a numerical range loop instead.
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-7/+7
2013-07-29New naming convention for ast::{node_id, local_crate, crate_node_id, ↵Michael Woerister-2/+2
blk_check_mode, ty_field, ty_method}
2013-07-20syntax: modernise attribute handling in syntax::attr.Huon Wilson-2/+2
This does a number of things, but especially dramatically reduce the number of allocations performed for operations involving attributes/ meta items: - Converts ast::meta_item & ast::attribute and other associated enums to CamelCase. - Converts several standalone functions in syntax::attr into methods, defined on two traits AttrMetaMethods & AttributeMethods. The former is common to both MetaItem and Attribute since the latter is a thin wrapper around the former. - Deletes functions that are unnecessary due to iterators. - Converts other standalone functions to use iterators and the generic AttrMetaMethods rather than allocating a lot of new vectors (e.g. the old code would have to allocate a new vector to use functions that operated on &[meta_item] on &[attribute].) - Moves the core algorithm of the #[cfg] matching to syntax::attr, similar to find_inline_attr and find_linkage_metas. This doesn't have much of an effect on the speed of #[cfg] stripping, despite hugely reducing the number of allocations performed; presumably most of the time is spent in the ast folder rather than doing attribute checks. Also fixes the Eq instance of MetaItem_ to correctly ignore spaces, so that `rustc --cfg 'foo(bar)'` now works.
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-35/+25
2013-07-17Clean-up tests after debug!/std-macros change.Huon Wilson-0/+3
The entire testsuite is converted to using info! rather than debug! because some depend on the code within the debug! being trans'd.
2013-07-04Remove standalone comparison functions in vec, make the trait impls better.Huon Wilson-1/+1
2013-06-29Great renaming: propagate throughout the rest of the codebaseCorey Richardson-5/+3
2013-06-28librustc: Remove the broken overloaded assign-ops from the language.Patrick Walton-3/+3
They evaluated the receiver twice. They should be added back with `AddAssign`, `SubAssign`, etc., traits.
2013-06-28librustc: Rename Const to FreezePatrick Walton-2/+2
2013-06-23vec: remove BaseIter implementationDaniel Micay-6/+6
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-21vec: rm old_iter implementations, except BaseIterDaniel Micay-1/+1
The removed test for issue #2611 is well covered by the `std::iterator` module itself. This adds the `count` method to `IteratorUtil` to replace `EqIter`.
2013-06-16remove unused importsHuon Wilson-1/+0
2013-06-16std: test-fixes, remove warnings, syntax highlighting for code examples.Huon Wilson-2/+0
2013-06-16std: convert str::{map,levdistance,subslice_offset} to methods.Huon Wilson-4/+2
The first two become map_chars and lev_distance. Also, remove a few allocations in rustdoc.
2013-06-15rustdoc: add syntax highlighting to item signatures.Huon Wilson-15/+13
This means that type definitions and function signatures have pretty colours. It uses the following template: ~~~ {.rust} <code> ~~~
2013-06-12std: convert str::replace to a method.Huon Wilson-1/+1
2013-06-10std: remove str::{connect,concat}*.Huon Wilson-3/+3
2013-06-10std: remove str::contains in favour of the methodHuon Wilson-46/+40
2013-06-10std: replace str::find_str* with a methodHuon Wilson-4/+4
2013-06-08remove deprecated vec::{is_empty, len} functionsDaniel Micay-2/+2
2013-06-04std::cell: Modernize constructorsPhilipp Brüschweiler-1/+1
Part of #3853
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-0/+4
2013-05-28Move checking for moves and initialization of local variables and patterns intoNiko Matsakis-15/+15
borrow checker and generalize what moves are allowed. Fixes a nasty bug or two in the pattern move checking code. Unifies dataflow code used for initialization and other things. First step towards once fns. Everybody wins. Fixes #4384. Fixes #4715. cc once fns (#2202), optimizing local moves (#5016).
2013-05-28Silence various warnings throughout test modulesAlex Crichton-4/+4
2013-05-26rustdoc: properly nest markup within enum variant lists (fixes #6605)Benjamin Herr-1/+38
This indents all but the first line of multi-line annotations for individual enum variants with four spaces so that pandoc will recognize everything as belonging to the same list item. Since that introduces `<p>` tags for some list items, I've gone ahead and inserted blank lines after each list item so that consistently get `<p>` tags for all `<li>`s documenting variants. It's a bit less compact now but still tolerable, I think.
2013-05-23cleanup warnings from librustdocErick Tryzelaar-57/+53
2013-05-22librustc: Add some missing `use core::prelude::*;` in the test casesPatrick Walton-0/+2
2013-05-22libextra: Rename the actual metadata names of libcore to libstd and libstd ↵Patrick Walton-0/+2
to libextra
2013-05-21Remove unnecessary allocations flagged by lint from rustdocSeo Sanghyeon-3/+3
2013-05-18replace old_iter::repeat with the Times traitDaniel Micay-2/+2
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-1/+1
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-13librustdoc: Remove old-style extern mods from rustdoc tests.Patrick Walton-10/+3
2013-05-09librustdoc: rename vec::each(var) to var.eachYoungmin Yoo-3/+3
2013-04-28make way for a new iter moduleDaniel Micay-2/+2
2013-04-27only use #[no_core] in libcoreDaniel Micay-5/+0
2013-04-16librustdoc: move tests into dedicated tests module.Huon Wilson-461/+457
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-46/+46
2013-03-26auto merge of #5555 : Kimundi/rust/str-dealloc-3, r=catamorphismbors-3/+5
- Most functions that used to return `~[~str]` for a list of substrings got turned into iterators over `&str` slices - Some cleanup of apis, docs and code layout
2013-03-26rustdoc: Tweak list styleBrian Anderson-0/+5
2013-03-26rustdoc: Add type bounds to implsBrian Anderson-4/+22
2013-03-26Fixed all use sites and testsMarvin Löbel-3/+5
2013-03-22librustc: Remove the `const` declaration form everywherePatrick Walton-2/+2
2013-03-22librustdoc: Remove `pure` from fuzzer and rustdoc.Patrick Walton-2/+2