David Tolnay
David Tolnay
The repro in #14 no longer compiles on current master but the following is basically equivalent: ```rust use aeron_rs::concurrent::atomic_buffer::{AlignedBuffer, AtomicBuffer}; fn main() { AtomicBuffer::from_aligned(&AlignedBuffer { ptr: 0xdeadbeefusize as _, len:...
### What does this PR try to resolve? This PR implements my proposal in #10662 to enable `cargo --list` to show descriptions of third-party subcommands, not only the subcommands which...
https://github.com/dtolnay/clang-ast/blob/94dc08bff56b30d8a145d9fbad75a41683a37e94/.github/workflows/ci.yml#L20-L34 This job used to work but had to get disabled in 2871541b74769235d8a5ccedc834d8971be7adac.
```rust use serde::Serialize; #[derive(Serialize)] struct Node { k: Option, } fn main() { std::thread::Builder::new() .stack_size(2 * 1024 * 1024) .name("test".to_string()) .spawn(move || { let mut node = None::; for _...
## Bug Report ### Version ```console └── tracing v0.1.36 ├── tracing-attributes v0.1.22 (proc-macro) └── tracing-core v0.1.29 ``` ### Platform ```console Linux rust 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC...
Rustc considers this code syntactically valid, it's only a later stage of compilation that reports an error. Syn does not currently permit these. ```rust #[cfg(any())] fn f(_: impl 'static, _:...
This guy: https://github.com/rust-lang/rust/blob/1536ab1b383f21b38f8d49230a2aecc51daffa3d/library/std/src/sys/unix/fs.rs#L589 It turns out `libc::dirent64` is quite big—https://docs.rs/libc/0.2.135/libc/struct.dirent64.html. In #103135 this memset accounted for 0.9% of the runtime of iterating a big directory. Almost none of the big...
It has been deprecated: [announcement](https://users.rust-lang.org/t/deprecation-of-rustc-serialize/10485?u=dtolnay). Is there any functionality you would require from Serde or another library before this would be possible?
The following code shows a reasonably written error type by a library not using error chain, as well as a chained error containing that one as a variant. ```rust #[macro_use]...
It has been deprecated: [announcement](https://users.rust-lang.org/t/deprecation-of-rustc-serialize/10485?u=dtolnay). Is there any functionality you would require from another library before this would be possible?