More space for qself paths

Fixes #1349
This commit is contained in:
Nick Cameron 2017-03-07 14:53:10 +13:00
parent 981b031c9f
commit e5638e0cb5
2 changed files with 1 additions and 4 deletions

View File

@ -87,8 +87,6 @@ pub fn rewrite_path(context: &RewriteContext,
span_lo = qself.ty.span.hi + BytePos(1);
}
let extra_offset = extra_offset(&result, shape);
let shape = try_opt!(shape.shrink_left(extra_offset));
rewrite_path_segments(path_context,
result,
path.segments.iter().skip(skip_count),

View File

@ -7,8 +7,7 @@ trait BarTrait<T>: Sized {
fn foo();
}
type Foo<T: FooTrait> =
<<T as FooTrait<U>>::Bar as BarTrait<U>>::Baz;
type Foo<T: FooTrait> = <<T as FooTrait<U>>::Bar as BarTrait<U>>::Baz;
type Bar<T: BarTrait> = <T as BarTrait<U>>::Baz;
fn some_func<T: FooTrait<U>, U>() {