Commit Graph

40012 Commits

Author SHA1 Message Date
Manish Goregaokar
83a95b0de9 Rollup merge of #23527 - steveklabnik:gh16330, r=alexcrichton
Fixes #16330

My troff is probably poor, so make sure that all looks okay.
2015-03-20 12:43:14 +05:30
Manish Goregaokar
17f3f3e3e6 Rollup merge of #23526 - mbrubeck:uppercase, r=steveklabnik
`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-20 12:43:14 +05:30
Manish Goregaokar
2ac03bceb4 Rollup merge of #23518 - farcaller:fix_quote_method, r=eddyb
This fixes several use cases that were broken after #23265 landed.
2015-03-20 12:43:13 +05:30
Manish Goregaokar
c785e7e2a1 Rollup merge of #23510 - lgvz:makefile, r=Manishearth
The wiki doesn't seem to exist
2015-03-20 12:43:13 +05:30
Manish Goregaokar
90e7f472f7 Rollup merge of #23499 - mbrubeck:doc-edit, r=huonw
Multiple people have been suprised by this aspect of read_line's behavior, which is not obvious from the docs.
2015-03-20 12:43:13 +05:30
Manish Goregaokar
dbe084b5bf Rollup merge of #23447 - kjpgit:kjp/pointerexample, r=steveklabnik
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-20 12:43:12 +05:30
Manish Goregaokar
1ceb26b48c Rollup merge of #22631 - aepsil0n:issue-22098, r=aturon
Fixes #22098.
2015-03-20 12:43:12 +05:30
Manish Goregaokar
baf6b3a35d Rollup merge of #23531 - steveklabnik:gh21709, r=alexcrichton
Fixes #21709
2015-03-20 12:43:12 +05:30
Manish Goregaokar
17c1a46a7d Rollup merge of #23529 - steveklabnik:gh23426, r=alexcrichton
Fixes #23426
2015-03-20 12:43:11 +05:30
Manish Goregaokar
e2d32b74ec Rollup merge of #23525 - steveklabnik:test_tasks, r=alexcrichton
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-20 12:43:11 +05:30
Manish Goregaokar
3e433738fb Rollup merge of #23504 - alexcrichton:parse-error-not-unit, r=aturon
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-20 12:43:11 +05:30
Manish Goregaokar
4294327886 Rollup merge of #23254 - jbcrail:saturating-math-docs, r=steveklabnik
This was added for #23241.
2015-03-20 05:30:12 +05:30
Manish Goregaokar
97f03e7ad9 Rollup merge of #23489 - michaelwoerister:span-artihmetic-overflow-bug, 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-20 05:30:06 +05:30
Steve Klabnik
b4a72a403a Document environment variables
Fixes #16330
2015-03-19 19:19:29 -04:00
Steve Klabnik
3e3408de0f Comment on when ReadDir is Err
Fixes #23426
2015-03-19 18:21:39 -04:00
Steve Klabnik
109803f6d5 Remove incorrect statement about raw pointers.
Fixes #21709
2015-03-19 18:06:54 -04:00
Matt Brubeck
973b788f40 Update docs for ToUppercase/ToLowercase structs
`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-19 13:34:18 -07:00
Steve Klabnik
7cbc42849f RUST_TEST_TASKS -> RUST_TEST_THREADS
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-19 15:42:56 -04:00
bors
7f53b943f9 Auto merge of #23430 - alexcrichton:io-error, r=aturon
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-19 19:15:22 +00:00
Michael Woerister
1ea971ff87 Add test case for stable import of invalid span information. 2015-03-19 18:52:30 +01:00
Vladimir Pouzanov
bd1f562e19 Added missing impl_to_source! and impl_to_tokens! for TraitItem. 2015-03-19 17:04:03 +00:00
Vladimir Pouzanov
e3cde9783b Added missing impl_to_source! and impl_to_tokens! for ImplItem.
This fixes several use cases that were broken after #23265 landed.
2015-03-19 17:01:15 +00:00
Alex Crichton
dedac5eb3c std: Stablize io::ErrorKind
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-19 09:59:21 -07:00
bors
81e2396c76 Auto merge of #23213 - ipetkov:rustdoc-src-fix, r=huonw
* 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-19 16:42:16 +00:00
bors
08dd30d9eb Auto merge of #23498 - pcwalton:inline-police, r=cmr
r? @cmr
2015-03-19 13:10:37 +00:00
Eduard Bopp
5bfb5bab9a Allow Float::ldexp to be called as a method
Fixes #22098.
2015-03-19 14:00:00 +01:00
bors
d5408f376f Auto merge of #23507 - jbcrail:fix-comment-spelling, r=alexcrichton
I corrected misspelled comments in several crates.
2015-03-19 09:50:13 +00:00
Tero Hänninen
13fd0a1c68 Remove dead link to wiki in Makefile comments 2015-03-19 09:01:07 +02:00
Patrick Walton
01c125e548 libunicode: Partially inline the fast paths in character class checking. 2015-03-18 22:05:19 -07:00
Patrick Walton
dbd16a5b47 liballoc: Partially inline the refcount manipulation in the Arc
destructor.
2015-03-18 22:05:19 -07:00
Joseph Crail
857035ade7 Fix spelling errors in comments.
I corrected misspelled comments in several crates.
2015-03-19 00:48:08 -04:00
bors
0084f92302 Auto merge of #23502 - Manishearth:rollup, r=Manishearth 2015-03-19 03:19:08 +00:00
Manish Goregaokar
6f930b99b0 Rm unused feature 2015-03-19 08:49:39 +05:30
Manish Goregaokar
e8c1d771fc Rollup merge of #23428 - Manishearth:ast-doc, r=steveklabnik
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-19 08:49:38 +05:30
Manish Goregaokar
760f870add Rollup merge of #23497 - steveklabnik:gh21589, r=alexcrichton
Fixes #21589
2015-03-19 08:49:38 +05:30
Manish Goregaokar
f5c61a7899 Rollup merge of #23496 - steveklabnik:gh22309, r=nikomatsakis
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-19 08:49:37 +05:30
Manish Goregaokar
19b40f72bf Rollup merge of #23495 - pcwalton:inline-cell, r=cmr
This is a significant performance problem in Servo.

