about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2015-03-20Auto merge of #23537 - steveklabnik:gh22551, r=alexcrichtonbors-3/+28
Fixes #22551 ('grammar' wasn't really used in the chapter at all)
2015-03-20Add AST to the glossarySteve Klabnik-3/+28
Fixes #22551
2015-03-20Auto merge of #23522 - steveklabnik:gh22518, r=Manishearthbors-894/+0
When investigating #22518, this chapter is really the only part that has `rand`, and the rest still works without it. We should have some examples like this, but for now, it's more important to be right than perfect.
2015-03-20Rollup merge of #23534 - steveklabnik:remove_sched_threads, r=alexcrichtonManish Goregaokar-26/+8
As @alexcrichton says, this was really a libgreen thing, and isn't relevant now. As this removes a technically-public function, this is a [breaking-change]
2015-03-20Rollup merge of #23532 - steveklabnik:gh22002, r=alexcrichtonManish Goregaokar-0/+2
Fixes #22002
2015-03-20Rollup merge of #23526 - mbrubeck:uppercase, r=steveklabnikManish Goregaokar-2/+4
`uppercase` and `lowercase` are currently named `to_uppercase` and `to_lowercase`. Also adds a link to the `char` type documentation which has much more detail on these iterators.
2015-03-20Rollup merge of #23518 - farcaller:fix_quote_method, r=eddybManish Goregaokar-0/+12
This fixes several use cases that were broken after #23265 landed.
2015-03-20Rollup merge of #23499 - mbrubeck:doc-edit, r=huonwManish Goregaokar-1/+2
Multiple people have been suprised by this aspect of read_line's behavior, which is not obvious from the docs.
2015-03-20Rollup merge of #23447 - kjpgit:kjp/pointerexample, r=steveklabnikManish Goregaokar-13/+15
These two borrowing examples were confusing/misleading. This changes it to more clearly show how you _can_ borrow a box, and also uses & instead of &*.
2015-03-20Rollup merge of #22631 - aepsil0n:issue-22098, r=aturonManish Goregaokar-9/+9
Fixes #22098.
2015-03-20Rollup merge of #23531 - steveklabnik:gh21709, r=alexcrichtonManish Goregaokar-4/+0
Fixes #21709
2015-03-20Rollup merge of #23529 - steveklabnik:gh23426, r=alexcrichtonManish Goregaokar-0/+5
Fixes #23426
2015-03-20Rollup merge of #23525 - steveklabnik:test_tasks, r=alexcrichtonManish Goregaokar-9/+9
We don't use 'task' anymore, these are now threads. Because this changes the name of a compiler option, this is [breaking-change] I think this is small enough to not need an RFC, nor a period of accepting both. If we want to take both for a while, I can change the patch.
2015-03-20Rollup merge of #23504 - alexcrichton:parse-error-not-unit, r=aturonManish Goregaokar-11/+17
The IP and socket address types all had `FromStr` implemented but the implementations were not marked stable, nor was the error type returned ready to be properly stabilized. This commit marks the implementations of `FromStr` as stable and also renamed the `ParseError` structure to `AddrParseError`. The error is now also an opaque structure that cannot be constructed outside the standard library. cc #22949 [breaking-change]
2015-03-20Remove rt::default_sched_threads and RUST_THREADS.Steve Klabnik-26/+8
As @alexcrichton says, this was really a libgreen thing, and isn't relevant now. As this removes a technically-public function, this is a [breaking-change] Conflicts: src/libtest/lib.rs
2015-03-20Rollup merge of #23254 - jbcrail:saturating-math-docs, r=steveklabnikManish Goregaokar-0/+20
This was added for #23241.
2015-03-20Rollup merge of #23489 - michaelwoerister:span-artihmetic-overflow-bug, ↵Manish Goregaokar-0/+82
r=alexcrichton This should solve issues #23115, #23469, and #23407. As the title says, this is just a workaround. The underlying problem is that macro expansion can produce invalid spans. I've opened issue #23480 so we don't forget about that.
2015-03-19Comment on when ReadDir is ErrSteve Klabnik-0/+5
Fixes #23426
2015-03-19Reference Drop in FFI chapterSteve Klabnik-0/+2
Fixes #22002
2015-03-19Remove incorrect statement about raw pointers.Steve Klabnik-4/+0
Fixes #21709
2015-03-19Update docs for ToUppercase/ToLowercase structsMatt Brubeck-2/+4
`uppercase` and `lowercase` are currently named `to_uppercase` and `to_lowercase`. Also adds a link to the `char` type documentation which has much more detail on these iterators.
2015-03-19RUST_TEST_TASKS -> RUST_TEST_THREADSSteve Klabnik-9/+9
We don't use 'task' anymore, these are now threads. Because this changes the name of a compiler option, this is [breaking-change]
2015-03-19Remove the Guessing Game from the bookSteve Klabnik-894/+0
Fixes #22518
2015-03-19Auto merge of #23430 - alexcrichton:io-error, r=aturonbors-52/+83
This commit stabilizes the `ErrorKind` enumeration which is consumed by and generated by the `io::Error` type. The purpose of this type is to serve as a cross-platform namespace to categorize errors into. Two specific issues are addressed as part of this stablization: * The naming of each variant was scrutinized and some were tweaked. An example is how `FileNotFound` was renamed to simply `NotFound`. These names should not show either a Unix or Windows bias and the set of names is intended to grow over time. For now the names will likely largely consist of those errors generated by the I/O APIs in the standard library. * The mapping of OS error codes onto kinds has been altered. Coalescing no longer occurs (multiple error codes become one kind). It is intended that each OS error code, if bound, corresponds to only one `ErrorKind`. The current set of error kinds was expanded slightly to include some networking errors. This commit also adds a `raw_os_error` function which returns an `Option<i32>` to extract the underlying raw error code from the `Error`. Closes #16666 [breaking-change]
2015-03-19Add test case for stable import of invalid span information.Michael Woerister-0/+67
2015-03-19Added missing impl_to_source! and impl_to_tokens! for TraitItem.Vladimir Pouzanov-0/+6
2015-03-19Added missing impl_to_source! and impl_to_tokens! for ImplItem.Vladimir Pouzanov-0/+6
This fixes several use cases that were broken after #23265 landed.
2015-03-19std: Stablize io::ErrorKindAlex Crichton-52/+83
This commit stabilizes the `ErrorKind` enumeration which is consumed by and generated by the `io::Error` type. The purpose of this type is to serve as a cross-platform namespace to categorize errors into. Two specific issues are addressed as part of this stablization: * The naming of each variant was scrutinized and some were tweaked. An example is how `FileNotFound` was renamed to simply `NotFound`. These names should not show either a Unix or Windows bias and the set of names is intended to grow over time. For now the names will likely largely consist of those errors generated by the I/O APIs in the standard library. * The mapping of OS error codes onto kinds has been altered. Coalescing no longer occurs (multiple error codes become one kind). It is intended that each OS error code, if bound, corresponds to only one `ErrorKind`. The current set of error kinds was expanded slightly to include some networking errors. This commit also adds a `raw_os_error` function which returns an `Option<i32>` to extract the underlying raw error code from the `Error`.
2015-03-19Auto merge of #23213 - ipetkov:rustdoc-src-fix, r=huonwbors-5/+99
* rustdoc was doubly appending the file name to the path of where to generate the source files, meanwhile, the [src] hyperlinks were not * Added a flag to rustdoc::html::render::clean_srcpath to ignore the last path component, i.e. the file name itself to prevent the issue * This also avoids creating directories with the same name as source files, and it makes sure the link to `main.css` is correct as well. Fixes #23192
2015-03-19Auto merge of #23498 - pcwalton:inline-police, r=cmrbors-8/+450
r? @cmr
2015-03-19Allow Float::ldexp to be called as a methodEduard Bopp-9/+9
Fixes #22098.
2015-03-19Auto merge of #23507 - jbcrail:fix-comment-spelling, r=alexcrichtonbors-12/+12
I corrected misspelled comments in several crates.
2015-03-18libunicode: Partially inline the fast paths in character class checking.Patrick Walton-0/+432
2015-03-18liballoc: Partially inline the refcount manipulation in the ArcPatrick Walton-8/+18
destructor.
2015-03-19Fix spelling errors in comments.Joseph Crail-12/+12
I corrected misspelled comments in several crates.
2015-03-19Rm unused featureManish Goregaokar-1/+0
2015-03-19Rollup merge of #23428 - Manishearth:ast-doc, r=steveklabnikManish Goregaokar-15/+42
I often have to run `ast-json` or look into the pretty-printer source to figure out what the fields of an AST enum mean. I've tried to document most of what I know (and some semi-obvious stuff). r? @steveklabnik f? @eddyb
2015-03-19Rollup merge of #23497 - steveklabnik:gh21589, r=alexcrichtonManish Goregaokar-0/+5
Fixes #21589
2015-03-19Rollup merge of #23496 - steveklabnik:gh22309, r=nikomatsakisManish Goregaokar-0/+14
Fixes #22309 I am pretty sure that this is the right way to do this, given the other macros, but I'm not 100% sure.
2015-03-19Rollup merge of #23495 - pcwalton:inline-cell, r=cmrManish Goregaokar-0/+21
This is a significant performance problem in Servo. r? @brson
2015-03-19Rollup merge of #23494 - mdinger:patch-1, r=steveklabnikManish Goregaokar-1/+1
Typo
2015-03-19Rollup merge of #23493 - steveklabnik:gh22927, r=alexcrichtonManish Goregaokar-27/+35
And do some formatting while I'm here.
2015-03-19Rollup merge of #23490 - jooert:master, r=steveklabnikManish Goregaokar-9/+9
Update documentation to reflect #21824. r? @steveklabnik
2015-03-19Rollup merge of #23483 - semarie:openbsd-threads, r=alexcrichtonManish Goregaokar-4/+2
unbreak openbsd/bitrig build - remove `pub` from `struct` (error: visibility has no effect inside functions) - move `pthread_main_np` into function r? @alexcrichton
2015-03-19Rollup merge of #23474 - nagisa:patch-1, r=steveklabnikManish Goregaokar-1/+1
r? @steveklabnik
2015-03-19Rollup merge of #23479 - tamird:fix-ios-build, r=aturonManish Goregaokar-3/+2
r? @aturon
2015-03-19Rollup merge of #23475 - nikomatsakis:closure-ret-syntax, r=acrichtoManish Goregaokar-22/+52
Require braces when a closure has an explicit return type. This is a [breaking-change]: instead of a closure like `|| -> i32 22`, prefer `|| -> i32 { 22 }`. Fixes #23420.
2015-03-18std: Stabilize FromStr implementations in std::netAlex Crichton-11/+17
The IP and socket address types all had `FromStr` implemented but the implementations were not marked stable, nor was the error type returned ready to be properly stabilized. This commit marks the implementations of `FromStr` as stable and also renamed the `ParseError` structure to `AddrParseError`. The error is now also an opaque structure that cannot be constructed outside the standard library. cc #22949 [breaking-change]
2015-03-19Space and punctuation fixesManish Goregaokar-14/+41
2015-03-19Note ::foo::bar() in the crates guideSteve Klabnik-0/+5
Fixes #21589