]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/file-lines-3.rs
Tidy up and pass tests
[rust.git] / tests / target / file-lines-3.rs
index 19359b2ddf9ae1436e5d43182fd21618dc7643b2..fe465750ae110707075623830e04959001340c5a 100644 (file)
@@ -1,11 +1,11 @@
-// rustfmt-file_lines: [{"file":"tests/source/file-lines-3.rs","range":[4,8]},{"file":"tests/source/file-lines-3.rs","range":[10,15]}]
+// rustfmt-file_lines: [{"file":"tests/source/file-lines-3.rs","range":[5,9]},{"file":"tests/source/file-lines-3.rs","range":[11,16]}]
+// rustfmt-error_on_line_overflow: false
 
 fn floaters() {
     let x = Foo {
-            field1: val1,
-            field2: val2,
-        }
-        .method_call()
+        field1: val1,
+        field2: val2,
+    }.method_call()
         .method_call();
 
     let y = if cond { val1 } else { val2 }.method_call();
@@ -13,7 +13,7 @@ fn floaters() {
     {
         match x {
             PushParam => {
-                // params are 1-indexed
+                // comment
                 stack.push(mparams[match cur.to_digit(10) {
                                             Some(d) => d as usize - 1,
                                             None => return Err("bad param number".to_owned()),