-
https://github.com/rust-lang/rust/pull/125011 has added a `optimize_for_size` feature to the standard library, which is designed for special casing some algorithms in `core`/`alloc`/`std` to provide a…
-
Added in https://github.com/rust-lang/rust/pull/46450
Available in nightly behind a `-Z` flag.
-
auto-reduced (treereduce-rust):
````rust
trait UnsafeCopy
where
for>::Item: use,
{
type Item;
fn bug(item: &Self::Item) -> (
//~^ ERROR `dyn` is a keyword
//~| WARN thi…
-
To reproduce, I had to do:
```console
$ CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS=fallback cargo +nightly generate-lockfile
$ cargo +1.65 check
error[E0277]: `Sender` cannot be shared between thre…
epage updated
3 weeks ago
-
### Problem
We have a monorepo where we want to manage some lints at the workspace level. We also have some CI scripts that set `RUSTFLAGS=-Dwarnings`. For crates that set `lints.workspace = true`, l…
-
Closures can have fields that are reference-typed, and then when closures are passed around by-value, those fields behave like struct fields for the aliasing model, so they get retagged and protected.…
-
I'm pretty excited about this version bump as Rust 1.79 stabilized the inline `const` expressions. Thanks for the efforts!
However, my existing codebase breaks at a field-less enum declaration:
…
y1ca1 updated
2 weeks ago
-
### Summary
`unnecessary_cast` appears to trigger for a parameter, but not for a local.
### Lint Name
`unnecessary_cast`
### Reproducer
I tried this code:
```rust
fn g() -> i16 { 42 }
pub fn f1…
-
[The following code produces a move error](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=45b377544d27adffcaa1f0b38cbe22e0):
```rust
trait Animal {
fn noise(&self) -…
-
The `#[thread_local]` attribute is currently feature-gated. This issue tracks its stabilization.
Known problems:
- [ ] `#[thread_local]` translates directly to the `thread_local` attribute in LLVM…