-
### Description
SIMD instructions may have arguments which need to be constant at compile time usually indicated by the naming scheme (e.g `imm8`). An example would be [`_mm_blend_ps`](https://softwa…
-
If the line after `this does not work` is commented out, _the remaining code does compile_.
If there is any other reason why the `const` can’t work, while the function can, then the error message is …
-
```rust
struct Test(T);
impl Test {
const fn unpack(self) -> T {
self.0
}
}
```
([Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=477813…
-
`SmallVec` is invariant over `T`.
Although `[T; N]` is covariant over `T` as expected.
This is due to `SmallVec` having field of type `::Item` in underlying union.
I propose to change that field …
-
### Code
```Rust
type One = for fn(Box src/lib.rs:1:30
|
1 | type One = for fn(Box
-
In the following code, identical impls for a concrete type, a `fn` type, and a closure exist yet the only the closure fails to meet the higher-ranked bound:
```rust
trait FnLt &'a u8;
}
// Str…
-
In your [Why Writing a Linked List in (safe) Rust is So Damned Hard post](https://github.com/rcoh/rcoh-dot-me-v2/blob/master/content/posts/rust-linked-list-basically-impossible.md) you include this sn…
-
I tried this code: [Playground Link](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=bad85946a6fbab31976393d7a7419316)
I expected to see this happen: Only one error: `Fo…
-
### Summary
I manually `drop` my `MutexGuard` right before the `await` point, therefore the lock is not held across await points.
### Lint Name
await_holding_lock
### Reproducer
I tried this code…
-
Build failed, waiting for other jobs to finish...
failed to run custom build command for `openssl-sys v0.6.7`
Process didn't exit successfully: `/Users/tianyuelite/Downloads/DDoS/rust/playground/hotcl…