-
Lints behave a little strange with macros, particularly from external crates. This should probably be captured somewhere, probably the diagnostics page for allow/warn/deny/forbid.
For example, lin…
ehuss updated
5 years ago
-
Our main tool for testing TimeSteward behavior should be cross verified time stewards. If two time stewards receive the same valid input and give different results, there is an internal error. However…
-
The inert/active attribute description is not be correct. The following comment needs to be incorporated: https://github.com/rust-lang-nursery/reference/pull/537#pullrequestreview-218090880
However…
ehuss updated
3 years ago
-
Currently, searching `macros` on https://docs.rs/tokio/1.33.0/tokio/ has 0 hits. It would be nice if it pulled up https://docs.rs/tokio/1.33.0/tokio/attr.main.html, which uses `doc(cfg)` to tell rustd…
-
I think asserts are a pretty common thing, especially in unsafe rust (checking sizes/alignments etc.)
Now with anonymous consts we can already do things like:
```
use std::mem::*;
#[macro_export…
-
### Code
```Rust
/*
[package]
edition = "2021"
*/
macro_rules! statement {
() => {
();
let _ = ();
};
}
fn main() {
let _ = statement!();
}
```
##…
-
With nom 5.0 the author, Geoffroy, has [soft-deprecated macros in nom](http://unhandledexpression.com/general/2019/06/17/nom-5-is-here.html). Although macros used to be needed to write concise parser…
-
Tracking issue for `x suggest` subcommand and implementation of recommendations. Note that this isn't a traditional tracking issue for a feature but just a place to keep track of implementation.
S…
-
## Environment
* **IntelliJ Rust plugin version:** 0.4.162.4321-212
* **Rust toolchain version:** 1.59.0-nightly (efec54529 2021-12-04) x86_64-pc-windows-msvc
* **IDE name and version:** CLion 20…
-
This would seem to be an issue with the way the macro is written
Works
Doesn't work: