- 24 1月, 2015 1 次提交
-
-
由 Brian Anderson 提交于
Conflicts: src/libcore/atomic.rs src/libcore/finally.rs src/test/auxiliary/inherited_stability.rs src/test/auxiliary/lint_stability.rs
-
- 22 1月, 2015 1 次提交
-
-
由 Brian Anderson 提交于
-
- 08 1月, 2015 1 次提交
-
-
由 Aaron Turon 提交于
This PR introduces `isize` and `usize` modules to `core` and `std`, and deprecates the existing `int` and `uint` modules. The rustdoc primitive type links now point to these new modules. Due to deprecation this is a: [breaking-change]
-
- 20 12月, 2014 1 次提交
-
-
由 Aaron Turon 提交于
This small patch stabilizes the names of all integer modules (including `int` and `uint`) and the `MIN` and `MAX` constants. The `BITS` and `BYTES` constants are left unstable for now.
-
- 19 12月, 2014 1 次提交
-
-
由 Patrick Walton 提交于
followed by a semicolon. This allows code like `vec![1i, 2, 3].len();` to work. This breaks code that uses macros as statements without putting semicolons after them, such as: fn main() { ... assert!(a == b) assert!(c == d) println(...); } It also breaks code that uses macros as items without semicolons: local_data_key!(foo) fn main() { println("hello world") } Add semicolons to fix this code. Those two examples can be fixed as follows: fn main() { ... assert!(a == b); assert!(c == d); println(...); } local_data_key!(foo); fn main() { println("hello world") } RFC #378. Closes #18635. [breaking-change]
-
- 25 6月, 2014 1 次提交
-
-
由 Brian Anderson 提交于
The following are unstable: - core::int, i8, i16, i32, i64 - core::uint, u8, u16, u32, u64 - core::int::{BITS, BYTES, MIN, MAX}, etc. - std::int, i8, i16, i32, i64 - std::uint, u8, u16, u32, u64 The following are experimental: - std::from_str::FromStr and impls - may need to return Result instead of Option - std::int::parse_bytes, etc. - ditto - std::num::FromStrRadix and impls - ditto - std::num::from_str_radix - ditto The following are deprecated: - std::num::ToStrRadix and imples - Wrapper around fmt::radix. Wrong name (Str vs String) See https://github.com/rust-lang/rust/wiki/Meeting-API-review-2014-06-23#uint
-
- 01 6月, 2014 1 次提交
-
-
由 Alex Crichton 提交于
This commit adds support in rustdoc to recognize the `#[doc(primitive = "foo")]` attribute. This attribute indicates that the current module is the "owner" of the primitive type `foo`. For rustdoc, this means that the doc-comment for the module is the doc-comment for the primitive type, plus a signal to all downstream crates that hyperlinks for primitive types will be directed at the crate containing the `#[doc]` directive. Additionally, rustdoc will favor crates closest to the one being documented which "implements the primitive type". For example, documentation of libcore links to libcore for primitive types, but documentation for libstd and beyond all links to libstd for primitive types. This change involves no compiler modifications, it is purely a rustdoc change. The landing pages for the primitive types primarily serve to show a list of implemented traits for the primitive type itself. The primitive types documented includes both strings and slices in a semi-ad-hoc way, but in a way that should provide at least somewhat meaningful documentation. Closes #14474
-
- 28 5月, 2014 1 次提交
-
-
由 Piotr Jawniak 提交于
Closes #12925
-
- 07 5月, 2014 2 次提交
-
-
由 Alex Crichton 提交于
This mostly involved frobbing imports between realstd, realcore, and the core being test. Some of the imports are a little counterintuitive, but it mainly focuses around libcore's types not implementing Show while libstd's types implement Show.
-
由 Alex Crichton 提交于
This implements all traits inside of core::num for all the primitive types, removing all the functionality from libstd. The std modules reexport all of the necessary items from the core modules.
-
- 03 5月, 2014 1 次提交
-
-
由 Falco Hirschenberger 提交于
See #11273 and #13318
-
- 29 3月, 2014 1 次提交
-
-
由 Brian Anderson 提交于
Closes #2569
-
- 25 2月, 2014 1 次提交
-
-
由 Brendan Zabarauskas 提交于
-
- 23 2月, 2014 1 次提交
-
-
由 Brian Anderson 提交于
Issue #1457
-
- 01 2月, 2014 3 次提交
-
-
由 Brendan Zabarauskas 提交于
-
由 Brendan Zabarauskas 提交于
-
由 Brendan Zabarauskas 提交于
Also rename `next_power_of_two_opt` to `checked_next_power_of_two`.
-
- 30 1月, 2014 1 次提交
-
-
由 Brendan Zabarauskas 提交于
`Times::times` was always a second-class loop because it did not support the `break` and `continue` operations. Its playful appeal was then lost after `do` was disabled for closures. It's time to let this one go.
-
- 25 1月, 2014 1 次提交
-
-
由 Chris Wong 提交于
The following are renamed: * `min_value` => `MIN` * `max_value` => `MAX` * `bits` => `BITS` * `bytes` => `BYTES` Fixes #10010.
-
- 16 1月, 2014 1 次提交
-
-
由 Brendan Zabarauskas 提交于
One less trait in std::num, and three less exported in the prelude.
-
- 27 12月, 2013 1 次提交
-
-
由 Luca Bruno 提交于
This commit uniforms the short title of modules provided by libstd, in order to make their roles more explicit when glancing at the index. Signed-off-by: NLuca Bruno <lucab@debian.org>
-
- 30 11月, 2013 1 次提交
-
-
由 Marvin Löbel 提交于
-
- 27 11月, 2013 2 次提交
-
-
由 Patrick Walton 提交于
-
由 Patrick Walton 提交于
compile-fail tests, run-fail tests, and run-pass tests.
-
- 20 11月, 2013 1 次提交
-
-
由 Patrick Walton 提交于
-
- 18 10月, 2013 1 次提交
-
-
由 Brian Anderson 提交于
-
- 16 9月, 2013 1 次提交
-
-
由 blake2-ppc 提交于
Like next_power_of_two, but returns None on overflow.
-
- 08 9月, 2013 1 次提交
-
-
由 Brendan Zabarauskas 提交于
This follows the same pattern as the other numeric trait impls, and reduces the clutter in std::num.
-
- 29 8月, 2013 1 次提交
-
-
由 Jason Fager 提交于
Moves the Times trait to num while the question of whether it should exist at all gets hashed out as a completely separate question.
-
- 06 8月, 2013 1 次提交
-
-
由 blake2-ppc 提交于
-
- 01 8月, 2013 1 次提交
-
-
由 blake2-ppc 提交于
Change the former repetition:: for 5.times { } to:: do 5.times { } .times() cannot be broken with `break` or `return` anymore; for those cases, use a numerical range loop instead.
-
- 19 6月, 2013 1 次提交
-
-
由 Graydon Hoare 提交于
-
- 25 5月, 2013 1 次提交
-
-
由 Alex Crichton 提交于
-