-
Given the following code:
```rust
struct Foo {
something: Option,
bar: u32,
}
fn main() {
let a = Foo {
something: Some(1),
bar: 2,
};
if let Foo { som…
-
- [ ] build & push docker:
- [x] rust pipelines (latest), ;
- build linux;
- build macOS;
- test linux;
- rustfmt linux;
- clippy linux
- [ ] custom pipeline for missing transla…
-
Something like:
```rust
struct A {}
#[derive(Debug)]
struct B {}
```
With a space on line 2, line 2 gets removed, but without a space, it stays. I'm not entirely sure what tool this issues i…
-
**rust-analyzer version**: 0.3.1995-standalone
**rustc version**: rustc 1.78.0 (9b00956e5 2024-04-29)
**editor or extension**: VSCode (extension version v0.3.1995)
**code snippet to reproduce…
-
Tracking issue for unstable option: trailing_comma
-
Without `merge_derives`, rustfmt leaves the following code as-is:
```rust
#[repr(u8)]
#[derive(
Copy,
Clone,
Component,
Serialize,
Deserialize,
Debug,
Hash,
…
-
### 很荣幸看到您没有经过rustfmt格式化,也没有经过rust官方的lint:clippy的代码,也很抱歉没有带上你所说的“脑子”
### 对于您的代码有没有通过cargo check我是存疑的,或许你的那一行allow已经很好地掩护了你的屎
### 我承认我是一个傻逼,你给我喂的屎我全部吃了,不仅如此,我还对你的代码不断f8 ,ctrl . 修复一个个warn
### …
-
Having back-to-back `match` blocks causes this problem:
```rs
fn func u8>(f: F) -> u8 {
f(0)
}
fn main() {
func(|x|
match x {
x => x,
} + match x {
…
-
- Version: [4200ed](https://github.com/blahgeek/emacs-lsp-booster/commit/4200ed6ae0cd83b8e3fd1dbefb09121480951a22)
- Minimum reproducible steps
```sh
# gopls should not be in $PATH
cargo run -- …
-
It is generally expected that CLI programs on unix-like systems should have a man page. Elsewhere in the Rust toolchain, we do have `rustc.1`, `rustdoc.1`, `cargo.1`, and many `cargo-*.1` subcommands.…