File tree Expand file tree Collapse file tree 8 files changed +5
-11
lines changed Expand file tree Collapse file tree 8 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- // TODO: add tests
12
-
13
11
use std:: fs;
14
12
use std:: io:: { self , Write } ;
15
13
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ where
175
175
None => continue ,
176
176
} ;
177
177
178
- // TODO (emilio): We could avoid this most of the time if needed, but
178
+ // FIXME (emilio): We could avoid this most of the time if needed, but
179
179
// it's not clear it's worth it.
180
180
if !file_filter. is_match ( file) {
181
181
continue ;
Original file line number Diff line number Diff line change @@ -125,8 +125,8 @@ impl Rewrite for ast::Local {
125
125
}
126
126
}
127
127
128
- // TODO convert to using rewrite style rather than visitor
129
- // TODO format modules in this style
128
+ // FIXME convert to using rewrite style rather than visitor
129
+ // FIXME format modules in this style
130
130
#[ allow( dead_code) ]
131
131
struct Item < ' a > {
132
132
keyword : & ' static str ,
Original file line number Diff line number Diff line change @@ -212,7 +212,6 @@ where
212
212
}
213
213
214
214
// Format a list of commented items into a string.
215
- // TODO: add unit tests
216
215
pub fn write_list < I , T > ( items : I , formatting : & ListFormatting ) -> Option < String >
217
216
where
218
217
I : IntoIterator < Item = T > + Clone ,
Original file line number Diff line number Diff line change @@ -192,7 +192,6 @@ pub fn rewrite_macro_inner(
192
192
} ;
193
193
}
194
194
// Format well-known macros which cannot be parsed as a valid AST.
195
- // TODO: Maybe add more macros?
196
195
if macro_name == "lazy_static!" && !has_comment {
197
196
if let success @ Some ( ..) = format_lazy_static ( context, shape, & ts) {
198
197
return success;
Original file line number Diff line number Diff line change @@ -43,8 +43,6 @@ impl<'a> FmtVisitor<'a> {
43
43
self . buffer . is_empty ( )
44
44
}
45
45
46
- // TODO these format_missing methods are ugly. Refactor and add unit tests
47
- // for the central whitespace stripping loop.
48
46
pub fn format_missing ( & mut self , end : BytePos ) {
49
47
// HACK(topecongiro)
50
48
// We use `format_missing()` to extract a missing comment between a macro
Original file line number Diff line number Diff line change 14
14
//! order. Trait items are reordered in pre-determined order (associated types
15
15
//! and constants comes before methods).
16
16
17
- // TODO (#2455): Reorder trait items.
17
+ // FIXME (#2455): Reorder trait items.
18
18
19
19
use config:: { lists:: * , Config } ;
20
20
use syntax:: { ast, attr, codemap:: Span } ;
Original file line number Diff line number Diff line change @@ -418,7 +418,7 @@ fn type_bound_colon(context: &RewriteContext) -> &'static str {
418
418
419
419
impl Rewrite for ast:: WherePredicate {
420
420
fn rewrite ( & self , context : & RewriteContext , shape : Shape ) -> Option < String > {
421
- // TODO : dead spans?
421
+ // FIXME : dead spans?
422
422
let result = match * self {
423
423
ast:: WherePredicate :: BoundPredicate ( ast:: WhereBoundPredicate {
424
424
ref bound_generic_params,
You can’t perform that action at this time.
0 commit comments