-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rolling up PRs in the queue #23922
Rolling up PRs in the queue #23922
Commits on Mar 25, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 62645a1 - Browse repository at this point
Copy the full SHA 62645a1View commit details
Commits on Mar 26, 2015
-
std: Stabilize parts of std::os::platform::io
This commit stabilizes the platform-specific `io` modules, specifically around the traits having to do with the raw representation of each object on each platform. Specifically, the following material was stabilized: * `AsRaw{Fd,Socket,Handle}` * `RawFd` (renamed from `Fd`) * `RawHandle` (renamed from `Handle`) * `RawSocket` (renamed from `Socket`) * `AsRaw{Fd,Socket,Handle}` implementations * `std::os::{unix, windows}::io` The following material was added as `#[unstable]`: * `FromRaw{Fd,Socket,Handle}` * Implementations for various primitives There are a number of future improvements that are possible to make to this module, but this should cover a good bit of functionality desired from these modules for now. Some specific future additions may include: * `IntoRawXXX` traits to consume the raw representation and cancel the auto-destructor. * `Fd`, `Socket`, and `Handle` abstractions that behave like Rust objects and have nice methods for various syscalls. At this time though, these are considered backwards-compatible extensions and will not be stabilized at this time. This commit is a breaking change due to the addition of `Raw` in from of the type aliases in each of the platform-specific modules. [breaking-change]
Configuration menu - View commit details
-
Copy full SHA for 6370f29 - Browse repository at this point
Copy the full SHA 6370f29View commit details
Commits on Mar 30, 2015
-
Configuration menu - View commit details
-
Copy full SHA for df65f59 - Browse repository at this point
Copy the full SHA df65f59View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a89d69 - Browse repository at this point
Copy the full SHA 2a89d69View commit details -
std: Stabilize the rest of Any/BoxAny
This commit stabilizes the following APIs: * `TypeId::of` - now that it has an `Any` bound it's ready to be stable. * `Box<Any>::downcast` - now that an inherent impl on `Box<Any>` as well as `Box<Any+Send>` is allowed the `BoxAny` trait is removed in favor of these inherent methods. This is a breaking change due to the removal of the `BoxAny` trait, but consumers can simply remove imports to fix crates. [breaking-change]
Configuration menu - View commit details
-
Copy full SHA for f19e763 - Browse repository at this point
Copy the full SHA f19e763View commit details
Commits on Mar 31, 2015
-
convert: remove FromError, use From<E> instead
This removes the FromError trait, since it can now be expressed using the new convert::Into trait. All implementations of FromError<E> where changed to From<E>, and `try!` was changed to use From::from instead. Because this removes FromError, it is a breaking change, but fixing it simply requires changing the words `FromError` to `From`, and `from_error` to `from`. [breaking-change]
Configuration menu - View commit details
-
Copy full SHA for e17f4fc - Browse repository at this point
Copy the full SHA e17f4fcView commit details -
Lex binary and octal literals more eagerly.
Previously 0b12 was considered two tokens, 0b1 and 2, as 2 isn't a valid base 2 digit. This patch changes that to collapse them into one (and makes `0b12` etc. an error: 2 isn't a valid base 2 digit). This may break some macro invocations of macros with `tt` (or syntax extensions) that rely on adjacent digits being separate tokens and hence is a [breaking-change] The fix is to separate the tokens, e.g. `0b12` -> `0b1 2`. cc rust-lang/rfcs#879
Configuration menu - View commit details
-
Copy full SHA for 606f50c - Browse repository at this point
Copy the full SHA 606f50cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a78d383 - Browse repository at this point
Copy the full SHA a78d383View commit details -
Configuration menu - View commit details
-
Copy full SHA for edc096d - Browse repository at this point
Copy the full SHA edc096dView commit details -
Configuration menu - View commit details
-
Copy full SHA for fe8a660 - Browse repository at this point
Copy the full SHA fe8a660View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5872ae4 - Browse repository at this point
Copy the full SHA 5872ae4View commit details -
rollup merge of rust-lang#23549: aturon/stab-num
This commit stabilizes the `std::num` module: * The `Int` and `Float` traits are deprecated in favor of (1) the newly-added inherent methods and (2) the generic traits available in rust-lang/num. * The `Zero` and `One` traits are reintroduced in `std::num`, which together with various other traits allow you to recover the most common forms of generic programming. * The `FromStrRadix` trait, and associated free function, is deprecated in favor of inherent implementations. * A wide range of methods and constants for both integers and floating point numbers are now `#[stable]`, having been adjusted for integer guidelines. * `is_positive` and `is_negative` are renamed to `is_sign_positive` and `is_sign_negative`, in order to address rust-lang#22985 * The `Wrapping` type is moved to `std::num` and stabilized; `WrappingOps` is deprecated in favor of inherent methods on the integer types, and direct implementation of operations on `Wrapping<X>` for each concrete integer type `X`. Closes rust-lang#22985 Closes rust-lang#21069 [breaking-change] r? @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for 5d0beb7 - Browse repository at this point
Copy the full SHA 5d0beb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 03c2f33 - Browse repository at this point
Copy the full SHA 03c2f33View commit details -
Stabilize
std::convert
and related code* Marks `#[stable]` the contents of the `std::convert` module. * Added methods `PathBuf::as_path`, `OsString::as_os_str`, `String::as_str`, `Vec::{as_slice, as_mut_slice}`. * Deprecates `OsStr::from_str` in favor of a new, stable, and more general `OsStr::new`. * Adds unstable methods `OsString::from_bytes` and `OsStr::{to_bytes, to_cstring}` for ergonomic FFI usage. [breaking-change]
Configuration menu - View commit details
-
Copy full SHA for 9fc51ef - Browse repository at this point
Copy the full SHA 9fc51efView commit details -
Configuration menu - View commit details
-
Copy full SHA for cf56162 - Browse repository at this point
Copy the full SHA cf56162View commit details -
Darin Morrison committed
Mar 31, 2015 Configuration menu - View commit details
-
Copy full SHA for 9ba7974 - Browse repository at this point
Copy the full SHA 9ba7974View commit details -
Remove broken links that should just point to the current page, and while we're at it, re-wrap to 100 chars.
Configuration menu - View commit details
-
Copy full SHA for d9a6e86 - Browse repository at this point
Copy the full SHA d9a6e86View commit details -
std: Remove #[old_orphan_check] from PartialEq
This is a deprecated attribute that is slated for removal, and it also affects all implementors of the trait. This commit removes the attribute and fixes up implementors accordingly. The primary implementation which was lost was the ability to compare `&[T]` and `Vec<T>` (in that order). This change also modifies the `assert_eq!` macro to not consider both directions of equality, only the one given in the left/right forms to the macro. This modification is motivated due to the fact that `&[T] == Vec<T>` no longer compiles, causing hundreds of errors in unit tests in the standard library (and likely throughout the community as well). cc rust-lang#19470 [breaking-change]
Configuration menu - View commit details
-
Copy full SHA for 5cf126a - Browse repository at this point
Copy the full SHA 5cf126aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 608fff8 - Browse repository at this point
Copy the full SHA 608fff8View commit details -
Configuration menu - View commit details
-
Copy full SHA for e48c7c6 - Browse repository at this point
Copy the full SHA e48c7c6View commit details -
std: Add a process::exit function
This commit is an implementation of [RFC rust-lang#1011][rfc] which adds an `exit` function to the standard library for immediately terminating the current process with a specified exit code. [rfc]: rust-lang/rfcs#1011
Configuration menu - View commit details
-
Copy full SHA for 71982aa - Browse repository at this point
Copy the full SHA 71982aaView commit details -
Stabilize a few remaining stragglers
* The `io::Seek` trait, and `SeekFrom` enum. * The `Iterator::{partition, unsip}` methods. * The `Vec::into_boxed_slice` method. * The `LinkedList::append` method. * The `{or_insert, or_insert_with` methods in the `Entry` APIs.
Configuration menu - View commit details
-
Copy full SHA for b9ab5fe - Browse repository at this point
Copy the full SHA b9ab5feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1829974 - Browse repository at this point
Copy the full SHA 1829974View commit details -
rollup merge of rust-lang#23766: alexcrichton/stabilize-raw-fd
This commit stabilizes the platform-specific `io` modules, specifically around the traits having to do with the raw representation of each object on each platform. Specifically, the following material was stabilized: * `AsRaw{Fd,Socket,Handle}` * `RawFd` (renamed from `Fd`) * `RawHandle` (renamed from `Handle`) * `RawSocket` (renamed from `Socket`) * `AsRaw{Fd,Socket,Handle}` implementations * `std::os::{unix, windows}::io` The following material was added as `#[unstable]`: * `FromRaw{Fd,Socket,Handle}` * Implementations for various primitives There are a number of future improvements that are possible to make to this module, but this should cover a good bit of functionality desired from these modules for now. Some specific future additions may include: * `IntoRawXXX` traits to consume the raw representation and cancel the auto-destructor. * `Fd`, `Socket`, and `Handle` abstractions that behave like Rust objects and have nice methods for various syscalls. At this time though, these are considered backwards-compatible extensions and will not be stabilized at this time. This commit is a breaking change due to the addition of `Raw` in from of the type aliases in each of the platform-specific modules. [breaking-change]
Configuration menu - View commit details
-
Copy full SHA for 890f0ab - Browse repository at this point
Copy the full SHA 890f0abView commit details -
rollup merge of rust-lang#23876: alexcrichton/stabilize-any
This commit stabilizes the following APIs: * `TypeId::of` - now that it has an `Any` bound it's ready to be stable. * `Box<Any>::downcast` - now that an inherent impl on `Box<Any>` as well as `Box<Any+Send>` is allowed the `BoxAny` trait is removed in favor of these inherent methods. This is a breaking change due to the removal of the `BoxAny` trait, but consumers can simply remove imports to fix crates. [breaking-change]
Configuration menu - View commit details
-
Copy full SHA for d03120a - Browse repository at this point
Copy the full SHA d03120aView commit details -
rollup merge of rust-lang#23878: Ryman/stable_extremes
`min`-like functions now return the leftmost element/input for equal elements. `max`-like return the rightmost. Closes rust-lang#23687. cc @HeroesGrave, @aturon, @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for f6bd6b4 - Browse repository at this point
Copy the full SHA f6bd6b4View commit details -
rollup merge of rust-lang#23882: wettowelreactor/patch-2
Removed duplicate words
Configuration menu - View commit details
-
Copy full SHA for 095f1fb - Browse repository at this point
Copy the full SHA 095f1fbView commit details -
rollup merge of rust-lang#23885: steveklabnik/doc_std_env
Just one or two things to finish this module off
Configuration menu - View commit details
-
Copy full SHA for 5e0bda0 - Browse repository at this point
Copy the full SHA 5e0bda0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d2c640 - Browse repository at this point
Copy the full SHA 6d2c640View commit details -
Configuration menu - View commit details
-
Copy full SHA for acdb0f9 - Browse repository at this point
Copy the full SHA acdb0f9View commit details -
std: Clean out #[deprecated] APIs
This commit cleans out a large amount of deprecated APIs from the standard library and some of the facade crates as well, updating all users in the compiler and in tests as it goes along.
Configuration menu - View commit details
-
Copy full SHA for d4a2c94 - Browse repository at this point
Copy the full SHA d4a2c94View commit details -
rollup merge of rust-lang#23872: huonw/eager-lexing
Conflicts: src/libsyntax/parse/lexer/mod.rs
Configuration menu - View commit details
-
Copy full SHA for e3f2d45 - Browse repository at this point
Copy the full SHA e3f2d45View commit details -
Configuration menu - View commit details
-
Copy full SHA for 94137a3 - Browse repository at this point
Copy the full SHA 94137a3View commit details -
rollup merge of rust-lang#23875: aturon/revise-convert-2
* Marks `#[stable]` the contents of the `std::convert` module. * Added methods `PathBuf::as_path`, `OsString::as_os_str`, `String::as_str`, `Vec::{as_slice, as_mut_slice}`. * Deprecates `OsStr::from_str` in favor of a new, stable, and more general `OsStr::new`. * Adds unstable methods `OsString::from_bytes` and `OsStr::{to_bytes, to_cstring}` for ergonomic FFI usage. [breaking-change] r? @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for da04788 - Browse repository at this point
Copy the full SHA da04788View commit details -
rollup merge of rust-lang#23879: seanmonstar/del-from-error
Conflicts: src/libcore/error.rs
Configuration menu - View commit details
-
Copy full SHA for e10ee2c - Browse repository at this point
Copy the full SHA e10ee2cView commit details -
rollup merge of rust-lang#23873: alexcrichton/remove-deprecated
Conflicts: src/libcollectionstest/fmt.rs src/libcollectionstest/lib.rs src/libcollectionstest/str.rs src/libcore/error.rs src/libstd/fs.rs src/libstd/io/cursor.rs src/libstd/os.rs src/libstd/process.rs src/libtest/lib.rs src/test/run-pass-fulldeps/compiler-calls.rs
Configuration menu - View commit details
-
Copy full SHA for 554946c - Browse repository at this point
Copy the full SHA 554946cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3053288 - Browse repository at this point
Copy the full SHA 3053288View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82889f7 - Browse repository at this point
Copy the full SHA 82889f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0cac5b6 - Browse repository at this point
Copy the full SHA 0cac5b6View commit details -
rollup merge of rust-lang#23907: alexcrichton/impl-exit
This commit is an implementation of [RFC rust-lang#1011][rfc] which adds an `exit` function to the standard library for immediately terminating the current process with a specified exit code. [rfc]: rust-lang/rfcs#1011 Closes rust-lang#23914
Configuration menu - View commit details
-
Copy full SHA for a37311d - Browse repository at this point
Copy the full SHA a37311dView commit details -
rollup merge of rust-lang#23908: aturon/stab-more-stragglers
* The `io::Seek` trait. * The `Iterator::{partition, unsip}` methods. * The `Vec::into_boxed_slice` method. * The `LinkedList::append` method. * The `{or_insert, or_insert_with` methods in the `Entry` APIs. r? @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for 30283d4 - Browse repository at this point
Copy the full SHA 30283d4View commit details -
rollup merge of rust-lang#23288: alexcrichton/issue-19470
This is a deprecated attribute that is slated for removal, and it also affects all implementors of the trait. This commit removes the attribute and fixes up implementors accordingly. The primary implementation which was lost was the ability to compare `&[T]` and `Vec<T>` (in that order). This change also modifies the `assert_eq!` macro to not consider both directions of equality, only the one given in the left/right forms to the macro. This modification is motivated due to the fact that `&[T] == Vec<T>` no longer compiles, causing hundreds of errors in unit tests in the standard library (and likely throughout the community as well). Closes rust-lang#19470 [breaking-change]
Configuration menu - View commit details
-
Copy full SHA for 3422be3 - Browse repository at this point
Copy the full SHA 3422be3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8da0831 - Browse repository at this point
Copy the full SHA 8da0831View commit details -
rollup merge of rust-lang#23901: steveklabnik/fix_links_str
Remove broken links that should just point to the current page, and while we're at it, re-wrap to 100 chars.
Configuration menu - View commit details
-
Copy full SHA for 9ab6cc9 - Browse repository at this point
Copy the full SHA 9ab6cc9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6659865 - Browse repository at this point
Copy the full SHA 6659865View commit details -
std: Stabilize last bits of io::Error
This commit stabilizes a few remaining bits of the `io::Error` type: * The `Error::new` method is now stable. The last `detail` parameter was removed and the second `desc` parameter was generalized to `E: Into<Box<Error>>` to allow creating an I/O error from any form of error. Currently there is no form of downcasting, but this will be added in time. * An implementation of `From<&str> for Box<Error>` was added to liballoc to allow construction of errors from raw strings. * The `Error::raw_os_error` method was stabilized as-is. * Trait impls for `Clone`, `Eq`, and `PartialEq` were removed from `Error` as it is not possible to use them with trait objects. This is a breaking change due to the modification of the `new` method as well as the removal of the trait implementations for the `Error` type. [breaking-change]
Configuration menu - View commit details
-
Copy full SHA for ac77392 - Browse repository at this point
Copy the full SHA ac77392View commit details -
rollup merge of rust-lang#23899: steveklabnik/gh23851
Conflicts: src/libcore/iter.rs
Configuration menu - View commit details
-
Copy full SHA for 85e997a - Browse repository at this point
Copy the full SHA 85e997aView commit details -
rollup merge of rust-lang#23919: alexcrichton/stabilize-io-error
Conflicts: src/libstd/fs/tempdir.rs src/libstd/io/error.rs
Configuration menu - View commit details
-
Copy full SHA for 50b3ecf - Browse repository at this point
Copy the full SHA 50b3ecfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 55e531d - Browse repository at this point
Copy the full SHA 55e531dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 371ba00 - Browse repository at this point
Copy the full SHA 371ba00View commit details
Commits on Apr 1, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 72f5973 - Browse repository at this point
Copy the full SHA 72f5973View commit details -
rollup merge of rust-lang#23863: pnkfelix/arith-oflo-const-eval
const_eval : add overflow-checking for {`+`, `-`, `*`, `/`, `<<`, `>>`}. One tricky detail here: There is some duplication of labor between `rustc::middle::const_eval` and `rustc_trans::trans::consts`. It might be good to explore ways to try to factor out the common structure to the two passes (by abstracting over the particular value-representation used in the compile-time interpreter). ---- Update: Rebased atop rust-lang#23841 Fix rust-lang#22531 Fix rust-lang#23030 Fix rust-lang#23221 Fix rust-lang#23235
Configuration menu - View commit details
-
Copy full SHA for 4f643d7 - Browse repository at this point
Copy the full SHA 4f643d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d5ef75 - Browse repository at this point
Copy the full SHA 1d5ef75View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ebb6e6 - Browse repository at this point
Copy the full SHA 6ebb6e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8dff0ac - Browse repository at this point
Copy the full SHA 8dff0acView commit details