summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2013-09-25auto merge of #9502 : brson/rust/fix-logo-icon, r=brsonbors-0/+0
2013-09-25auto merge of #9475 : alexcrichton/rust/rustdoc++, r=cmrbors-572/+6415
The commit messages are a good technical summary, a good visual summary (contrib is this version): Pub use statements now rendered. Notice how almost all components are also clickable! * http://static.rust-lang.org/doc/master/std/prelude/index.html * http://www.contrib.andrew.cmu.edu/~acrichto/doc/std/prelude/index.html Private things hidden by default (for at least some approximation of privacy). I hope to improve this once privacy is totally ironed out. * http://static.rust-lang.org/doc/master/std/hashmap/struct.HashMap.html * http://www.contrib.andrew.cmu.edu/~acrichto/doc/std/hashmap/struct.HashMap.html Unindentation now works properly: * http://static.rust-lang.org/doc/master/extra/getopts/index.html * http://www.contrib.andrew.cmu.edu/~acrichto/doc/extra/getopts/index.html Also sundown has massively reduced compilation time (of docs, not the of the crates)
2013-09-25Fix the rust logo iconBrian Anderson-0/+0
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-4/+3
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/+227
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: Improve comment strippingAlex Crichton-17/+42
There is less implicit removal of various comment styles, and it also removes extraneous stars occasionally found in docblock comments. It turns out that the bug for getops was just a differently formatted block. Closes #9425 Closes #9417
2013-09-25rustdoc: Enable various useful markdown extensionsAlex Crichton-1/+12
2013-09-25rustdoc: Change all code-blocks with a scriptAlex Crichton-386/+386
find src -name '*.rs' | xargs sed -i '' 's/~~~.*{\.rust}/```rust/g' find src -name '*.rs' | xargs sed -i '' 's/ ~~~$/ ```/g' find src -name '*.rs' | xargs sed -i '' 's/^~~~$/ ```/g'
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-25rustdoc: Add sundown to src/rt/Alex Crichton-0/+5454
This also starts compiling it in the same manner as linenoise, it's just bundled with librustrt directly, and we export just a few symbols out of it.
2013-09-25auto merge of #9345 : Dretch/rust/digest-result-bytes, r=cmrbors-14/+16
I would find this function useful.
2013-09-25auto merge of #9498 : catamorphism/rust/rust-path-hack-fix, r=cmr,metajackbors-30/+132
r? @metajack
2013-09-25auto merge of #9493 : huonw/rust/move-tuples, r=thestingerbors-102/+104
The old behaviour of `foo.n0()` is replaced by `foo.n0_ref().clone()`.
2013-09-25rustpkg: Search for packages correctly when using the rust_path_hackTim Chevalier-52/+109
Previously, any package would match any other package ID when searching using the rust_path_hack, so long as the directory had one or more crate files in it. Now, rustpkg checks that the parent directory matches the package ID. Closes #9273
2013-09-25std: Add an is_parent_of method to PathTim Chevalier-0/+45
2013-09-25auto merge of #9428 : alexcrichton/rust/llvm-zlib-and-libffi, r=pnkfelixbors-1/+1
This should help bring fewer dependencies in to the snapshots. Closes #9397
2013-09-25auto merge of #9491 : thestinger/rust/noreturn, r=huonwbors-0/+6
Closes #9317
2013-09-25auto merge of #9492 : pnkfelix/rust/fsk-syntax-visit-refactor-remainder, r=huonwbors-259/+250
r? anyone Part of #7081. Removed many unnecessary context arguments, turning them into visitors. Removed some @allocation. If this lands, then I think the only thing left that is unaddressed are: * the various lint visitors, and * middle/privacy.rs, which has `impl<'self> Visitor<&'self method_map> for PrivacyVisitor`
2013-09-25auto merge of #9455 : jesseray/rust/master, r=pnkfelixbors-0/+24
In "/src/libstd/char.rs", there are function and method definitions for `is_lowercase()`, `is_uppercase()`, `is_whitespace()`, etc. However, there was no function or method for control characters, so I added the `is_control()` function and method definitions along with documentation and tests. Running `./configure && make check` shows that all tests for `is_control()` pass.
2013-09-25auto merge of #9481 : jbclements/rust/minor-cleanup, r=cmrbors-18/+62
Small stuff... might as well get it into the tree. One new test case, some issue # cleanup, remove some unused imports.
2013-09-25Fold env into CheckItemRecursionVisitor.Felix S. Klock II-15/+17
2013-09-25Fold ErrorCheckVisitor into Liveness. Removed some @allocation.Felix S. Klock II-35/+31
2013-09-25Fold KindAnalysisVisitor into the Context. Removed unused current_item state.Felix S. Klock II-45/+38
2013-09-25std: Replace CloneableTuple with Tuple, which takes self by-val.Huon Wilson-102/+104
The old behaviour of `foo.n0()` is replaced by `foo.n0_ref().clone()`.
2013-09-25Move unchanging portions of Context over to the Visitor.Felix S. Klock II-67/+70
2013-09-25Move unchanging portions of context over to the Visitor.Felix S. Klock II-37/+32
2013-09-25Fold context into CalleeTranslationVisitor.Felix S. Klock II-11/+12
2013-09-25Fold context into TransItemVisitor.Felix S. Klock II-12/+14
2013-09-25Fold type_use.rs Context into its Visitor.Felix S. Klock II-21/+18
2013-09-25Move the linearly-updated flag state into the Visitor.Felix S. Klock II-16/+18
2013-09-25add `noreturn` attribute to functions returning !Daniel Micay-0/+6
Closes #9317
2013-09-25auto merge of #9432 : alexcrichton/rust/correct-item-visibility, r=pcwaltonbors-304/+639
This fixes private statics and functions from being usable cross-crates, along with some bad privacy error messages. This is a reopening of #8365 with all the privacy checks in privacy.rs instead of resolve.rs (where they should be anyway). These maps of exported items will hopefully get used for generating documentation by rustdoc Closes #8592
2013-09-25Fix run-pass tests to have 'pub fn main'Alex Crichton-143/+145
This is required by the check-fast target because each test is slurped up into a submodule.
2013-09-24auto merge of #9480 : brson/rust/noexit, r=thestingerbors-45/+45
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-24auto merge of #9470 : luqmana/rust/bba, r=brsonbors-20/+15
#8431 ~~@brson: do we need to bump up the cratemap version for this change?~~ Tis a no.
2013-09-24auto merge of #9335 : alexcrichton/rust/issue-7945, r=thestingerbors-21/+89
As documented in issue #7945, these literal identifiers are all accepted by rust today, but they should probably be disallowed (especially `'''`). This changes all escapable sequences to being *required* to be escaped. Closes #7945 I wanted to write the tests with more exact spans, but I think #9308 will be fixing that?
2013-09-24Disallow char literals which should be escapedAlex Crichton-21/+89
As documented in issue #7945, these literal identifiers are all accepted by rust today, but they should probably be disallowed (especially `'''`). This changes all escapable sequences to being *required* to be escaped. Closes #7945
2013-09-24auto merge of #9474 : thestinger/rust/internal, r=alexcrichtonbors-18/+19
the entry point is wrapped with what should be the only public function
2013-09-24Remove the annihilate function from the crate map. Fixes #8431Luqman Aden-20/+15
2013-09-24Don't use libc::exit. #9473Brian Anderson-45/+45
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-24added test case for tokenization of macro_rulesJohn Clements-0/+45