r? @brson
2015-03-19 08:49:37 +05:30
Manish Goregaokar
288acc755f Rollup merge of #23494 - mdinger:patch-1, r=steveklabnik
Typo
2015-03-19 08:49:36 +05:30
Manish Goregaokar
34378657ef Rollup merge of #23493 - steveklabnik:gh22927, r=alexcrichton
And do some formatting while I'm here.
2015-03-19 08:49:36 +05:30
Manish Goregaokar
30718dd44b Rollup merge of #23490 - jooert:master, r=steveklabnik
Update documentation to reflect #21824.

r? @steveklabnik
2015-03-19 08:49:35 +05:30
Manish Goregaokar
acc706db4b Rollup merge of #23483 - semarie:openbsd-threads, r=alexcrichton
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-19 08:49:35 +05:30
Manish Goregaokar
b06c9a01c1 Rollup merge of #23474 - nagisa:patch-1, r=steveklabnik
r? @steveklabnik
2015-03-19 08:49:35 +05:30
Manish Goregaokar
d6986c9ce9 Rollup merge of #23479 - tamird:fix-ios-build, r=aturon
r? @aturon
2015-03-19 08:49:34 +05:30
Manish Goregaokar
a32bb1bcc4 Rollup merge of #23475 - nikomatsakis:closure-ret-syntax, r=acrichto
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-19 08:49:34 +05:30
Alex Crichton
f2e3c7469b std: Stabilize FromStr implementations in std::net
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-18 20:10:15 -07:00
Manish Goregaokar
c20c652a92 Space and punctuation fixes 2015-03-19 08:24:43 +05:30
Steve Klabnik
70bf02994a Note ::foo::bar() in the crates guide
Fixes #21589
2015-03-19 08:24:42 +05:30
Manish Goregaokar
d943d9b801 Address huon's comments 2015-03-19 08:24:42 +05:30
Steve Klabnik
f8c63d00e2 Document include!
Fixes #22309
2015-03-19 08:24:41 +05:30
Patrick Walton
592e7ffdf8 core: Inline most cell methods.
This is a significant performance problem in Servo.
2015-03-19 08:24:40 +05:30