fix: indentation issue on generic bounds
This commit is contained in:
parent
4f9c794ce1
commit
b30cb24286
3 changed files with 27 additions and 1 deletions
|
@ -936,7 +936,7 @@ fn join_bounds_inner(
|
|||
_ => false,
|
||||
};
|
||||
|
||||
let shape = if i > 0 && need_indent && force_newline {
|
||||
let shape = if need_indent && force_newline {
|
||||
shape
|
||||
.block_indent(context.config.tab_spaces())
|
||||
.with_max_width(context.config)
|
||||
|
|
13
tests/source/issue_4636.rs
Normal file
13
tests/source/issue_4636.rs
Normal file
|
@ -0,0 +1,13 @@
|
|||
pub trait PrettyPrinter<'tcx>:
|
||||
Printer<
|
||||
'tcx,
|
||||
Error = fmt::Error,
|
||||
Path = Self,
|
||||
Region = Self,
|
||||
Type = Self,
|
||||
DynExistential = Self,
|
||||
Const = Self,
|
||||
> + fmt::Write
|
||||
{
|
||||
//
|
||||
}
|
13
tests/target/issue_4636.rs
Normal file
13
tests/target/issue_4636.rs
Normal file
|
@ -0,0 +1,13 @@
|
|||
pub trait PrettyPrinter<'tcx>:
|
||||
Printer<
|
||||
'tcx,
|
||||
Error = fmt::Error,
|
||||
Path = Self,
|
||||
Region = Self,
|
||||
Type = Self,
|
||||
DynExistential = Self,
|
||||
Const = Self,
|
||||
> + fmt::Write
|
||||
{
|
||||
//
|
||||
}
|
Loading…
Reference in a new issue