about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2015-01-23Auto merge of #21453 - Stebalien:exactsize, r=alexcrichtonbors-4/+72
Specifically: * Peekable * ByRef * Skip * Take * Fuse Fixes #20547
2015-01-23Auto merge of #21382 - tshepang:improve-iter-docs, r=alexcrichtonbors-236/+263
2015-01-23Auto merge of #21374 - dgrunwald:range-notation-fixes, r=nikomatsakisbors-23/+80
This PR is intended as alternative to #20958. It fixes the same grammar inconsistencies, but does not increase the operator precedence of `..`, leaving it at the same level as the assignment operator. For previous discussion, see #20811 and #20958. Grammar changes: * allow `for _ in 1..i {}` (fixes #20241) * allow `for _ in 1.. {}` as infinite loop * prevent use of range notation in contexts where only operators of high precedence are expected (fixes #20811) Parser code cleanup: * remove `RESTRICTION_NO_DOTS` * make `AS_PREC` const and follow naming convention * make `min_prec` inclusive r? nikomatsakis
2015-01-23Auto merge of #20221 - liigo:rustdoc-sidebar-tooltips-v3, r=alexcrichtonbors-15/+130
This pull request add tooltips to most links of sidebar. The tooltips display "summary line" of items' document. Some lengthy/annoying raw markdown code are eliminated, such as links and headers. - `[Rust](http://rust-lang.org)` displays as `Rust` (no URLs) - `# header` displays as `header` (no `#`s) Some inline spans, e.g. ``` `code` ``` and ```*emphasis*```, are kept as they are, for better readable. I've make sure `&` `'` `"` `<` and `>` are properly displayed in tooltips, for example, `&'a Option<T>`. Online preview: http://liigo.com/tmp/tooltips/std/index.html @alexcrichton @steveklabnik since you have reviewed my previous ([v1](https://github.com/rust-lang/rust/pull/13014),[v2](https://github.com/rust-lang/rust/pull/16448)) PRs of this serise, which have been closed for technical reasons. Thank you.
2015-01-23iter: miscellaneous improvementsTshepang Lekhonkhobe-236/+263
There are doc improvements as well as these conversions: - int/uint -> isize/usize - u/i -> us/is
2015-01-22Rollup merge of #21517 - SeanTAllen:master, r=steveklabnikSteve Klabnik-8/+8
Lifetime elision documentation was reference a previously existing function that doesn't exist. After talking with Steve Klabnik, I confirmed the correct function to be referenced and updated documentation accordingly.
2015-01-22Rollup merge of #21516 - steveklabnik:document_box, r=alexcrichtonSteve Klabnik-11/+68
2015-01-22Rollup merge of #21500 - richo:power-fixups, r=alexcrichtonSteve Klabnik-12/+12
When I wrote this code, my janky shim to verify the constants didn't work as intended. This fixes everything I've run into since merge, which is hopefully everything.
2015-01-22Rollup merge of #21496 - ColonelJ:paatch, r=alexcrichtonSteve Klabnik-0/+3
Make compiletest set an environment variable so that on Windows 32-bit test executables containing certain substrings (e.g. 'install', 'setup', 'update', 'patch') are not blocked by UAC's Installer Detection Technology.
2015-01-22Rollup merge of #21484 - steveklabnik:connect_docs, r=alexcrichtonSteve Klabnik-2/+21
2015-01-22Rollup merge of #21479 - steveklabnik:rustdoc_to_book, r=alexcrichtonSteve Klabnik-294/+298
Fixes #21430
2015-01-22Rollup merge of #21477 - steveklabnik:gh21440, r=alexcrichtonSteve Klabnik-1/+9
Fixes #21440"
2015-01-22Rollup merge of #21472 - steveklabnik:gh21469, r=huonwSteve Klabnik-0/+4
Fixes #21469.
2015-01-22Rollup merge of #21471 - michaelwoerister:associated-types, r=alexcrichtonSteve Klabnik-1/+159
This should fix issue #20797 (but I don't want to close it automatically). As the actual fix is very small this would be a perfect candidate for a rollup.
2015-01-22Rollup merge of #21450 - alfie:book2, r=steveklabnikSteve Klabnik-2/+1
Compiling won't produce an executable just yet because (as stated in the next paragraph) there are errors. By removing this sentance, the reader won't get confused when they expect a successful compile i.e. if they don't read ahead one paragraph, they are going to be checking their code and wondering why it's not compiling.
2015-01-22Rollup merge of #21373 - angst7:pointer_doc_1, r=steveklabnikSteve Klabnik-4/+4
Updated incorrect error messages, and removed explicit return statements from example code.
2015-01-22Rollup merge of #21325 - nagisa:thread-panicking, r=steveklabnikSteve Klabnik-2/+2
Previous wording wasn’t clear about its actual behaviour. It could be interpreted as answering either: * Can current thread panic? * Is current thread unwinding because of panic? r? @steveklabnik
2015-01-22Rollup merge of #21217 - Gankro:docadoca, r=steveklabnikSteve Klabnik-2/+52
Not sure on what *exactly* should be said here, but I think this is the most important bit. This PR also establishes conventions for describing performance minimally. I suggest to describe preformance for individual methods we use a `# Performance` heading. Not sure if we should have ``` # Performance: O(1) details details ``` or ``` # Performance: O(1) details details ``` Since I think most methods don't need discussion, the former seems more resonable. But it's kind of weird to have info "in" the heading. r? @steveklabnik
2015-01-22Rollup merge of #21091 - steveklabnik:add_attribute_docs, r=huonwSteve Klabnik-0/+12
Fixes #6444 I need some help with the macro docs here, as I couldn't figure it out. @kmcallister @eddyb or someone else?
2015-01-22Rollup merge of #21056 - steveklabnik:return_strings, r=sfacklerSteve Klabnik-0/+284
When we moved over to the book, we lost this.
2015-01-22Document remaining attributes and macrosSteve Klabnik-0/+12
Fixes #6444
2015-01-22Beef up docs for Box<T>Steve Klabnik-11/+68
2015-01-22Fix some grammar inconsistencies for the '..' range notation.Daniel Grunwald-23/+80
Grammar changes: * allow 'for _ in 1..i {}' (fixes #20241) * allow 'for _ in 1.. {}' as infinite loop * prevent use of range notation in contexts where only operators of high precedence are expected (fixes #20811) Parser code cleanup: * remove RESTRICTION_NO_DOTS * make AS_PREC const and follow naming convention * make min_prec inclusive
2015-01-22Return the String guide to its former glory.Steve Klabnik-0/+284
When we moved over to the book, we lost this.
2015-01-22Reference correct fn during lifetime ellisionSean T Allen-8/+8
2015-01-22Auto merge of #21078 - js-ojus:master, r=steveklabnikbors-8/+35
* Include an illustration of a function that accepts two closures.
2015-01-22Auto merge of #21187 - oli-obk:feature/hint_struct_field_access, r=alexcrichtonbors-1/+112
rebase and fix of #19267
2015-01-21powerpc: Fix liblibcRicho Healey-12/+12
When I wrote this code, my janky shim to verify the constants didn't work as intended. This fixes everything I've run into since merge, which is hopefully everything.
2015-01-21Make diagnostic ordering deterministicAlex Crichton-9/+11
2015-01-22Make compiletest set an environment variable so that on Windows 32-bit test ↵KernelJ-0/+3
executables containing certain substrings (e.g. 'install', 'setup', 'update', 'patch') are not blocked by UAC's Installer Detection Technology.
2015-01-21Add test cases for ExactSizeIterator implsSteven Allen-4/+57
ByRef is not tested included because it is a trivial pass through.
2015-01-21add doc examples for connect/concatSteve Klabnik-2/+21
2015-01-21Revert "Use assume to inform the optimiser about refcount invariants"Alex Crichton-13/+2
This reverts commit a729a404945de10f99e2530a5c28952996532b29.
2015-01-21Revert "Add assumptions that the pointer is non-null"Alex Crichton-16/+2
This reverts commit 9bbfd681c9fa47f462a89e8f5eedd3fa2a5de2e7.
2015-01-21Revert "Add more explanation for why the assumes are there"Alex Crichton-9/+1
This reverts commit a7525bc4c8eb8507a5c248d29286e77133217cf3.
2015-01-21More test fixes and rebase conflictsAlex Crichton-3/+3
2015-01-21Move rustdoc.md into the bookSteve Klabnik-294/+298
Fixes #21430
2015-01-21rollup merge of #20179: eddyb/blind-itemsAlex Crichton-1521/+1099
Conflicts: src/librustc/diagnostics.rs src/librustdoc/clean/mod.rs src/librustdoc/html/format.rs src/libsyntax/parse/parser.rs
2015-01-21Improve RwLock::new's docsSteve Klabnik-1/+9
Fixes #21440"
2015-01-21rollup merge of #21258: aturon/stab-3-indexAlex Crichton-430/+353
Conflicts: src/libcore/ops.rs src/librustc_typeck/astconv.rs src/libstd/io/mem.rs src/libsyntax/parse/lexer/mod.rs
2015-01-21rollup merge of #21252: nikomatsakis/assoc-type-ice-hunt-take-2Alex Crichton-2/+384
Project region bounds out of the trait when deciding whether a projection type outlives a given regions. Fixes #20890. Fixes #21150.
2015-01-21rollup merge of #20642: michaelwoerister/sane-source-locations-pt1Alex Crichton-405/+889
Conflicts: src/librustc_trans/trans/debuginfo.rs
2015-01-21Move regression test for #20971 into run-fail, since it panics.Niko Matsakis-1/+3
2015-01-21Fix type inference problems in tests and docsAaron Turon-23/+23
2015-01-21Test fixes and rebase conflictsAlex Crichton-42/+7
2015-01-21Deny imports after non-item statements.Eduard Burtescu-3/+26
2015-01-21Added another test with success local-item shadowingEduard Burtescu-0/+19
2015-01-21Added some tests for arbitrary ordered view itemsMarvin Löbel-0/+138
2015-01-21tests: fix fallout of merging ast::ViewItem into ast::Item.Eduard Burtescu-47/+14
2015-01-21Explain that RefCell is single-threaded.Steve Klabnik-0/+4
Fixes #21469.