David Tolnay

Results 361 issues of David Tolnay

help wanted

Syntax is the same but with `static` in place of `const`.

help wanted

```rust iota! { pub(crate) const A: u8 = 1 src/main.rs:4:8 | 4 | pub(crate) const A: u8 = 1

help wanted

As introduced in rust 1.37: https://blog.rust-lang.org/2019/08/15/Rust-1.37.0.html#using-unnamed-const-items-for-macros Iota currently rejects code containing underscore names. ```rust iota! { const A: u8 = 1 src/main.rs:5:9 | 5 | | _ | ^ no...

help wanted

The macro_rules implementation is pretty crazy. This library makes more sense as a procedural macro given Rust 1.31.

#1 I'm not sure which behavior is right. In particular I don't know what fraction of the time continuing would just end up in an infinite loop of the same...

Currently accessing a distributed slice under Miri makes the interpreter abort. ```console test readme ... error: unsupported operation: `extern` static `BENCHMARKS::LINKME_START` from crate `example` is not supported by Miri -->...

As of the most recent nightly, *rustc 1.42.0-nightly (01a46509a 2019-12-20)*, our Windows builder in Travis has begun failing. https://travis-ci.com/dtolnay/linkme/jobs/269503401 Both `cargo test` and `cargo test --release` fail on Windows with...

help wanted

Currently fallback spans store a pair of 32-bit low and high character indices. https://github.com/dtolnay/proc-macro2/blob/fecb02df0e2966c7eb39e020dbf650fa8bafd0c5/src/fallback.rs#L491-L496 A span in which `lo > hi` is malformed, so right off the bat, approximately half...

As of #335, `TokenStream` is `Rc`. This makes twice as many allocations as it should, because there's one that holds {strong count, weak count, data ptr, length, capacity} and a...