This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
compiler/rustc_middle/src/ty/print
tests/ui/associated-type-bounds Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1084,9 +1084,11 @@ pub trait PrettyPrinter<'tcx>:
1084
1084
write ! ( self , "Sized" ) ?;
1085
1085
}
1086
1086
1087
- for re in lifetimes {
1088
- write ! ( self , " + " ) ?;
1089
- self = self . print_region ( re) ?;
1087
+ if !FORCE_TRIMMED_PATH . with ( |flag| flag. get ( ) ) {
1088
+ for re in lifetimes {
1089
+ write ! ( self , " + " ) ?;
1090
+ self = self . print_region ( re) ?;
1091
+ }
1090
1092
}
1091
1093
1092
1094
Ok ( self )
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ LL | union U3 { f: ManuallyDrop<dyn Iterator<Item: 'static>> }
114
114
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
115
115
|
116
116
= help: within `ManuallyDrop<(dyn Iterator<Item = impl Sized + 'static> + 'static)>`, the trait `Sized` is not implemented for `(dyn Iterator<Item = impl Sized + 'static> + 'static)`
117
- = note: required because it appears within the type `ManuallyDrop<dyn Iterator<Item = impl Sized + 'static >>`
117
+ = note: required because it appears within the type `ManuallyDrop<dyn Iterator<Item = impl Sized>>`
118
118
= note: no field of a union may have a dynamically sized type
119
119
= help: change the field's type to have a statically known size
120
120
help: borrowed types always have a statically known size
You can’t perform that action at this time.
0 commit comments