- 06 2月, 2015 1 次提交
-
-
由 Jorge Aparicio 提交于
-
- 05 2月, 2015 1 次提交
-
-
由 Jorge Aparicio 提交于
-
- 04 2月, 2015 1 次提交
-
-
由 Aaron Turon 提交于
As part of [RFC 474](https://github.com/rust-lang/rfcs/pull/474), this commit renames `std::path` to `std::old_path`, leaving the existing path API in place to ease migration to the new one. Updating should be as simple as adjusting imports, and the prelude still maps to the old path APIs for now. [breaking-change]
-
- 03 2月, 2015 3 次提交
-
-
由 Jorge Aparicio 提交于
Also `for x in option.into_iter()` -> `if let Some(x) = option`
-
由 Jorge Aparicio 提交于
Also `for x in option.iter_mut()` -> `if let Some(ref mut x) = option`
-
由 Jorge Aparicio 提交于
-
- 02 2月, 2015 2 次提交
-
-
由 Seo Sanghyeon 提交于
-
由 Alex Crichton 提交于
This is an implementation of [RFC 578][rfc] which adds a new `std::env` module to replace most of the functionality in the current `std::os` module. More details can be found in the RFC itself, but as a summary the following methods have all been deprecated: [rfc]: https://github.com/rust-lang/rfcs/pull/578 * `os::args_as_bytes` => `env::args` * `os::args` => `env::args` * `os::consts` => `env::consts` * `os::dll_filename` => no replacement, use `env::consts` directly * `os::page_size` => `env::page_size` * `os::make_absolute` => use `env::current_dir` + `join` instead * `os::getcwd` => `env::current_dir` * `os::change_dir` => `env::set_current_dir` * `os::homedir` => `env::home_dir` * `os::tmpdir` => `env::temp_dir` * `os::join_paths` => `env::join_paths` * `os::split_paths` => `env::split_paths` * `os::self_exe_name` => `env::current_exe` * `os::self_exe_path` => use `env::current_exe` + `pop` * `os::set_exit_status` => `env::set_exit_status` * `os::get_exit_status` => `env::get_exit_status` * `os::env` => `env::vars` * `os::env_as_bytes` => `env::vars` * `os::getenv` => `env::var` or `env::var_string` * `os::getenv_as_bytes` => `env::var` * `os::setenv` => `env::set_var` * `os::unsetenv` => `env::remove_var` Many function signatures have also been tweaked for various purposes, but the main changes were: * `Vec`-returning APIs now all return iterators instead * All APIs are now centered around `OsString` instead of `Vec<u8>` or `String`. There is currently on convenience API, `env::var_string`, which can be used to get the value of an environment variable as a unicode `String`. All old APIs are `#[deprecated]` in-place and will remain for some time to allow for migrations. The semantics of the APIs have been tweaked slightly with regard to dealing with invalid unicode (panic instead of replacement). The new `std::env` module is all contained within the `env` feature, so crates must add the following to access the new APIs: #![feature(env)] [breaking-change]
-
- 01 2月, 2015 1 次提交
-
-
由 Sébastien Marie 提交于
-
- 31 1月, 2015 1 次提交
-
-
由 Alex Crichton 提交于
Also some tidying up of a bunch of crate attributes
-
- 30 1月, 2015 3 次提交
-
-
由 Jorge Aparicio 提交于
-
由 Jorge Aparicio 提交于
-
由 Tom Jakubowski 提交于
Fix #21442
-
- 29 1月, 2015 3 次提交
-
-
由 Jorge Aparicio 提交于
-
由 Jorge Aparicio 提交于
-
由 Jorge Aparicio 提交于
sed -i 's/in range(\([^,]*\), *\([^()]*\))/in \1\.\.\2/g' **/*.rs
-
- 28 1月, 2015 1 次提交
-
-
由 Niko Matsakis 提交于
-
- 27 1月, 2015 5 次提交
-
-
由 Jorge Aparicio 提交于
-
由 Felix S. Klock II 提交于
-
由 Brian Anderson 提交于
-
由 Alex Crichton 提交于
In preparation for upcoming changes to the `Writer` trait (soon to be called `Write`) this commit renames the current `write` method to `write_all` to match the semantics of the upcoming `write_all` method. The `write` method will be repurposed to return a `usize` indicating how much data was written which differs from the current `write` semantics. In order to head off as much unintended breakage as possible, the method is being deprecated now in favor of a new name. [breaking-change]
-
由 Alex Crichton 提交于
-
- 26 1月, 2015 1 次提交
-
-
由 Eduard Burtescu 提交于
-
- 25 1月, 2015 1 次提交
-
-
由 Kevin Yap 提交于
Removes min-width rule from body so that the page does not scroll horizontally on mobile displays; hides out-of-band information.
-
- 24 1月, 2015 2 次提交
-
-
由 Brian Anderson 提交于
Conflicts: src/libcore/atomic.rs src/libcore/finally.rs src/test/auxiliary/inherited_stability.rs src/test/auxiliary/lint_stability.rs
-
由 Brian Anderson 提交于
* `core` - for the core crate * `hash` - hashing * `io` - io * `path` - path * `alloc` - alloc crate * `rand` - rand crate * `collections` - collections crate * `std_misc` - other parts of std * `test` - test crate * `rustc_private` - everything else
-
- 23 1月, 2015 1 次提交
-
-
由 Brian Anderson 提交于
-
- 22 1月, 2015 6 次提交
-
-
由 Brian Anderson 提交于
-
由 Brian Anderson 提交于
-
由 Brian Anderson 提交于
-
由 Brian Anderson 提交于
-
由 Alex Crichton 提交于
-
由 Aaron Turon 提交于
-
- 21 1月, 2015 7 次提交
-
-
由 Eduard Burtescu 提交于
-
由 Liigo Zhuang 提交于
-
由 Liigo Zhuang 提交于
-
由 Liigo Zhuang 提交于
-
由 Liigo Zhuang 提交于
-
由 Liigo Zhuang 提交于
-
由 Alex Crichton 提交于
This commit is an implementation of [RFC 565][rfc] which is a stabilization of the `std::fmt` module and the implementations of various formatting traits. Specifically, the following changes were performed: [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0565-show-string-guidelines.md * The `Show` trait is now deprecated, it was renamed to `Debug` * The `String` trait is now deprecated, it was renamed to `Display` * Many `Debug` and `Display` implementations were audited in accordance with the RFC and audited implementations now have the `#[stable]` attribute * Integers and floats no longer print a suffix * Smart pointers no longer print details that they are a smart pointer * Paths with `Debug` are now quoted and escape characters * The `unwrap` methods on `Result` now require `Display` instead of `Debug` * The `Error` trait no longer has a `detail` method and now requires that `Display` must be implemented. With the loss of `String`, this has moved into libcore. * `impl<E: Error> FromError<E> for Box<Error>` now exists * `derive(Show)` has been renamed to `derive(Debug)`. This is not currently warned about due to warnings being emitted on stage1+ While backwards compatibility is attempted to be maintained with a blanket implementation of `Display` for the old `String` trait (and the same for `Show`/`Debug`) this is still a breaking change due to primitives no longer implementing `String` as well as modifications such as `unwrap` and the `Error` trait. Most code is fairly straightforward to update with a rename or tweaks of method calls. [breaking-change] Closes #21436
-