- 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
-
由 bors 提交于
Leftovers from @-pointer times, I guess.
-
由 bors 提交于
`Iterator::size_hint` can be easily implemented for `StepBy`. #23708
-
- 01 5月, 2015 34 次提交
-
-
由 bors 提交于
- Successful merges: #24979, #24980, #24981, #24982, #24983, #24987, #24988, #24991, #24992, #24994, #24998, #25002, #25010, #25014, #25020, #25021 - Failed merges:
-
由 Manish Goregaokar 提交于
Even spelled out, one would say 'a Universal Character Set'
-
由 Manish Goregaokar 提交于
-
由 Manish Goregaokar 提交于
The variable doesn't need to be mutable.
-
由 Manish Goregaokar 提交于
These compile down to `mov $CONSTANT, register; ret`, but the lack of `#[inline]` meant they have a full `call ...` when used from external crates.
-
由 Manish Goregaokar 提交于
Fixes #24767
-
由 Manish Goregaokar 提交于
r? @alexcrichton
-
由 Manish Goregaokar 提交于
Fixes #24977
-
由 Manish Goregaokar 提交于
Fixes #24730 r? @alexcrichton
-
由 Manish Goregaokar 提交于
First, a link was broken. Second, the wording was a bit unclear, so I fixed it up. Fixes #24852
-
由 Manish Goregaokar 提交于
- unbreak the build under openbsd - while here, apply same modification to dragonfly, freebsd, ios (pid_t imported, but not used in raw.rs) r? @alexcrichton cc @wg @mneumann @vhbit
-
由 Manish Goregaokar 提交于
-
由 Manish Goregaokar 提交于
Fix incorrect link tag formatting in `doc/trpl/nightly-rust.md`. Notice the last word of the paragraph. Before: ![before](https://cloud.githubusercontent.com/assets/8631/7413645/10754b7e-ef80-11e4-9bb1-15e87ce9308f.png) After: ![after](https://cloud.githubusercontent.com/assets/8631/7413647/13b96202-ef80-11e4-990b-6ecf72925e7d.png)
-
由 Manish Goregaokar 提交于
Hi! While researching stuff for the reference and the grammar, I came across a few mentions of using the `priv` keyword that was removed in 0.11.0 (#13547, #8122, rust-lang/rfcs#26, [RFC 0026](https://github.com/rust-lang/rfcs/blob/master/text/0026-remove-priv.md)). One occurrence is a mention in the reference, a few are in comments, and a few are marking test functions. I left the test that makes sure you can't name an ident `priv` since it's still a reserved keyword. I did a little grepping around for `priv `, priv in backticks, `Private` etc and I think the remaining instances are fine, but if anyone knows anywhere in particular I should check for any other lingering mentions of `priv`, please let me know and I would be happy to!
🍂 🌊 -
由 critiqjo 提交于
Fixes `Step::steps_between` implementations by integer types to correctly handle `by != 1`.
-
由 bors 提交于
This uses a (per-trait) hash-table to separate impls from different TraitDefs, and makes coherence go so much quicker. I will post performance numbers tomorrow. This is still WIP, as when there's an overlap error, impls can get printed in the wrong order, which causes a few issues. Should I pick the local impl with the smallest NodeId to print? Could you take a look at this @nikomatsakis?
-
由 Simonas Kazlauskas 提交于
Leftovers from @-pointer times.
-
由 bors 提交于
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 ```rust impl<T: Reflect> Error for MyErrorType<T> { ... } ``` This commit furthermore marks `Reflect` as stable, since we are already essentially committed to it via `Any`. Note that in the future, if we determine that the parametricity aspects of `Reflect` are not needed, we can deprecate the trait and provide a blanket implementation for it for *all* types (rather than by using OIBIT), which would allow all mentions of `Reflect` to be dropped over time. So there is not a strong commitment here. [breaking-change] r? @alexcrichton
-
由 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 提交于
-
由 bors 提交于
Associated constants were now showing up for traits and would panic if they were found on an inherent impl. This commit unblocks the nighly builders.
-
由 Corey Farwell 提交于
The variable doesn't need to be mutable.
-
由 Huon Wilson 提交于
These compile down to `mov $CONSTANT, register; ret`, but the lack of `#[inline]` meant they have a full `call ...` when used from external crates.
-
由 Steve Klabnik 提交于
Fixes #24767
-
由 bors 提交于
Closes #24446.
-
由 Steve Klabnik 提交于
-
由 Steve Klabnik 提交于
Fixes #24730
-
由 bors 提交于
Explanations for E0079, E0080, E0081, E0082, E0083 and E0084 as part of #24407. All the errors concern the use of `#[repr(X)]` with enum types. I also updated the short description for E0079 so that it takes sign into account.
-
由 Steve Klabnik 提交于
Fixes #24977
-
由 Steve Klabnik 提交于
First, a link was broken. Second, the wording was a bit unclear, so I fixed it up. Fixes #24852
-
由 Ariel Ben-Yehuda 提交于
-
由 bors 提交于
I'm interested in helping out with #16676 but more in the grammar than the reference-- here's my first chunk, more to come!!
🎉 I did pull a bit *out* of the reference, though, that was more relevant to the grammar but wasn't moved over as part of #24729. I'm looking at, e.g. https://github.com/rust-lang/rust/blob/master/src/libsyntax/ast.rs, as the source of truth, please let me know if I should be checking against something else instead/in addition. r? @steveklabnik -
由 Alex Crichton 提交于
Associated constants were now showing up for traits and would panic if they were found on an inherent impl. This commit unblocks the nighly builders.
-
- 30 4月, 2015 3 次提交
-
-
由 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)
-
由 bors 提交于
Closes #24840
-
由 Valerii Hiora 提交于
-