David Tolnay
David Tolnay
1. `c.merge(/* config.yml */)` 2. `c.get("k")` 3. modify config.yml -> k 4. `c.get("k")` The second `get` should reflect the changes to the config file. I think we get this for...
Follow-up to https://github.com/google/autocxx/issues/19#issuecomment-706634698. Here is a proof of concept ([playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=8d66743adb1841497ec14d6809b68092)). ```rust // Suppose we have no idea what the true size/alignment of std::string is but // want a Rust struct...
Repro against current master (c19b14539b79d44f5f433ac189d70e07fb152354): ```console $ echo 'm!(a. X::Y);' | RUST_BACKTRACE=1 cargo run --bin rustfmt m!(a. X::Y); thread 'main' panicked at 'Box', compiler/rustc_errors/src/lib.rs:1425:13 stack backtrace: 0: std::panicking::begin_panic:: 1: std::panic::panic_any::...
As seen in https://rust-lang-nursery.github.io/rust-toolstate/ and https://rust-lang.github.io/rustup-components-history/, the `miri` rustup component is not always available in every nightly. Currently when this happens, CI on PRs to this repo fails in the...
[RENDERED VIEW] **Summary:** This experimental RFC proposes a process by which a designated Rust team member or members could reassign ownership of a crate name on crates.io. The aim is...
In something like: ```rust fn main() { thread_local! { static FOO: i32 = 1; } println! { "{}", FOO.with(i32::clone) } } ``` it's syntactically ambiguous whether the macros represent an...
```rust let _ = || 0 .. 0 .. None.unwrap(); ``` Rustc parses this as `(|| (0..0))..None.unwrap()` which is of type `Range Range>`. Syn parses `|| ((0..0)..None.unwrap())` which is `Range`.