David Tolnay
David Tolnay
RFC: https://github.com/rust-lang/rfcs/pull/3617 Tracking issue: https://github.com/rust-lang/rust/issues/123432 ```rust fn f {} ```
Tracking issue: https://github.com/rust-lang/rust/issues/123743 RFC: https://github.com/rust-lang/rfcs/pull/3484 ```rust unsafe extern "C" { safe static TEST1: i32; safe fn test1(i: i32); } ``` https://github.com/rust-lang/rust/blob/76e7a0849c07d73e4d9afde8036ee8c450127cc8/tests/ui/rust-2024/unsafe-extern-blocks/safe-items.rs
As of https://github.com/dtolnay/syn/pull/1659, we are currently using code like `token::Paren::default().surround(tokens, |tokens| e.to_tokens(tokens))` . But maybe a better behavior would be `token::Group::default().surround(...)`.
```console warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead --> src/main.rs:44:24 | 44 | use std::panic::{self, PanicInfo, UnwindSafe}; | ^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default warning:...
Many integration opportunities here. - If a shared struct has a #\[derive(`PartialEq` or `Ord`)\] then emit a compatible `operator ==`, `operator !=`, `operator =` on the type for C++. ```rust...
With a suitable MODULE.bazel, we should be able to make a `rust_cxx_bridge` rule easily available for Bzlmod users. https://github.com/bazelbuild/bazel-central-registry https://bazel.build/build/bzlmod For now this is blocked on Bzlmod support in https://github.com/bazelbuild/rules_rust/issues/1493.
Submitting as an alternative to #239. Benchmarks: **Before:** ```console RUSTFLAGS='-Ctarget-cpu=native' cargo bench --bench ahash aeshash/u8 time: [994.20 ps 995.35 ps 996.54 ps] aeshash/u16 time: [994.81 ps 995.50 ps 996.21 ps]...
- https://github.com/rust-lang/rust/issues/123757 - https://github.com/rust-lang/rfcs/pull/3325 ```console error: expected identifier, found keyword `unsafe` --> dev/main.rs:4:3 | 4 | #[unsafe(no_mangle)] | ^^^^^^ ```
As of nightly-2024-07-18, rustc has begin rejecting code such as the following, which used to parse successfully. https://github.com/rust-lang/rust/pull/126762 ```rust #[cfg(any())] fn f() {} | ^^^^ ``` If this is no...
- 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, {} ```