summary refs log tree commit diff
path: root/src/librustdoc
AgeCommit message (Collapse)AuthorLines
2013-09-25rustdoc: Fix merge falloutAlex Crichton-1/+1
2013-09-25rustdoc: Fix an unindentation bug when collapsingAlex Crichton-1/+1
Turns out eagerly trimming comes back to bite you :(
2013-09-25rustdoc: Collapse before unindentingAlex Crichton-3/+2
Doesn't make much sense to unindent each line individually and *then* collapse them all together.
2013-09-25rustdoc: Reduce ambiguity with clean::TypeAlex Crichton-22/+16
The "Unresolved" variant could be completely removed becuase it turns out that the interim state only very briefly lives.
2013-09-25rustdoc: Strip hidden docs by default.Alex Crichton-0/+1
2013-09-25rustdoc: Highlight function namesAlex Crichton-2/+3
Closes #9460
2013-09-25rustdoc: Start rendering variants (redirect to enum)Alex Crichton-1/+12
This allows reasonable behavior when an enum is clicked in an import.
2013-09-25rustdoc: Linkify all reexports.Alex Crichton-34/+199
This way each component of a reexport path is click-able to the destination that it's referencing.
2013-09-25rustdoc: Implement stripping based on privacyAlex Crichton-5/+91
This will probably need to get tweaked once the privacy rules have been fully agreed on, but for now this has all of the infrastructure necessary for filtering out private items. Closes #9410
2013-09-25rustdoc: Emit purity to function dox for traitsAlex Crichton-13/+21
Closes #3804
2013-09-25rustdoc: Add the ability to list all passesAlex Crichton-34/+45
In doing so, also remove the collapse-privacy pass because it's a little over-zealous and may not be right 100% of the time (not used right now as well)
2013-09-25rustdoc: Enable various useful markdown extensionsAlex Crichton-1/+12
2013-09-25rustdoc: Use sundown for markdown highlightingAlex Crichton-52/+103
This takes rendering times of documentation down from 30s to 0.5s. Kinda sad that none of the parallelism is needed, but oh well! Closes #7380 cc #3546
2013-09-24Don't use libc::exit. #9473Brian Anderson-12/+8
This can cause unexpected errors in the runtime when done while scheduler threads are still initializing. Required some restructuring of the main_args functions in our libraries.
2013-09-23librustpkg: Fix diagnostic invocation syntax in librustdoc, librusti, and ↵Patrick Walton-5/+8
librustpkg.
2013-09-22Place *all* rustdoc output in doc/{crate}Alex Crichton-16/+11
2013-09-22rustdoc: Out with the old, in with the newAlex Crichton-6567/+4859
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-09-21Update version numbers to 0.8Brian Anderson-1/+1
2013-09-20auto merge of #9320 : ↵bors-3/+1
chris-morgan/rust/unreachable-macro-part-two-of-two-containing-the-destruction-of-the-unreachable-function, r=alexcrichton This is the second of two parts of #8991, now possible as a new snapshot has been made. (The first part implemented the unreachable!() macro; it was #8992, 6b7b8f2682.) ``std::util::unreachable()`` is removed summarily; any code which used it should now use the ``unreachable!()`` macro. Closes #9312. Closes #8991.
2013-09-19Modernize extra::future APISteven Fackler-3/+3
2013-09-19Turned extra::getopts functions into methodsMarvin Löbel-5/+5
Some minor api and doc adjustments
2013-09-19Replace unreachable() calls with unreachable!().Chris Morgan-3/+1
This is the second of two parts of #8991, now possible as a new snapshot has been made. (The first part implemented the unreachable!() macro; it was #8992, 6b7b8f2682.) ``std::util::unreachable()`` is removed summarily; any code which used it should now use the ``unreachable!()`` macro. Closes #9312. Closes #8991.
2013-09-16switch Drop to `&mut self`Daniel Micay-1/+1
2013-09-12std: Rename {Option,Result}::chain{,_err}* to {and_then,or_else}Erick Tryzelaar-7/+7
2013-09-12std: rename Option::unwrap_or_default() to unwrap_or()Erick Tryzelaar-2/+2
2013-09-10auto merge of #9088 : nikomatsakis/rust/issue-6304-AST-tree-not-DAG, ↵bors-0/+14
r=catamorphism Ensures that each AST node has a unique id. Fixes numerous bugs in macro expansion and deriving. Add two representative tests. Fixes #7971 Fixes #6304 Fixes #8367 Fixes #8754 Fixes #8852 Fixes #2543 Fixes #7654
2013-09-10Delay assignment of node ids until after expansion. Ensures that each AST nodeNiko Matsakis-0/+14
has a unique id. Fixes numerous bugs in macro expansion and deriving. Add two representative tests. Fixes #7971 Fixes #6304 Fixes #8367 Fixes #8754 Fixes #8852 Fixes #2543 Fixes #7654
2013-09-10std::vec: Change fn unzip to take an iterator argumentblake2-ppc-1/+1
Remove unzip_slice since it's redundant. Old unzip is equivalent to the `|x| unzip(x.move_iter())`
2013-09-05Rename str::from_bytes to str::from_utf8, closes #8985Florian Hahn-2/+2
2013-09-02Renamed syntax::ast::ident -> IdentMarvin Löbel-1/+1
2013-08-29Revert "auto merge of #8645 : alexcrichton/rust/issue-6436-run-non-blocking, ↵Brian Anderson-4/+4
r=brson" This reverts commit b8d1fa399402c71331aefd634d710004e00b73a6, reversing changes made to f22b4b169854c8a4ba86c16ee43327d6bcf94562. Conflicts: mk/rt.mk src/libuv
2013-08-27Implement process bindings to libuvAlex Crichton-4/+4
Closes #6436
2013-08-23removed os::set_args, closing #8325Do Nhat Minh-0/+3
removed pub on real_args, changed test to use args
2013-08-13Remove unused automatic cfg bindings Fixes #7169Nick Desaulniers-6/+5
2013-08-12Forbid pub/priv where it has no effectAlex Crichton-4/+4
Closes #5495
2013-08-10std: Transform.find_ -> .findErick Tryzelaar-6/+6
2013-08-10std: Rename Iterator.transform -> .mapErick Tryzelaar-21/+21
cc #5898
2013-08-10Mass rename of .consume{,_iter}() to .move_iter()Erick Tryzelaar-1/+1
cc #7887
2013-08-08Fix more priv falloutCorey Richardson-3/+3
2013-08-07Change const to staticSangeun Kim-43/+43
2013-08-07Change Freeze to StaticSangeun Kim-3/+3
2013-08-07auto merge of #8294 : erickt/rust/map-move, r=bblumbors-7/+7
According to #7887, we've decided to use the syntax of `fn map<U>(f: &fn(&T) -> U) -> U`, which passes a reference to the closure, and to `fn map_move<U>(f: &fn(T) -> U) -> U` which moves the value into the closure. This PR adds these `.map_move()` functions to `Option` and `Result`. In addition, it has these other minor features: * Replaces a couple uses of `option.get()`, `result.get()`, and `result.get_err()` with `option.unwrap()`, `result.unwrap()`, and `result.unwrap_err()`. (See #8268 and #8288 for a more thorough adaptation of this functionality. * Removes `option.take_map()` and `option.take_map_default()`. These two functions can be easily written as `.take().map_move(...)`. * Adds a better error message to `result.unwrap()` and `result.unwrap_err()`.
2013-08-07core: option.map_consume -> option.map_moveErick Tryzelaar-7/+7
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-34/+34
- 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-10/+10
this has been replaced by `for`
2013-08-02librustc: Disallow "unsafe" for external functionsPatrick Walton-4/+15
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-12/+10
2013-07-29New naming convention for ast::{node_id, local_crate, crate_node_id, ↵Michael Woerister-7/+7
blk_check_mode, ty_field, ty_method}