File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ use crate::utils::{
74
74
rewrite_ident, trimmed_last_line_width, wrap_str,
75
75
} ;
76
76
77
+ use thin_vec:: ThinVec ;
78
+
77
79
/// Provides the original input contents from the span
78
80
/// of a chain element with trailing spaces trimmed.
79
81
fn format_overflow_style ( span : Span , context : & RewriteContext < ' _ > ) -> Option < String > {
@@ -168,7 +170,7 @@ enum ChainItemKind {
168
170
MethodCall (
169
171
ast:: PathSegment ,
170
172
Vec < ast:: GenericArg > ,
171
- Vec < ptr:: P < ast:: Expr > > ,
173
+ ThinVec < ptr:: P < ast:: Expr > > ,
172
174
) ,
173
175
StructField ( symbol:: Ident ) ,
174
176
TupleField ( symbol:: Ident , bool ) ,
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ extern crate rustc_expand;
23
23
extern crate rustc_parse;
24
24
extern crate rustc_session;
25
25
extern crate rustc_span;
26
+ extern crate thin_vec;
26
27
27
28
// Necessary to pull in object code as the rest of the rustc crates are shipped only as rmeta
28
29
// files.
You can’t perform that action at this time.
0 commit comments