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::{
7474 rewrite_ident, trimmed_last_line_width, wrap_str,
7575} ;
7676
77+ use thin_vec:: ThinVec ;
78+
7779/// Provides the original input contents from the span
7880/// of a chain element with trailing spaces trimmed.
7981fn format_overflow_style ( span : Span , context : & RewriteContext < ' _ > ) -> Option < String > {
@@ -168,7 +170,7 @@ enum ChainItemKind {
168170 MethodCall (
169171 ast:: PathSegment ,
170172 Vec < ast:: GenericArg > ,
171- Vec < ptr:: P < ast:: Expr > > ,
173+ ThinVec < ptr:: P < ast:: Expr > > ,
172174 ) ,
173175 StructField ( symbol:: Ident ) ,
174176 TupleField ( symbol:: Ident , bool ) ,
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ extern crate rustc_expand;
2323extern crate rustc_parse;
2424extern crate rustc_session;
2525extern crate rustc_span;
26+ extern crate thin_vec;
2627
2728// Necessary to pull in object code as the rest of the rustc crates are shipped only as rmeta
2829// files.
You can’t perform that action at this time.
0 commit comments