-
Rust has a new macro syntax, for example [std::pin::pin](https://doc.rust-lang.org/std/pin/macro.pin.html).
```rust
pub macro pin($value:expr $(,)?) {
...
}
```
Here is the error log for t…
-
**rust-analyzer version**: rust-analyzer version: 0.4.1654-standalone (c405509f2 2023-09-08)
**rustc version**: rustc 1.71.1 (eb26296b5 2023-08-03)
**vscode version**:
Version: 1.82.0 (Universa…
-
### What it does
This proposed lint would detect and warn about unnecessary trailing commas in macro parameters. While a trailing comma in macro parameters is not an error in Rust, it can be superflu…
-
Contrary to `#![crate_type = EXPR]`, `#![crate_name = EXPR]` does **not** semantically reject *macro calls* inside `EXPR`.
Instead, it eagerly expands them but otherwise **ignores** the result (apart…
-
### Introduction
In Rust, the standard library provides macros like `assert!` and `panic!` for handling errors and testing code correctness. However, there is no built-in macro for capturing a pani…
-
Related to https://github.com/rust-lang/rust/issues/55352, Rustc 1.33 generates incorrect debugging information for panic handlers not in the current crate:
Compiling:
```rust
// Taken from htt…
-
`cargo clippy` reports this warning for PartialUi derive macro:
```plain
warning: the method `build` doesn't need a mutable reference
|
25 | #[derive(Default, NwgPartial)]
| …
-
I ran `cargo clippy --fix` on my project, and it failed with the following output:
```
Compiling uzurion-launcher v0.0.0 (/home/ludovic/Desktop/prog/react-uzurion-launcher/src-tauri)
warning: fa…
-
OS: Manjaro 21.2.0 (Linux Kernel 5.13.19-2)
Remote OS: Fedora 32 (Container Image) (Proxmox 6 LXC Linux 5.4.143)
VS Code: 1.62.3
Rust Analyzer: 0.3.827, nightly
Rust (remote and local): 1.58.0-nig…
-
It is my opinion that this should not have been allowed in the first place, and should be forward-compat deprecated for eventual removal.
I tried this code:
```rust
macro_rules! m {
($…
CAD97 updated
9 months ago