David Tolnay

Results 361 issues of David Tolnay

- RFC: https://github.com/rust-lang/rfcs/pull/3399 - Tracking issue: https://github.com/rust-lang/rust/issues/115590 ```rust impl SomeTrait for Thing where #[cfg(something_a)] T: SomeRequirementA, #[cfg(something_b)] T: SomeRequirementB, {} ```

breaking change

Currently, `Expr::RawAddr` is represented using PointerMutability enum: https://github.com/dtolnay/syn/blob/da478ac46f202e69e7589c85123dcf8d0dde64be/src/expr.rs#L583-L589 whereas `Type::Ptr` is represented using separate `Option` and `Option` fields. https://github.com/dtolnay/syn/blob/da478ac46f202e69e7589c85123dcf8d0dde64be/src/ty.rs#L183-L188

breaking change

The following is a valid format expression, but thiserror fails to compile it. ```rust use thiserror::Error; #[derive(Debug, Error)] #[error("{}", None::.is_some())] pub struct Error; fn main() { println!("{}", None::.is_some()); } ```...

I noticed that the source code rendered by docs.rs at `https://docs.rs/crate/${name}/${version}/source/Cargo.toml` is different from the Cargo.toml actually in the published archive, at `https://static.crates.io/crates/${name}/${version}/download`. (Note: this is not a confusion between...

This is a new feature in Rust 1.85. https://doc.rust-lang.org/beta/clippy/attribs.html#clippyformat_args

anyhow::Result looks like this in LLDB: ```rust (core::result::Result) { value = { 0 = { inner = { ptr = { pointer = 0x00007f8008414040 } } } } } ```...

This makes it possible to use sqlx and the most recent versions of the `cargo` crate in the same dependency graph. Cargo depends on rusqlite 0.33 which uses libsqlite3-sys 0.31....

breaking:MSRV

This demonstrates a backward compatible way that a format such as serde_json could use its own serde_json::Value as its buffer type for untagged enums and flatten, instead of "Content", solving...

For example a macro_rules macro might expand to: ```rust #[derive(Serialize)] struct $struct { $( #[serde(rename = concat!($prefix, stringify!($field)))] $field: $ty, )* }

derive

This is a new feature in Rust 1.85. https://doc.rust-lang.org/beta/clippy/attribs.html#clippyformat_args