[INFO] updating cached repository MoritzKn/ralculator [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/MoritzKn/ralculator [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/MoritzKn/ralculator" "work/ex/clippy-test-run/sources/stable/gh/MoritzKn/ralculator"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/MoritzKn/ralculator'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/MoritzKn/ralculator" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/MoritzKn/ralculator"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/MoritzKn/ralculator'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 0598026cb2bf42110fea0c34d8daec84825385e6 [INFO] sha for GitHub repo MoritzKn/ralculator: 0598026cb2bf42110fea0c34d8daec84825385e6 [INFO] validating manifest of MoritzKn/ralculator on toolchain stable [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of MoritzKn/ralculator on toolchain stable+rustflags=-Dclippy::into_iter_on_array [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing MoritzKn/ralculator [INFO] finished frobbing MoritzKn/ralculator [INFO] frobbed toml for MoritzKn/ralculator written to work/ex/clippy-test-run/sources/stable/gh/MoritzKn/ralculator/Cargo.toml [INFO] started frobbing MoritzKn/ralculator [INFO] finished frobbing MoritzKn/ralculator [INFO] frobbed toml for MoritzKn/ralculator written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/MoritzKn/ralculator/Cargo.toml [INFO] crate MoritzKn/ralculator has a lockfile. skipping [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] linting MoritzKn/ralculator against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-1/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/MoritzKn/ralculator:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+stable" "clippy" "--frozen" "--all" "--all-targets"` [INFO] [stdout] e9066d3faca6e3afd246cef587bb6e258c4fd377164c7b882165472cecc98ed9 [INFO] running `"docker" "start" "-a" "e9066d3faca6e3afd246cef587bb6e258c4fd377164c7b882165472cecc98ed9"` [INFO] [stderr] Blocking waiting for file lock on the registry index [INFO] [stderr] Compiling peg v0.5.3 [INFO] [stderr] Checking env_logger v0.4.3 [INFO] [stderr] Compiling ralculator v0.2.0 (/opt/crater/workdir) [INFO] [stderr] warning: lint name `never_loop` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore [INFO] [stderr] --> src/parser/grammar.rs:1:25 [INFO] [stderr] | [INFO] [stderr] 1 | #![allow(unknown_lints, never_loop)] [INFO] [stderr] | ^^^^^^^^^^ help: change it to: `clippy::never_loop` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(renamed_and_removed_lints)] on by default [INFO] [stderr] [INFO] [stderr] warning: lint name `never_loop` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore [INFO] [stderr] --> src/parser/grammar.rs:1:25 [INFO] [stderr] | [INFO] [stderr] 1 | #![allow(unknown_lints, never_loop)] [INFO] [stderr] | ^^^^^^^^^^ help: change it to: `clippy::never_loop` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(renamed_and_removed_lints)] on by default [INFO] [stderr] [INFO] [stderr] warning: lint name `never_loop` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore [INFO] [stderr] --> src/parser/grammar.rs:1:25 [INFO] [stderr] | [INFO] [stderr] 1 | #![allow(unknown_lints, never_loop)] [INFO] [stderr] | ^^^^^^^^^^ help: change it to: `clippy::never_loop` [INFO] [stderr] [INFO] [stderr] warning: this looks like an `else if` but the `else` is missing [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:58:60 [INFO] [stderr] | [INFO] [stderr] 58 | self . max_err_pos = pos ; self . expected . clear ( ) ; } if pos == self . [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::suspicious_else_formatting)] on by default [INFO] [stderr] = note: to remove this lint, add the missing `else` or add a new line before the second `if` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_else_formatting [INFO] [stderr] [INFO] [stderr] warning: this looks like an `else if` but the `else` is missing [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:63:1947 [INFO] [stderr] | [INFO] [stderr] 63 | fn __parse_expression < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = { let __seq_res = { __state . suppress_fail += 1 ; let __assert_res = { let __seq_res = match __parse_wrapped_atom ( __input , __state , __pos ) { Matched ( pos , _ ) => Matched ( pos , ( ) ) , Failed => Failed , } ; match __seq_res { Matched ( __pos , _ ) => { if __input . len ( ) > __pos { let ( __ch , __next ) = char_range_at ( __input , __pos ) ; match __ch { '+' | '-' | '*' | '/' | '^' => Matched ( __next , ( ) ) , _ => __state . mark_failure ( __pos , "[+-*/^]" ) , } } else { __state . mark_failure ( __pos , "[+-*/^]" ) } } Failed => Failed , } } ; __state . suppress_fail -= 1 ; match __assert_res { Matched ( _ , __value ) => Matched ( __pos , __value ) , Failed => Failed , } } ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = { fn __infix_parse < 'input > ( __min_prec : i32 , __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { if let Matched ( __pos , mut __infix_result ) = __parse_wrapped_atom ( __input , __state , __pos ) { let mut __repeat_pos = __pos ; loop { let __pos = __repeat_pos ; if 0i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "+" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Plus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "-" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Minus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 1i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "*" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Multiplication, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "/" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Divide, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 2i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "^" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Power, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } break ; } Matched ( __repeat_pos , __infix_result ) } else { Failed } } __infix_parse ( 0 , __input , __state , __pos ) } ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { exp } ) } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = { let __seq_res = __parse_prefix_operator ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , op ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { UnaryPrefixOperation(op, Box::new(exp)) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __seq_res = __parse_atom ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression_rest ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , rest ) => { Matched ( __pos , { finish_expression(exp, rest) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } } } } } } [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: to remove this lint, add the missing `else` or add a new line before the second `if` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_else_formatting [INFO] [stderr] [INFO] [stderr] warning: this looks like an `else if` but the `else` is missing [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:63:2607 [INFO] [stderr] | [INFO] [stderr] 63 | fn __parse_expression < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = { let __seq_res = { __state . suppress_fail += 1 ; let __assert_res = { let __seq_res = match __parse_wrapped_atom ( __input , __state , __pos ) { Matched ( pos , _ ) => Matched ( pos , ( ) ) , Failed => Failed , } ; match __seq_res { Matched ( __pos , _ ) => { if __input . len ( ) > __pos { let ( __ch , __next ) = char_range_at ( __input , __pos ) ; match __ch { '+' | '-' | '*' | '/' | '^' => Matched ( __next , ( ) ) , _ => __state . mark_failure ( __pos , "[+-*/^]" ) , } } else { __state . mark_failure ( __pos , "[+-*/^]" ) } } Failed => Failed , } } ; __state . suppress_fail -= 1 ; match __assert_res { Matched ( _ , __value ) => Matched ( __pos , __value ) , Failed => Failed , } } ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = { fn __infix_parse < 'input > ( __min_prec : i32 , __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { if let Matched ( __pos , mut __infix_result ) = __parse_wrapped_atom ( __input , __state , __pos ) { let mut __repeat_pos = __pos ; loop { let __pos = __repeat_pos ; if 0i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "+" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Plus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "-" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Minus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 1i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "*" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Multiplication, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "/" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Divide, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 2i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "^" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Power, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } break ; } Matched ( __repeat_pos , __infix_result ) } else { Failed } } __infix_parse ( 0 , __input , __state , __pos ) } ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { exp } ) } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = { let __seq_res = __parse_prefix_operator ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , op ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { UnaryPrefixOperation(op, Box::new(exp)) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __seq_res = __parse_atom ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression_rest ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , rest ) => { Matched ( __pos , { finish_expression(exp, rest) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } } } } } } [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: to remove this lint, add the missing `else` or add a new line before the second `if` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_else_formatting [INFO] [stderr] [INFO] [stderr] warning: this looks like an `else if` but the `else` is missing [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:63:1633 [INFO] [stderr] | [INFO] [stderr] 63 | fn __parse_expression < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = { let __seq_res = { __state . suppress_fail += 1 ; let __assert_res = { let __seq_res = match __parse_wrapped_atom ( __input , __state , __pos ) { Matched ( pos , _ ) => Matched ( pos , ( ) ) , Failed => Failed , } ; match __seq_res { Matched ( __pos , _ ) => { if __input . len ( ) > __pos { let ( __ch , __next ) = char_range_at ( __input , __pos ) ; match __ch { '+' | '-' | '*' | '/' | '^' => Matched ( __next , ( ) ) , _ => __state . mark_failure ( __pos , "[+-*/^]" ) , } } else { __state . mark_failure ( __pos , "[+-*/^]" ) } } Failed => Failed , } } ; __state . suppress_fail -= 1 ; match __assert_res { Matched ( _ , __value ) => Matched ( __pos , __value ) , Failed => Failed , } } ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = { fn __infix_parse < 'input > ( __min_prec : i32 , __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { if let Matched ( __pos , mut __infix_result ) = __parse_wrapped_atom ( __input , __state , __pos ) { let mut __repeat_pos = __pos ; loop { let __pos = __repeat_pos ; if 0i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "+" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Plus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "-" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Minus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 1i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "*" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Multiplication, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "/" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Divide, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 2i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "^" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Power, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } break ; } Matched ( __repeat_pos , __infix_result ) } else { Failed } } __infix_parse ( 0 , __input , __state , __pos ) } ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { exp } ) } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = { let __seq_res = __parse_prefix_operator ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , op ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { UnaryPrefixOperation(op, Box::new(exp)) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __seq_res = __parse_atom ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression_rest ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , rest ) => { Matched ( __pos , { finish_expression(exp, rest) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } } } } } } [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: to remove this lint, add the missing `else` or add a new line before the second `if` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_else_formatting [INFO] [stderr] [INFO] [stderr] warning: this looks like an `else if` but the `else` is missing [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:63:2292 [INFO] [stderr] | [INFO] [stderr] 63 | fn __parse_expression < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = { let __seq_res = { __state . suppress_fail += 1 ; let __assert_res = { let __seq_res = match __parse_wrapped_atom ( __input , __state , __pos ) { Matched ( pos , _ ) => Matched ( pos , ( ) ) , Failed => Failed , } ; match __seq_res { Matched ( __pos , _ ) => { if __input . len ( ) > __pos { let ( __ch , __next ) = char_range_at ( __input , __pos ) ; match __ch { '+' | '-' | '*' | '/' | '^' => Matched ( __next , ( ) ) , _ => __state . mark_failure ( __pos , "[+-*/^]" ) , } } else { __state . mark_failure ( __pos , "[+-*/^]" ) } } Failed => Failed , } } ; __state . suppress_fail -= 1 ; match __assert_res { Matched ( _ , __value ) => Matched ( __pos , __value ) , Failed => Failed , } } ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = { fn __infix_parse < 'input > ( __min_prec : i32 , __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { if let Matched ( __pos , mut __infix_result ) = __parse_wrapped_atom ( __input , __state , __pos ) { let mut __repeat_pos = __pos ; loop { let __pos = __repeat_pos ; if 0i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "+" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Plus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "-" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Minus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 1i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "*" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Multiplication, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "/" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Divide, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 2i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "^" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Power, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } break ; } Matched ( __repeat_pos , __infix_result ) } else { Failed } } __infix_parse ( 0 , __input , __state , __pos ) } ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { exp } ) } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = { let __seq_res = __parse_prefix_operator ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , op ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { UnaryPrefixOperation(op, Box::new(exp)) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __seq_res = __parse_atom ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression_rest ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , rest ) => { Matched ( __pos , { finish_expression(exp, rest) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } } } } } } [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: to remove this lint, add the missing `else` or add a new line before the second `if` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_else_formatting [INFO] [stderr] [INFO] [stderr] warning: lint name `never_loop` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore [INFO] [stderr] --> src/parser/grammar.rs:1:25 [INFO] [stderr] | [INFO] [stderr] 1 | #![allow(unknown_lints, never_loop)] [INFO] [stderr] | ^^^^^^^^^^ help: change it to: `clippy::never_loop` [INFO] [stderr] [INFO] [stderr] warning: this looks like an `else if` but the `else` is missing [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:58:60 [INFO] [stderr] | [INFO] [stderr] 58 | self . max_err_pos = pos ; self . expected . clear ( ) ; } if pos == self . [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::suspicious_else_formatting)] on by default [INFO] [stderr] = note: to remove this lint, add the missing `else` or add a new line before the second `if` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_else_formatting [INFO] [stderr] [INFO] [stderr] warning: this looks like an `else if` but the `else` is missing [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:63:1947 [INFO] [stderr] | [INFO] [stderr] 63 | fn __parse_expression < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = { let __seq_res = { __state . suppress_fail += 1 ; let __assert_res = { let __seq_res = match __parse_wrapped_atom ( __input , __state , __pos ) { Matched ( pos , _ ) => Matched ( pos , ( ) ) , Failed => Failed , } ; match __seq_res { Matched ( __pos , _ ) => { if __input . len ( ) > __pos { let ( __ch , __next ) = char_range_at ( __input , __pos ) ; match __ch { '+' | '-' | '*' | '/' | '^' => Matched ( __next , ( ) ) , _ => __state . mark_failure ( __pos , "[+-*/^]" ) , } } else { __state . mark_failure ( __pos , "[+-*/^]" ) } } Failed => Failed , } } ; __state . suppress_fail -= 1 ; match __assert_res { Matched ( _ , __value ) => Matched ( __pos , __value ) , Failed => Failed , } } ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = { fn __infix_parse < 'input > ( __min_prec : i32 , __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { if let Matched ( __pos , mut __infix_result ) = __parse_wrapped_atom ( __input , __state , __pos ) { let mut __repeat_pos = __pos ; loop { let __pos = __repeat_pos ; if 0i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "+" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Plus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "-" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Minus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 1i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "*" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Multiplication, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "/" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Divide, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 2i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "^" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Power, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } break ; } Matched ( __repeat_pos , __infix_result ) } else { Failed } } __infix_parse ( 0 , __input , __state , __pos ) } ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { exp } ) } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = { let __seq_res = __parse_prefix_operator ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , op ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { UnaryPrefixOperation(op, Box::new(exp)) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __seq_res = __parse_atom ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression_rest ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , rest ) => { Matched ( __pos , { finish_expression(exp, rest) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } } } } } } [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: to remove this lint, add the missing `else` or add a new line before the second `if` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_else_formatting [INFO] [stderr] [INFO] [stderr] warning: this looks like an `else if` but the `else` is missing [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:63:2607 [INFO] [stderr] | [INFO] [stderr] 63 | fn __parse_expression < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = { let __seq_res = { __state . suppress_fail += 1 ; let __assert_res = { let __seq_res = match __parse_wrapped_atom ( __input , __state , __pos ) { Matched ( pos , _ ) => Matched ( pos , ( ) ) , Failed => Failed , } ; match __seq_res { Matched ( __pos , _ ) => { if __input . len ( ) > __pos { let ( __ch , __next ) = char_range_at ( __input , __pos ) ; match __ch { '+' | '-' | '*' | '/' | '^' => Matched ( __next , ( ) ) , _ => __state . mark_failure ( __pos , "[+-*/^]" ) , } } else { __state . mark_failure ( __pos , "[+-*/^]" ) } } Failed => Failed , } } ; __state . suppress_fail -= 1 ; match __assert_res { Matched ( _ , __value ) => Matched ( __pos , __value ) , Failed => Failed , } } ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = { fn __infix_parse < 'input > ( __min_prec : i32 , __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { if let Matched ( __pos , mut __infix_result ) = __parse_wrapped_atom ( __input , __state , __pos ) { let mut __repeat_pos = __pos ; loop { let __pos = __repeat_pos ; if 0i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "+" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Plus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "-" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Minus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 1i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "*" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Multiplication, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "/" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Divide, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 2i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "^" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Power, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } break ; } Matched ( __repeat_pos , __infix_result ) } else { Failed } } __infix_parse ( 0 , __input , __state , __pos ) } ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { exp } ) } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = { let __seq_res = __parse_prefix_operator ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , op ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { UnaryPrefixOperation(op, Box::new(exp)) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __seq_res = __parse_atom ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression_rest ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , rest ) => { Matched ( __pos , { finish_expression(exp, rest) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } } } } } } [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: to remove this lint, add the missing `else` or add a new line before the second `if` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_else_formatting [INFO] [stderr] [INFO] [stderr] warning: this looks like an `else if` but the `else` is missing [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:63:1633 [INFO] [stderr] | [INFO] [stderr] 63 | fn __parse_expression < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = { let __seq_res = { __state . suppress_fail += 1 ; let __assert_res = { let __seq_res = match __parse_wrapped_atom ( __input , __state , __pos ) { Matched ( pos , _ ) => Matched ( pos , ( ) ) , Failed => Failed , } ; match __seq_res { Matched ( __pos , _ ) => { if __input . len ( ) > __pos { let ( __ch , __next ) = char_range_at ( __input , __pos ) ; match __ch { '+' | '-' | '*' | '/' | '^' => Matched ( __next , ( ) ) , _ => __state . mark_failure ( __pos , "[+-*/^]" ) , } } else { __state . mark_failure ( __pos , "[+-*/^]" ) } } Failed => Failed , } } ; __state . suppress_fail -= 1 ; match __assert_res { Matched ( _ , __value ) => Matched ( __pos , __value ) , Failed => Failed , } } ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = { fn __infix_parse < 'input > ( __min_prec : i32 , __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { if let Matched ( __pos , mut __infix_result ) = __parse_wrapped_atom ( __input , __state , __pos ) { let mut __repeat_pos = __pos ; loop { let __pos = __repeat_pos ; if 0i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "+" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Plus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "-" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Minus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 1i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "*" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Multiplication, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "/" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Divide, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 2i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "^" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Power, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } break ; } Matched ( __repeat_pos , __infix_result ) } else { Failed } } __infix_parse ( 0 , __input , __state , __pos ) } ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { exp } ) } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = { let __seq_res = __parse_prefix_operator ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , op ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { UnaryPrefixOperation(op, Box::new(exp)) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __seq_res = __parse_atom ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression_rest ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , rest ) => { Matched ( __pos , { finish_expression(exp, rest) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } } } } } } [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: to remove this lint, add the missing `else` or add a new line before the second `if` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_else_formatting [INFO] [stderr] [INFO] [stderr] warning: this looks like an `else if` but the `else` is missing [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:63:2292 [INFO] [stderr] | [INFO] [stderr] 63 | fn __parse_expression < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = { let __seq_res = { __state . suppress_fail += 1 ; let __assert_res = { let __seq_res = match __parse_wrapped_atom ( __input , __state , __pos ) { Matched ( pos , _ ) => Matched ( pos , ( ) ) , Failed => Failed , } ; match __seq_res { Matched ( __pos , _ ) => { if __input . len ( ) > __pos { let ( __ch , __next ) = char_range_at ( __input , __pos ) ; match __ch { '+' | '-' | '*' | '/' | '^' => Matched ( __next , ( ) ) , _ => __state . mark_failure ( __pos , "[+-*/^]" ) , } } else { __state . mark_failure ( __pos , "[+-*/^]" ) } } Failed => Failed , } } ; __state . suppress_fail -= 1 ; match __assert_res { Matched ( _ , __value ) => Matched ( __pos , __value ) , Failed => Failed , } } ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = { fn __infix_parse < 'input > ( __min_prec : i32 , __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { if let Matched ( __pos , mut __infix_result ) = __parse_wrapped_atom ( __input , __state , __pos ) { let mut __repeat_pos = __pos ; loop { let __pos = __repeat_pos ; if 0i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "+" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Plus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "-" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Minus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 1i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "*" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Multiplication, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "/" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Divide, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 2i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "^" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Power, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } break ; } Matched ( __repeat_pos , __infix_result ) } else { Failed } } __infix_parse ( 0 , __input , __state , __pos ) } ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { exp } ) } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = { let __seq_res = __parse_prefix_operator ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , op ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { UnaryPrefixOperation(op, Box::new(exp)) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __seq_res = __parse_atom ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression_rest ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , rest ) => { Matched ( __pos , { finish_expression(exp, rest) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } } } } } } [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: to remove this lint, add the missing `else` or add a new line before the second `if` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_else_formatting [INFO] [stderr] [INFO] [stderr] warning: an inclusive range would be more readable [INFO] [stderr] --> src/exec/expression.rs:40:14 [INFO] [stderr] | [INFO] [stderr] 40 | for i in 1..(value + 1) { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: use: `1..=value` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::range_plus_one)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#range_plus_one [INFO] [stderr] [INFO] [stderr] warning: You are using an explicit closure for cloning elements [INFO] [stderr] --> src/input_error.rs:25:24 [INFO] [stderr] | [INFO] [stderr] 25 | let mut expected = expected.iter().map(|s| *s).collect::>(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: Consider calling the dedicated `cloned` method: `expected.iter().cloned()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::map_clone)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone [INFO] [stderr] [INFO] [stderr] warning: length comparison to zero [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:15:6 [INFO] [stderr] | [INFO] [stderr] 15 | ; if self . expected . len ( ) == 0 { try ! ( write ! ( fmt , "EOF" ) ) ; } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `self . expected.is_empty()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::len_zero)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stderr] [INFO] [stderr] warning: You appear to be counting bytes the naive way [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:50:46 [INFO] [stderr] | [INFO] [stderr] 50 | let before = & input [ .. pos ] ; let line = before . as_bytes ( ) . iter ( [INFO] [stderr] | ______________________________________________^ [INFO] [stderr] 51 | | ) . filter ( | && c | c == b'\n' ) . count ( ) + 1 ; let col = before . chars [INFO] [stderr] | |_______________________________________________^ help: Consider using the bytecount crate: `bytecount::count(before . as_bytes ( ), b'\n')` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::naive_bytecount)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#naive_bytecount [INFO] [stderr] [INFO] [stderr] warning: passing a unit value to a function [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:63:870 [INFO] [stderr] | [INFO] [stderr] 63 | fn __parse_expression < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = { let __seq_res = { __state . suppress_fail += 1 ; let __assert_res = { let __seq_res = match __parse_wrapped_atom ( __input , __state , __pos ) { Matched ( pos , _ ) => Matched ( pos , ( ) ) , Failed => Failed , } ; match __seq_res { Matched ( __pos , _ ) => { if __input . len ( ) > __pos { let ( __ch , __next ) = char_range_at ( __input , __pos ) ; match __ch { '+' | '-' | '*' | '/' | '^' => Matched ( __next , ( ) ) , _ => __state . mark_failure ( __pos , "[+-*/^]" ) , } } else { __state . mark_failure ( __pos , "[+-*/^]" ) } } Failed => Failed , } } ; __state . suppress_fail -= 1 ; match __assert_res { Matched ( _ , __value ) => Matched ( __pos , __value ) , Failed => Failed , } } ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = { fn __infix_parse < 'input > ( __min_prec : i32 , __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { if let Matched ( __pos , mut __infix_result ) = __parse_wrapped_atom ( __input , __state , __pos ) { let mut __repeat_pos = __pos ; loop { let __pos = __repeat_pos ; if 0i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "+" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Plus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "-" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Minus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 1i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "*" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Multiplication, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "/" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Divide, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 2i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "^" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Power, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } break ; } Matched ( __repeat_pos , __infix_result ) } else { Failed } } __infix_parse ( 0 , __input , __state , __pos ) } ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { exp } ) } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = { let __seq_res = __parse_prefix_operator ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , op ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { UnaryPrefixOperation(op, Box::new(exp)) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __seq_res = __parse_atom ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression_rest ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , rest ) => { Matched ( __pos , { finish_expression(exp, rest) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } } } } } } [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unit_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg [INFO] [stderr] help: if you intended to pass a unit value, use a unit literal instead [INFO] [stderr] | [INFO] [stderr] 63 | fn __parse_expression < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = { let __seq_res = { __state . suppress_fail += 1 ; let __assert_res = { let __seq_res = match __parse_wrapped_atom ( __input , __state , __pos ) { Matched ( pos , _ ) => Matched ( pos , ( ) ) , Failed => Failed , } ; match __seq_res { Matched ( __pos , _ ) => { if __input . len ( ) > __pos { let ( __ch , __next ) = char_range_at ( __input , __pos ) ; match __ch { '+' | '-' | '*' | '/' | '^' => Matched ( __next , ( ) ) , _ => __state . mark_failure ( __pos , "[+-*/^]" ) , } } else { __state . mark_failure ( __pos , "[+-*/^]" ) } } Failed => Failed , } } ; __state . suppress_fail -= 1 ; match __assert_res { Matched ( _ , __value ) => Matched ( __pos , () ) , Failed => Failed , } } ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = { fn __infix_parse < 'input > ( __min_prec : i32 , __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { if let Matched ( __pos , mut __infix_result ) = __parse_wrapped_atom ( __input , __state , __pos ) { let mut __repeat_pos = __pos ; loop { let __pos = __repeat_pos ; if 0i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "+" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Plus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "-" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Minus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 1i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "*" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Multiplication, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "/" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Divide, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 2i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "^" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Power, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } break ; } Matched ( __repeat_pos , __infix_result ) } else { Failed } } __infix_parse ( 0 , __input , __state , __pos ) } ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { exp } ) } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = { let __seq_res = __parse_prefix_operator ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , op ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { UnaryPrefixOperation(op, Box::new(exp)) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __seq_res = __parse_atom ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression_rest ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , rest ) => { Matched ( __pos , { finish_expression(exp, rest) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } } } } } } [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: passing a unit value to a function [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:75:714 [INFO] [stderr] | [INFO] [stderr] 75 | fn __parse_raw_number < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < f64 > { # ! [ allow ( non_snake_case , unused ) ] { let __seq_res = { let str_start = __pos ; match { let mut __repeat_pos = __pos ; let mut __repeat_value = vec ! ( ) ; loop { let __pos = __repeat_pos ; let __step_res = if __input . len ( ) > __pos { let ( __ch , __next ) = char_range_at ( __input , __pos ) ; match __ch { '0' ... '9' => Matched ( __next , ( ) ) , _ => __state . mark_failure ( __pos , "[0-9]" ) , } } else { __state . mark_failure ( __pos , "[0-9]" ) } ; match __step_res { Matched ( __newpos , __value ) => { __repeat_pos = __newpos ; __repeat_value . push ( __value ) ; } , Failed => { break ; } } } if __repeat_value . len ( ) >= 1 { Matched ( __repeat_pos , ( ) ) } else { Failed } } { Matched ( __newpos , _ ) => { Matched ( __newpos , & __input [ str_start .. __newpos ] ) } , Failed => Failed , } } ; match __seq_res { Matched ( __pos , n ) => { Matched ( __pos , { n.parse().unwrap() } ) } Failed => Failed , } } } [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg [INFO] [stderr] help: if you intended to pass a unit value, use a unit literal instead [INFO] [stderr] | [INFO] [stderr] 75 | fn __parse_raw_number < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < f64 > { # ! [ allow ( non_snake_case , unused ) ] { let __seq_res = { let str_start = __pos ; match { let mut __repeat_pos = __pos ; let mut __repeat_value = vec ! ( ) ; loop { let __pos = __repeat_pos ; let __step_res = if __input . len ( ) > __pos { let ( __ch , __next ) = char_range_at ( __input , __pos ) ; match __ch { '0' ... '9' => Matched ( __next , ( ) ) , _ => __state . mark_failure ( __pos , "[0-9]" ) , } } else { __state . mark_failure ( __pos , "[0-9]" ) } ; match __step_res { Matched ( __newpos , __value ) => { __repeat_pos = __newpos ; __repeat_value . push ( () ) ; } , Failed => { break ; } } } if __repeat_value . len ( ) >= 1 { Matched ( __repeat_pos , ( ) ) } else { Failed } } { Matched ( __newpos , _ ) => { Matched ( __newpos , & __input [ str_start .. __newpos ] ) } , Failed => Failed , } } ; match __seq_res { Matched ( __pos , n ) => { Matched ( __pos , { n.parse().unwrap() } ) } Failed => Failed , } } } [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: length comparison to one [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:75:759 [INFO] [stderr] | [INFO] [stderr] 75 | fn __parse_raw_number < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < f64 > { # ! [ allow ( non_snake_case , unused ) ] { let __seq_res = { let str_start = __pos ; match { let mut __repeat_pos = __pos ; let mut __repeat_value = vec ! ( ) ; loop { let __pos = __repeat_pos ; let __step_res = if __input . len ( ) > __pos { let ( __ch , __next ) = char_range_at ( __input , __pos ) ; match __ch { '0' ... '9' => Matched ( __next , ( ) ) , _ => __state . mark_failure ( __pos , "[0-9]" ) , } } else { __state . mark_failure ( __pos , "[0-9]" ) } ; match __step_res { Matched ( __newpos , __value ) => { __repeat_pos = __newpos ; __repeat_value . push ( __value ) ; } , Failed => { break ; } } } if __repeat_value . len ( ) >= 1 { Matched ( __repeat_pos , ( ) ) } else { Failed } } { Matched ( __newpos , _ ) => { Matched ( __newpos , & __input [ str_start .. __newpos ] ) } , Failed => Failed , } } ; match __seq_res { Matched ( __pos , n ) => { Matched ( __pos , { n.parse().unwrap() } ) } Failed => Failed , } } } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!__repeat_value.is_empty()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stderr] [INFO] [stderr] warning: passing a unit value to a function [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:81:444 [INFO] [stderr] | [INFO] [stderr] 81 | fn __parse___ < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < () > { # ! [ allow ( non_snake_case , unused ) ] { __state . suppress_fail += 1 ; let res = { let mut __repeat_pos = __pos ; loop { let __pos = __repeat_pos ; let __step_res = { let __choice_res = __parse_whitespace ( __input , __state , __pos ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => __parse_eol ( __input , __state , __pos ) } } ; match __step_res { Matched ( __newpos , __value ) => { __repeat_pos = __newpos ; } , Failed => { break ; } } } Matched ( __repeat_pos , ( ) ) } ; __state . suppress_fail -= 1 ; res } } [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg [INFO] [stderr] help: if you intended to pass a unit value, use a unit literal instead [INFO] [stderr] | [INFO] [stderr] 81 | fn __parse___ < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < () > { # ! [ allow ( non_snake_case , unused ) ] { __state . suppress_fail += 1 ; let res = { let mut __repeat_pos = __pos ; loop { let __pos = __repeat_pos ; let __step_res = { let __choice_res = __parse_whitespace ( __input , __state , __pos ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , () ) , Failed => __parse_eol ( __input , __state , __pos ) } } ; match __step_res { Matched ( __newpos , __value ) => { __repeat_pos = __newpos ; } , Failed => { break ; } } } Matched ( __repeat_pos , ( ) ) } ; __state . suppress_fail -= 1 ; res } } [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: passing a unit value to a function [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:83:315 [INFO] [stderr] | [INFO] [stderr] 83 | fn __parse_eol < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < () > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = slice_eq ( __input , __state , __pos , "\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\u{2028}" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => slice_eq ( __input , __state , __pos , "\u{2029}" ) } } } } } } } } } [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg [INFO] [stderr] help: if you intended to pass a unit value, use a unit literal instead [INFO] [stderr] | [INFO] [stderr] 83 | fn __parse_eol < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < () > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = slice_eq ( __input , __state , __pos , "\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , () ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\u{2028}" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => slice_eq ( __input , __state , __pos , "\u{2029}" ) } } } } } } } } } [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: passing a unit value to a function [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:83:478 [INFO] [stderr] | [INFO] [stderr] 83 | fn __parse_eol < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < () > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = slice_eq ( __input , __state , __pos , "\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\u{2028}" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => slice_eq ( __input , __state , __pos , "\u{2029}" ) } } } } } } } } } [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg [INFO] [stderr] help: if you intended to pass a unit value, use a unit literal instead [INFO] [stderr] | [INFO] [stderr] 83 | fn __parse_eol < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < () > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = slice_eq ( __input , __state , __pos , "\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , () ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\u{2028}" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => slice_eq ( __input , __state , __pos , "\u{2029}" ) } } } } } } } } } [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: passing a unit value to a function [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:83:639 [INFO] [stderr] | [INFO] [stderr] 83 | fn __parse_eol < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < () > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = slice_eq ( __input , __state , __pos , "\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\u{2028}" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => slice_eq ( __input , __state , __pos , "\u{2029}" ) } } } } } } } } } [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg [INFO] [stderr] help: if you intended to pass a unit value, use a unit literal instead [INFO] [stderr] | [INFO] [stderr] 83 | fn __parse_eol < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < () > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = slice_eq ( __input , __state , __pos , "\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , () ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\u{2028}" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => slice_eq ( __input , __state , __pos , "\u{2029}" ) } } } } } } } } } [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: passing a unit value to a function [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:83:806 [INFO] [stderr] | [INFO] [stderr] 83 | fn __parse_eol < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < () > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = slice_eq ( __input , __state , __pos , "\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\u{2028}" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => slice_eq ( __input , __state , __pos , "\u{2029}" ) } } } } } } } } } [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg [INFO] [stderr] help: if you intended to pass a unit value, use a unit literal instead [INFO] [stderr] | [INFO] [stderr] 83 | fn __parse_eol < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < () > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = slice_eq ( __input , __state , __pos , "\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\u{2028}" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , () ) , Failed => slice_eq ( __input , __state , __pos , "\u{2029}" ) } } } } } } } } } [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:87:2 [INFO] [stderr] | [INFO] [stderr] 87 | pub fn parse < 'input > ( __input : & 'input str ) -> ParseResult < Root > { # ! [ allow ( non_snake_case , unused ) ] let mut __state = ParseState :: new ( ) ; match __parse_parse ( __input , & mut __state , 0 ) { Matched ( __pos , __value ) => { if __pos == __input . len ( ) { return Ok ( __value ) } } _ => { } } let ( __line , __col ) = pos_to_line ( __input , __state . max_err_pos ) ; Err ( ParseError { line : __line , column : __col , offset : __state . max_err_pos , expected : __state . expected , } ) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_lifetimes)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:87:163 [INFO] [stderr] | [INFO] [stderr] 87 | pub fn parse < 'input > ( __input : & 'input str ) -> ParseResult < Root > { # ! [ allow ( non_snake_case , unused ) ] let mut __state = ParseState :: new ( ) ; match __parse_parse ( __input , & mut __state , 0 ) { Matched ( __pos , __value ) => { if __pos == __input . len ( ) { return Ok ( __value ) } } _ => { } } let ( __line , __col ) = pos_to_line ( __input , __state . max_err_pos ) ; Err ( ParseError { line : __line , column : __col , offset : __state . max_err_pos , expected : __state . expected , } ) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `if let Matched ( __pos , __value ) = __parse_parse ( __input , & mut __state , 0 ) { if __pos == __input . len ( ) { return Ok ( __value ) } }` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_match)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] warning: an inclusive range would be more readable [INFO] [stderr] --> src/exec/expression.rs:40:14 [INFO] [stderr] | [INFO] [stderr] 40 | for i in 1..(value + 1) { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: use: `1..=value` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::range_plus_one)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#range_plus_one [INFO] [stderr] [INFO] [stderr] warning: You are using an explicit closure for cloning elements [INFO] [stderr] --> src/input_error.rs:25:24 [INFO] [stderr] | [INFO] [stderr] 25 | let mut expected = expected.iter().map(|s| *s).collect::>(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: Consider calling the dedicated `cloned` method: `expected.iter().cloned()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::map_clone)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone [INFO] [stderr] [INFO] [stderr] warning: useless use of `vec!` [INFO] [stderr] --> src/input_error.rs:57:24 [INFO] [stderr] | [INFO] [stderr] 57 | assert_eq!(or_list(&vec!["foo"]), String::from("foo")); [INFO] [stderr] | ^^^^^^^^^^^^ help: you can use a slice directly: `&["foo"]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::useless_vec)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stderr] [INFO] [stderr] warning: useless use of `vec!` [INFO] [stderr] --> src/input_error.rs:62:24 [INFO] [stderr] | [INFO] [stderr] 62 | assert_eq!(or_list(&vec!["foo", "bar"]), String::from("foo or bar")); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&["foo", "bar"]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stderr] [INFO] [stderr] warning: useless use of `vec!` [INFO] [stderr] --> src/input_error.rs:68:17 [INFO] [stderr] | [INFO] [stderr] 68 | or_list(&vec!["foo", "bar", "baz"]), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&["foo", "bar", "baz"]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stderr] [INFO] [stderr] warning: useless use of `vec!` [INFO] [stderr] --> src/input_error.rs:76:17 [INFO] [stderr] | [INFO] [stderr] 76 | or_list(&vec!["a", "b", "c", "d", "e"]), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&["a", "b", "c", "d", "e"]` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stderr] [INFO] [stderr] warning: length comparison to zero [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:15:6 [INFO] [stderr] | [INFO] [stderr] 15 | ; if self . expected . len ( ) == 0 { try ! ( write ! ( fmt , "EOF" ) ) ; } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `self . expected.is_empty()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::len_zero)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stderr] [INFO] [stderr] warning: You appear to be counting bytes the naive way [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:50:46 [INFO] [stderr] | [INFO] [stderr] 50 | let before = & input [ .. pos ] ; let line = before . as_bytes ( ) . iter ( [INFO] [stderr] | ______________________________________________^ [INFO] [stderr] 51 | | ) . filter ( | && c | c == b'\n' ) . count ( ) + 1 ; let col = before . chars [INFO] [stderr] | |_______________________________________________^ help: Consider using the bytecount crate: `bytecount::count(before . as_bytes ( ), b'\n')` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::naive_bytecount)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#naive_bytecount [INFO] [stderr] [INFO] [stderr] warning: passing a unit value to a function [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:63:870 [INFO] [stderr] | [INFO] [stderr] 63 | fn __parse_expression < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = { let __seq_res = { __state . suppress_fail += 1 ; let __assert_res = { let __seq_res = match __parse_wrapped_atom ( __input , __state , __pos ) { Matched ( pos , _ ) => Matched ( pos , ( ) ) , Failed => Failed , } ; match __seq_res { Matched ( __pos , _ ) => { if __input . len ( ) > __pos { let ( __ch , __next ) = char_range_at ( __input , __pos ) ; match __ch { '+' | '-' | '*' | '/' | '^' => Matched ( __next , ( ) ) , _ => __state . mark_failure ( __pos , "[+-*/^]" ) , } } else { __state . mark_failure ( __pos , "[+-*/^]" ) } } Failed => Failed , } } ; __state . suppress_fail -= 1 ; match __assert_res { Matched ( _ , __value ) => Matched ( __pos , __value ) , Failed => Failed , } } ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = { fn __infix_parse < 'input > ( __min_prec : i32 , __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { if let Matched ( __pos , mut __infix_result ) = __parse_wrapped_atom ( __input , __state , __pos ) { let mut __repeat_pos = __pos ; loop { let __pos = __repeat_pos ; if 0i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "+" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Plus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "-" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Minus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 1i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "*" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Multiplication, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "/" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Divide, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 2i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "^" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Power, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } break ; } Matched ( __repeat_pos , __infix_result ) } else { Failed } } __infix_parse ( 0 , __input , __state , __pos ) } ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { exp } ) } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = { let __seq_res = __parse_prefix_operator ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , op ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { UnaryPrefixOperation(op, Box::new(exp)) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __seq_res = __parse_atom ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression_rest ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , rest ) => { Matched ( __pos , { finish_expression(exp, rest) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } } } } } } [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unit_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg [INFO] [stderr] help: if you intended to pass a unit value, use a unit literal instead [INFO] [stderr] | [INFO] [stderr] 63 | fn __parse_expression < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = { let __seq_res = { __state . suppress_fail += 1 ; let __assert_res = { let __seq_res = match __parse_wrapped_atom ( __input , __state , __pos ) { Matched ( pos , _ ) => Matched ( pos , ( ) ) , Failed => Failed , } ; match __seq_res { Matched ( __pos , _ ) => { if __input . len ( ) > __pos { let ( __ch , __next ) = char_range_at ( __input , __pos ) ; match __ch { '+' | '-' | '*' | '/' | '^' => Matched ( __next , ( ) ) , _ => __state . mark_failure ( __pos , "[+-*/^]" ) , } } else { __state . mark_failure ( __pos , "[+-*/^]" ) } } Failed => Failed , } } ; __state . suppress_fail -= 1 ; match __assert_res { Matched ( _ , __value ) => Matched ( __pos , () ) , Failed => Failed , } } ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = { fn __infix_parse < 'input > ( __min_prec : i32 , __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < Expression > { if let Matched ( __pos , mut __infix_result ) = __parse_wrapped_atom ( __input , __state , __pos ) { let mut __repeat_pos = __pos ; loop { let __pos = __repeat_pos ; if 0i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "+" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Plus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "-" ) { if let Matched ( __pos , right ) = __infix_parse ( 1i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Minus, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 1i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "*" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Multiplication, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "/" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Divide, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } if 2i32 >= __min_prec { if let Matched ( __pos , _ ) = slice_eq ( __input , __state , __pos , "^" ) { if let Matched ( __pos , right ) = __infix_parse ( 2i32 , __input , __state , __pos ) { let left = __infix_result ; __infix_result = { BinaryOperation(Box::new(left), Power, Box::new(right)) } ; __repeat_pos = __pos ; continue ; } } } break ; } Matched ( __repeat_pos , __infix_result ) } else { Failed } } __infix_parse ( 0 , __input , __state , __pos ) } ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { exp } ) } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = { let __seq_res = __parse_prefix_operator ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , op ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { Matched ( __pos , { UnaryPrefixOperation(op, Box::new(exp)) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __seq_res = __parse_atom ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , exp ) => { { let __seq_res = __parse___ ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , _ ) => { { let __seq_res = __parse_expression_rest ( __input , __state , __pos ) ; match __seq_res { Matched ( __pos , rest ) => { Matched ( __pos , { finish_expression(exp, rest) } ) } Failed => Failed , } } } Failed => Failed , } } } Failed => Failed , } } } } } } } [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: passing a unit value to a function [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:75:714 [INFO] [stderr] | [INFO] [stderr] 75 | fn __parse_raw_number < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < f64 > { # ! [ allow ( non_snake_case , unused ) ] { let __seq_res = { let str_start = __pos ; match { let mut __repeat_pos = __pos ; let mut __repeat_value = vec ! ( ) ; loop { let __pos = __repeat_pos ; let __step_res = if __input . len ( ) > __pos { let ( __ch , __next ) = char_range_at ( __input , __pos ) ; match __ch { '0' ... '9' => Matched ( __next , ( ) ) , _ => __state . mark_failure ( __pos , "[0-9]" ) , } } else { __state . mark_failure ( __pos , "[0-9]" ) } ; match __step_res { Matched ( __newpos , __value ) => { __repeat_pos = __newpos ; __repeat_value . push ( __value ) ; } , Failed => { break ; } } } if __repeat_value . len ( ) >= 1 { Matched ( __repeat_pos , ( ) ) } else { Failed } } { Matched ( __newpos , _ ) => { Matched ( __newpos , & __input [ str_start .. __newpos ] ) } , Failed => Failed , } } ; match __seq_res { Matched ( __pos , n ) => { Matched ( __pos , { n.parse().unwrap() } ) } Failed => Failed , } } } [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg [INFO] [stderr] help: if you intended to pass a unit value, use a unit literal instead [INFO] [stderr] | [INFO] [stderr] 75 | fn __parse_raw_number < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < f64 > { # ! [ allow ( non_snake_case , unused ) ] { let __seq_res = { let str_start = __pos ; match { let mut __repeat_pos = __pos ; let mut __repeat_value = vec ! ( ) ; loop { let __pos = __repeat_pos ; let __step_res = if __input . len ( ) > __pos { let ( __ch , __next ) = char_range_at ( __input , __pos ) ; match __ch { '0' ... '9' => Matched ( __next , ( ) ) , _ => __state . mark_failure ( __pos , "[0-9]" ) , } } else { __state . mark_failure ( __pos , "[0-9]" ) } ; match __step_res { Matched ( __newpos , __value ) => { __repeat_pos = __newpos ; __repeat_value . push ( () ) ; } , Failed => { break ; } } } if __repeat_value . len ( ) >= 1 { Matched ( __repeat_pos , ( ) ) } else { Failed } } { Matched ( __newpos , _ ) => { Matched ( __newpos , & __input [ str_start .. __newpos ] ) } , Failed => Failed , } } ; match __seq_res { Matched ( __pos , n ) => { Matched ( __pos , { n.parse().unwrap() } ) } Failed => Failed , } } } [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: length comparison to one [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:75:759 [INFO] [stderr] | [INFO] [stderr] 75 | fn __parse_raw_number < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < f64 > { # ! [ allow ( non_snake_case , unused ) ] { let __seq_res = { let str_start = __pos ; match { let mut __repeat_pos = __pos ; let mut __repeat_value = vec ! ( ) ; loop { let __pos = __repeat_pos ; let __step_res = if __input . len ( ) > __pos { let ( __ch , __next ) = char_range_at ( __input , __pos ) ; match __ch { '0' ... '9' => Matched ( __next , ( ) ) , _ => __state . mark_failure ( __pos , "[0-9]" ) , } } else { __state . mark_failure ( __pos , "[0-9]" ) } ; match __step_res { Matched ( __newpos , __value ) => { __repeat_pos = __newpos ; __repeat_value . push ( __value ) ; } , Failed => { break ; } } } if __repeat_value . len ( ) >= 1 { Matched ( __repeat_pos , ( ) ) } else { Failed } } { Matched ( __newpos , _ ) => { Matched ( __newpos , & __input [ str_start .. __newpos ] ) } , Failed => Failed , } } ; match __seq_res { Matched ( __pos , n ) => { Matched ( __pos , { n.parse().unwrap() } ) } Failed => Failed , } } } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!__repeat_value.is_empty()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stderr] [INFO] [stderr] warning: passing a unit value to a function [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:81:444 [INFO] [stderr] | [INFO] [stderr] 81 | fn __parse___ < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < () > { # ! [ allow ( non_snake_case , unused ) ] { __state . suppress_fail += 1 ; let res = { let mut __repeat_pos = __pos ; loop { let __pos = __repeat_pos ; let __step_res = { let __choice_res = __parse_whitespace ( __input , __state , __pos ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => __parse_eol ( __input , __state , __pos ) } } ; match __step_res { Matched ( __newpos , __value ) => { __repeat_pos = __newpos ; } , Failed => { break ; } } } Matched ( __repeat_pos , ( ) ) } ; __state . suppress_fail -= 1 ; res } } [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg [INFO] [stderr] help: if you intended to pass a unit value, use a unit literal instead [INFO] [stderr] | [INFO] [stderr] 81 | fn __parse___ < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < () > { # ! [ allow ( non_snake_case , unused ) ] { __state . suppress_fail += 1 ; let res = { let mut __repeat_pos = __pos ; loop { let __pos = __repeat_pos ; let __step_res = { let __choice_res = __parse_whitespace ( __input , __state , __pos ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , () ) , Failed => __parse_eol ( __input , __state , __pos ) } } ; match __step_res { Matched ( __newpos , __value ) => { __repeat_pos = __newpos ; } , Failed => { break ; } } } Matched ( __repeat_pos , ( ) ) } ; __state . suppress_fail -= 1 ; res } } [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: passing a unit value to a function [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:83:315 [INFO] [stderr] | [INFO] [stderr] 83 | fn __parse_eol < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < () > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = slice_eq ( __input , __state , __pos , "\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\u{2028}" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => slice_eq ( __input , __state , __pos , "\u{2029}" ) } } } } } } } } } [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg [INFO] [stderr] help: if you intended to pass a unit value, use a unit literal instead [INFO] [stderr] | [INFO] [stderr] 83 | fn __parse_eol < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < () > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = slice_eq ( __input , __state , __pos , "\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , () ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\u{2028}" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => slice_eq ( __input , __state , __pos , "\u{2029}" ) } } } } } } } } } [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: passing a unit value to a function [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:83:478 [INFO] [stderr] | [INFO] [stderr] 83 | fn __parse_eol < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < () > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = slice_eq ( __input , __state , __pos , "\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\u{2028}" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => slice_eq ( __input , __state , __pos , "\u{2029}" ) } } } } } } } } } [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg [INFO] [stderr] help: if you intended to pass a unit value, use a unit literal instead [INFO] [stderr] | [INFO] [stderr] 83 | fn __parse_eol < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < () > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = slice_eq ( __input , __state , __pos , "\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , () ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\u{2028}" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => slice_eq ( __input , __state , __pos , "\u{2029}" ) } } } } } } } } } [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: passing a unit value to a function [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:83:639 [INFO] [stderr] | [INFO] [stderr] 83 | fn __parse_eol < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < () > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = slice_eq ( __input , __state , __pos , "\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\u{2028}" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => slice_eq ( __input , __state , __pos , "\u{2029}" ) } } } } } } } } } [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg [INFO] [stderr] help: if you intended to pass a unit value, use a unit literal instead [INFO] [stderr] | [INFO] [stderr] 83 | fn __parse_eol < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < () > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = slice_eq ( __input , __state , __pos , "\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , () ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\u{2028}" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => slice_eq ( __input , __state , __pos , "\u{2029}" ) } } } } } } } } } [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: passing a unit value to a function [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:83:806 [INFO] [stderr] | [INFO] [stderr] 83 | fn __parse_eol < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < () > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = slice_eq ( __input , __state , __pos , "\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\u{2028}" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => slice_eq ( __input , __state , __pos , "\u{2029}" ) } } } } } } } } } [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg [INFO] [stderr] help: if you intended to pass a unit value, use a unit literal instead [INFO] [stderr] | [INFO] [stderr] 83 | fn __parse_eol < 'input > ( __input : & 'input str , __state : & mut ParseState < 'input > , __pos : usize ) -> RuleResult < () > { # ! [ allow ( non_snake_case , unused ) ] { let __choice_res = slice_eq ( __input , __state , __pos , "\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r\n" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\r" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , __value ) , Failed => { let __choice_res = slice_eq ( __input , __state , __pos , "\u{2028}" ) ; match __choice_res { Matched ( __pos , __value ) => Matched ( __pos , () ) , Failed => slice_eq ( __input , __state , __pos , "\u{2029}" ) } } } } } } } } } [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:87:2 [INFO] [stderr] | [INFO] [stderr] 87 | pub fn parse < 'input > ( __input : & 'input str ) -> ParseResult < Root > { # ! [ allow ( non_snake_case , unused ) ] let mut __state = ParseState :: new ( ) ; match __parse_parse ( __input , & mut __state , 0 ) { Matched ( __pos , __value ) => { if __pos == __input . len ( ) { return Ok ( __value ) } } _ => { } } let ( __line , __col ) = pos_to_line ( __input , __state . max_err_pos ) ; Err ( ParseError { line : __line , column : __col , offset : __state . max_err_pos , expected : __state . expected , } ) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_lifetimes)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> /opt/crater/target/debug/build/ralculator-b1bda35c84c43c4f/out/grammar.rs:87:163 [INFO] [stderr] | [INFO] [stderr] 87 | pub fn parse < 'input > ( __input : & 'input str ) -> ParseResult < Root > { # ! [ allow ( non_snake_case , unused ) ] let mut __state = ParseState :: new ( ) ; match __parse_parse ( __input , & mut __state , 0 ) { Matched ( __pos , __value ) => { if __pos == __input . len ( ) { return Ok ( __value ) } } _ => { } } let ( __line , __col ) = pos_to_line ( __input , __state . max_err_pos ) ; Err ( ParseError { line : __line , column : __col , offset : __state . max_err_pos , expected : __state . expected , } ) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `if let Matched ( __pos , __value ) = __parse_parse ( __input , & mut __state , 0 ) { if __pos == __input . len ( ) { return Ok ( __value ) } }` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_match)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.78s [INFO] running `"docker" "inspect" "e9066d3faca6e3afd246cef587bb6e258c4fd377164c7b882165472cecc98ed9"` [INFO] running `"docker" "rm" "-f" "e9066d3faca6e3afd246cef587bb6e258c4fd377164c7b882165472cecc98ed9"` [INFO] [stdout] e9066d3faca6e3afd246cef587bb6e258c4fd377164c7b882165472cecc98ed9