-
I came into the need of wrapping the array into `Box` type. It turns out that `Any::downcast()` always fails. Here is my reproduction:
```rust
// Create array
let a = Array3::from_shape_vec((1, 2…
-
[rust2018changes]: https://github.com/rust-lang/rfcs/blob/master/text/2497-if-let-chains.md#rollout-plan-and-transitioning-to-rust-2018
This is a tracking issue for the eRFC *"if- and while-let-cha…
-
### Status as of 2020-04-18
We intend to stabilize the saturating-float-casts behavior for `as`, and have stabilized unsafe library functions that handle the previous behavior. See #71269 for the l…
-
I had code on previous versions that looked like:
```rust
let hex_buffer = gtk::TextBuffer::new(None);
```
That used to compile, however with the recent 0.6 release, I now get the following …
-
Like https://github.com/rust-lang/rust/pull/57817 handles [too many closing brackets](https://github.com/rust-lang/rust/issues/54521) in type arguments when using turbofish, we should also handle too …
-
So, I am trying to use the set and get methods to store and retrieve a screeps::RoomPosition to memory, but I'm not entirely sure how to correctly use this.
```
match creep.memory().get("target")
…
-
I typoed the angle brackets when attempting turbofish.
```rust
fn main() {
println!("{:?}", vec![1, 2, 3].into_iter().collect::>());
}
```
([Playground](https://play.rust-lang.org/?gis…
-
In APIs like `sign_raw_transaction` taking `HexBytes` is not very convenient. The caller will either have `Transaction` or `String` or `Vec` and only the last one is somewhat easily convertible. In no…
-
Following up on https://github.com/dtolnay/rust-quiz/issues/2#issuecomment-478978696:
> Constructs like `for i in 0.. {}` will greedily match the block as the second part of the range
This is no…
-
## NEW TRACKING ISSUE = https://github.com/rust-lang/rust/issues/63066
## Implementation status
The basic feature as specified in [RFC 1522](https://github.com/rust-lang/rfcs/pull/1522) is imple…