File tree 2 files changed +4
-2
lines changed 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -335,7 +335,8 @@ create_config! {
335
335
verbose: bool , false , "Use verbose output" ;
336
336
skip_children: bool , false , "Don't reformat out of line modules" ;
337
337
file_lines: FileLines , FileLines :: all( ) ,
338
- "Lines to format" ;
338
+ "Lines to format; this is not supported in rustfmt.toml, and can only be specified \
339
+ via the --file-lines option";
339
340
max_width: usize , 100 , "Maximum width of each line" ;
340
341
ideal_width: usize , 80 , "Ideal width of each line" ;
341
342
tab_spaces: usize , 4 , "Number of spaces per tab" ;
Original file line number Diff line number Diff line change @@ -181,7 +181,8 @@ impl JsonSpan {
181
181
// for `FileLines`, so it will just panic instead.
182
182
impl rustc_serialize:: Decodable for FileLines {
183
183
fn decode < D : rustc_serialize:: Decoder > ( _: & mut D ) -> Result < Self , D :: Error > {
184
- unimplemented ! ( ) ;
184
+ panic ! ( "FileLines cannot be deserialized from a project rustfmt.toml file: please \
185
+ specify it via the `--file-lines` option instead") ;
185
186
}
186
187
}
187
188
You can’t perform that action at this time.
0 commit comments