-
I have an idea.
When we run `./mach test-tidy`
It will tell us
```
missing space
extra white space
...
```
We usually need to fix them by ourselves, and what if let it do automatically?
-
### Problem
I have a host A and a host B. Host A has rust installed. Host B - not. I decided to install on host B the same rust version host A has. So I typed this on host A:
```text
$ rustc --vers…
-
**Project description**
Hi! I know I'm early on this, but wanted to open an issue for attention and/or as a rallying point.
I am (likely very temporarily) in possession of a Yoga 7x (a Snapdrago…
-
We might look for a way to detect, and possibly remove, repeated trait bounds. Maybe as a lint? Or maybe this would be better in `rustfmt` or clippy?
An example from https://github.com/rust-lang/rust…
-
Given the following code:
```rust
//! Foobar
#![doc = "baz"]
// Allow some lints
#![allow(unknown_lints)]
```
...rustfmt removes the newline separating the crate-level doc comment from th…
-
``` rust
use arbitrary_int::{u2, u4};
use bitbybit::bitfield;
use custom::Custom1;
mod custom {
pub struct Custom1(T);
impl Custom1 {
pub const fn raw_value(&self) -> T {
…
-
Currently you can use `--unpretty=hir,typed` to print out the HIR with type annotations in comments. This could be vastly improved so that it is actually a useful for the user:
- use type ascription r…
-
I have code snippet below:
```rust
pub trait DataValue {
type Value;
type Mutation;
}
impl DataValue for Int64 {
type Mutation = Int64Mutation;
type Value = Int64Value;
}
…
-
By default, rustfmt currently formats the following code
```rust
use std::{ReallyLongImportTypeNameOne, ReallyLongImportTypeNameTwo, ReallyLongImportTypeNameThree, ReallyLongImportTypeNameFour};
…
-
Given this input:
```rust
a!(for A);
a!(for A);
a!(for A);
a!(for A);
```
rustfmt produces the following output:
```rust
a!(A);
a!(A);
a!(A);
a!(A);
```
Which is incorrect since macros c…