-
As a non-rust person I have no clue how to fix these ...
```
Compiling c2rust_out v0.0.0 (/prg/tmp/AFLrustrust)
error[E0658]: non-builtin inner attributes are unstable
--> c2rust-lib.rs:14:1
…
-
This repository does not currently use `cargo fmt`. This leads to a mixture of spaces and tabs in one file, complicates the contribution to the repository.
![image](https://github.com/paritytech/pari…
-
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.…
-
On rustfmt 1.6.0, I get surprising indentation when destructuring a struct where some fields are cfg-specific.
```rust
struct Demo {
field_name_foo: (),
field_name_bar: (),
#[cfg(fe…
-
As you can see from this diff, inline-attributes are viable and sometimes even useful (specifically: making diffs align properly, which has been an issue in Rand's `lib.rs` quite a few times).
```
…
-
Context: When `reorder_imports = true`, rustfmt mixes `pub` imports in with private imports.
Please add an option to put pub imports (aka exports) before normal imports.
IMO it's not idiomatic to mi…
-
### Code
[Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=ba936f5c8f209701c4b9a2ef27a06714)
```rust
fn main() {
let number =
// A comment
1;
…
-
Version: rustfmt 0.9.0-beta (69ad879 2018-07-27)
This code is unchanged with 0.8.2:
```rust
fn foo() {
let some_variable_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx = bar(a).…
-
Rustfmt spends a lot of time concatenating strings. This involves many allocations, `memcpy`s and deallocations. Common operations on types like ropes have much better time complexity than standard st…
-
Creating a lib crate
```
cargo new rust-lib --lib --vcs git
```
### Tests
Running tests
```
cargo test
```
Compile the files related to test, to check if there are any compilation errors
`…