- 08 5月, 2015 4 次提交
-
-
由 Alex Crichton 提交于
This commit is an implementation of [RFC 1066][rfc] where the conclusion was that leaking a value is a safe operation in Rust code, so updating the signature of this function follows suit. [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1066-safe-mem-forget.md Closes #25186
-
由 Alex Crichton 提交于
Perform unsafe initialization up front and then only afterward the mutex is in place do we initialize it.
-
由 Alex Crichton 提交于
This module has been removed for quite some time!
-
由 Alex Crichton 提交于
Now that `std::old_io` has been removed for quite some time the naming real estate here has opened up to allow these modules to move back to their proper names.
-
- 07 5月, 2015 1 次提交
-
-
由 Steven Allen 提交于
-
- 06 5月, 2015 5 次提交
-
-
由 John Gallagher 提交于
-
由 John Gallagher 提交于
-
由 Sean McArthur 提交于
-
由 Tshepang Lekhonkhobe 提交于
-
由 Alex Crichton 提交于
Many bounds are currently of the form `T: ?Sized + AsRef<OsStr>` where the argument is `&T`, but the pattern elsewhere (primarily `std::fs`) has been to remove the `?Sized` bound and take `T` instead (allowing usage with both references and owned values). This commit generalizes the possible apis in `std::env` from `&T` to `T` in this fashion. The `split_paths` function remains the same as the return value borrows the input value, so ta borrowed reference is required.
-
- 05 5月, 2015 4 次提交
-
-
由 Tshepang Lekhonkhobe 提交于
-
由 Alex Crichton 提交于
This test has deadlocked on Windows once or twice now and we've had lots of problems in the past of threads panicking when the process is being shut down. One of the two threads in this test is guaranteed to panic because of the `.unwrap()` on the `send` calls, so just call `recv` on both receivers after the test executes to ensure that both threads are dying/dead.
-
由 Alex Crichton 提交于
These all had a typo where they were accessing the seconds field, not the nanoseconds field.
-
由 Joseph Crail 提交于
-
- 04 5月, 2015 9 次提交
-
-
由 Abhishek Chanda 提交于
-
由 Nick Hamann 提交于
-
由 Nick Hamann 提交于
-
由 Nick Hamann 提交于
This now omits address fields in Debug implementations when a proper address value cannot be unwrapped.
-
由 Pascal Hertleif 提交于
-
由 Pascal Hertleif 提交于
-
由 Nick Hamann 提交于
Fixes #23134.
-
由 Pascal Hertleif 提交于
-
由 Pascal Hertleif 提交于
This way, the module index renders only the first sentence as a short description.
-
- 03 5月, 2015 3 次提交
-
-
由 Pascal Hertleif 提交于
-
由 Björn Steinbrink 提交于
Since the hashmap and its hasher are implemented in different crates, we currently can't benefit from inlining, which means that especially for small, fixed size keys, there is a huge overhead in hash calculations, because the compiler can't apply optimizations that only apply for these keys. Fixes the brainfuck benchmark in #24014.
-
由 Tshepang Lekhonkhobe 提交于
-
- 02 5月, 2015 3 次提交
-
-
由 Alex Crichton 提交于
Ensures that the same error type is propagated throughout. Unnecessary leakage of the internals is prevented through the usage of stability attributes. Closes #24748
-
由 P1start 提交于
This + DST coercions (#24619) would allow code like `Rc<RefCell<Box<Trait>>>` to be simplified to `Rc<RefCell<Trait>>`.
-
由 Alex Crichton 提交于
These implementations were intended to be unstable, but currently the stability attributes cannot handle a stable trait with an unstable `impl` block. This commit also audits the rest of the standard library for explicitly-`#[unstable]` impl blocks. No others were removed but some annotations were changed to `#[stable]` as they're defacto stable anyway. One particularly interesting `impl` marked `#[stable]` as part of this commit is the `Add<&[T]>` impl for `Vec<T>`, which uses `push_all` and implicitly clones all elements of the vector provided. Closes #24791
-
- 01 5月, 2015 7 次提交
-
-
由 Corey Farwell 提交于
Even spelled out, one would say 'a Universal Character Set'
-
由 Aaron Turon 提交于
This commit brings the `Error` trait in line with the [Error interoperation RFC](https://github.com/rust-lang/rfcs/pull/201) by adding downcasting, which has long been intended. This change means that for any `Error` trait objects that are `'static`, you can downcast to concrete error types. To make this work, it is necessary for `Error` to inherit from `Reflect` (which is currently used to mark concrete types as "permitted for reflection, aka downcasting"). This is a breaking change: it means that impls like ```rust impl<T> Error for MyErrorType<T> { ... } ``` must change to something like ```rust impl<T: Reflect> Error for MyErrorType<T> { ... } ``` except that `Reflect` is currently unstable (and should remain so for the time being). For now, code can instead bound by `Any`: ```rust impl<T: Any> Error for MyErrorType<T> { ... } ``` which *is* stable and has `Reflect` as a super trait. The downside is that this imposes a `'static` constraint, but that only constrains *when* `Error` is implemented -- it does not actually constrain the types that can implement `Error`. [breaking-change]
-
由 Brian Anderson 提交于
-
由 Alex Crichton 提交于
Apparently implementations are allowed to return EDEADLK instead of blocking forever, in which case this can lead to unsafety in the `RwLock` primitive exposed by the standard library. A debug-build of the standard library would have caught this error (due to the debug assert), but we don't ship debug builds right now. This commit adds explicit checks for the EDEADLK error code and triggers a panic to ensure the call does not succeed. Closes #25012
-
由 Alex Crichton 提交于
-
由 Corey Farwell 提交于
The variable doesn't need to be mutable.
-
由 Alex Crichton 提交于
As pointed out in #17136 the semantics of a `BufStream` aren't always what one expects, and it looks like other [languages like C#][c-sharp] implement a buffered stream with only one underlying buffer. For now this commit destabilizes the primitive in the `std::io` module to give us some more time in figuring out what to do with it. [c-sharp]: https://msdn.microsoft.com/en-us/library/system.io.bufferedstream%28v=vs.110%29.aspx [breaking-change]
-
- 30 4月, 2015 4 次提交
-
-
由 Sébastien Marie 提交于
- unbreak the build under openbsd - while here, apply same modification to dragonfly, freebsd, ios (pid_t imported, but not used in raw.rs)
-
由 Valerii Hiora 提交于
-
由 Alex Crichton 提交于
-
由 tynopex 提交于
Make whitespace consistent
-