diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-02-12 09:26:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-12 09:26:23 +0100 |
| commit | f30f6def0fb2c5d77a5a36e05e84ad60d9e87078 (patch) | |
| tree | d1627005ddc1f5cd6a0930822af799d98cfd55e1 /compiler/rustc_codegen_llvm/src/asm.rs | |
| parent | 36461e04471772b235f9512c4beab48befddd1a8 (diff) | |
| parent | b64a8222ab1868490bbcadc160a8c868b2ce5d13 (diff) | |
| download | rust-f30f6def0fb2c5d77a5a36e05e84ad60d9e87078.tar.gz rust-f30f6def0fb2c5d77a5a36e05e84ad60d9e87078.zip | |
Rollup merge of #93759 - dtolnay:usetree, r=nagisa
Pretty print ItemKind::Use in rustfmt style
This PR backports the formatting for `use` items from https://github.com/dtolnay/prettyplease into rustc_ast_pretty.
Before:
```rust
use core::{cmp::{Eq, Ord, PartialEq, PartialOrd},
convert::{AsMut, AsRef, From, Into},
iter::{DoubleEndedIterator, ExactSizeIterator, Extend, FromIterator,
IntoIterator, Iterator},
marker::{Copy as Copy, Send as Send, Sized as Sized, Sync as Sync, Unpin
as U}, ops::{*, Drop, Fn, FnMut, FnOnce}};
```
After:
```rust
use core::{
cmp::{Eq, Ord, PartialEq, PartialOrd},
convert::{AsMut, AsRef, From, Into},
iter::{
DoubleEndedIterator, ExactSizeIterator, Extend, FromIterator,
IntoIterator, Iterator,
},
marker::{
Copy as Copy, Send as Send, Sized as Sized, Sync as Sync, Unpin as U,
},
ops::{*, Drop, Fn, FnMut, FnOnce},
};
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/asm.rs')
0 files changed, 0 insertions, 0 deletions
