[INFO] cloning repository https://github.com/kelnos/rlox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kelnos/rlox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkelnos%2Frlox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkelnos%2Frlox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e2fe2f72e2e04bc74fdcb3f3936e6b8c51a27e14 [INFO] testing kelnos/rlox against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkelnos%2Frlox" "/workspace/builds/worker-26/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-26/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kelnos/rlox on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kelnos/rlox [INFO] finished tweaking git repo https://github.com/kelnos/rlox [INFO] tweaked toml for git repo https://github.com/kelnos/rlox written to /workspace/builds/worker-26/source/Cargo.toml [INFO] crate git repo https://github.com/kelnos/rlox already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] edfb2276093394daa4ccfcc130e6c150c371de3a8958b6bfb9096a6c0ebdfae8 [INFO] running `Command { std: "docker" "start" "-a" "edfb2276093394daa4ccfcc130e6c150c371de3a8958b6bfb9096a6c0ebdfae8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "edfb2276093394daa4ccfcc130e6c150c371de3a8958b6bfb9096a6c0ebdfae8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edfb2276093394daa4ccfcc130e6c150c371de3a8958b6bfb9096a6c0ebdfae8", kill_on_drop: false }` [INFO] [stdout] edfb2276093394daa4ccfcc130e6c150c371de3a8958b6bfb9096a6c0ebdfae8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 05f9926af2758e09b1c3fe7e3b826a91304265bfcfd8aee041e9b644886a63bc [INFO] running `Command { std: "docker" "start" "-a" "05f9926af2758e09b1c3fe7e3b826a91304265bfcfd8aee041e9b644886a63bc", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling lazy_static v0.2.10 [INFO] [stderr] Compiling rlox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/parser.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / lazy_static! { [INFO] [stdout] 15 | | static ref EXPECT_PRIMARY: Vec = { [INFO] [stdout] 16 | | vec![Number, Str, True, False, Nil, LeftParen, Identifier] [INFO] [stdout] 17 | | }; [INFO] [stdout] 18 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/parser.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / lazy_static! { [INFO] [stdout] 15 | | static ref EXPECT_PRIMARY: Vec = { [INFO] [stdout] 16 | | vec![Number, Str, True, False, Nil, LeftParen, Identifier] [INFO] [stdout] 17 | | }; [INFO] [stdout] 18 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/scanner.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | / lazy_static! { [INFO] [stdout] 39 | | static ref KEYWORDS: HashMap<&'static str, fn(u32) -> Token> = { [INFO] [stdout] 40 | | let mut m = HashMap::new(); [INFO] [stdout] 41 | | m.insert("and", create_and as fn(u32) -> Token); [INFO] [stdout] ... | [INFO] [stdout] 60 | | }; [INFO] [stdout] 61 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/scanner.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | / lazy_static! { [INFO] [stdout] 39 | | static ref KEYWORDS: HashMap<&'static str, fn(u32) -> Token> = { [INFO] [stdout] 40 | | let mut m = HashMap::new(); [INFO] [stdout] 41 | | m.insert("and", create_and as fn(u32) -> Token); [INFO] [stdout] ... | [INFO] [stdout] 60 | | }; [INFO] [stdout] 61 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:24:90 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn run(environment: Rc>, source: &String) -> Result<(), Vec>> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 - pub fn run(environment: Rc>, source: &String) -> Result<(), Vec>> { [INFO] [stdout] 24 + pub fn run(environment: Rc>, source: &String) -> Result<(), Vec>> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:52:98 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn interpret(environment: Rc>, statements: Vec) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 52 - pub fn interpret(environment: Rc>, statements: Vec) -> Result<(), Box> { [INFO] [stdout] 52 + pub fn interpret(environment: Rc>, statements: Vec) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:64:67 [INFO] [stdout] | [INFO] [stdout] 64 | fn execute_stmt(state: &mut State, stmt: &Stmt) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 64 - fn execute_stmt(state: &mut State, stmt: &Stmt) -> Result<(), Box> { [INFO] [stdout] 64 + fn execute_stmt(state: &mut State, stmt: &Stmt) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:75:79 [INFO] [stdout] | [INFO] [stdout] 75 | fn execute_block(state: &mut State, statements: &Vec) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 75 - fn execute_block(state: &mut State, statements: &Vec) -> Result<(), Box> { [INFO] [stdout] 75 + fn execute_block(state: &mut State, statements: &Vec) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:87:78 [INFO] [stdout] | [INFO] [stdout] 87 | fn execute_expression_stmt(state: &mut State, expr: &Expr) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 87 - fn execute_expression_stmt(state: &mut State, expr: &Expr) -> Result<(), Box> { [INFO] [stdout] 87 + fn execute_expression_stmt(state: &mut State, expr: &Expr) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:91:153 [INFO] [stdout] | [INFO] [stdout] 91 | ..., increment: &Option>, body: &Stmt) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 91 - fn execute_for_stmt(state: &mut State, initializer: &Option>, condition: &Expr, increment: &Option>, body: &Stmt) -> Result<(), Box> { [INFO] [stdout] 91 + fn execute_for_stmt(state: &mut State, initializer: &Option>, condition: &Expr, increment: &Option>, body: &Stmt) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:111:128 [INFO] [stdout] | [INFO] [stdout] 111 | fn execute_if_stmt(state: &mut State, expr: &Expr, then_branch: &Box, else_branch: &Option>) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 111 - fn execute_if_stmt(state: &mut State, expr: &Expr, then_branch: &Box, else_branch: &Option>) -> Result<(), Box> { [INFO] [stdout] 111 + fn execute_if_stmt(state: &mut State, expr: &Expr, then_branch: &Box, else_branch: &Option>) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:126:73 [INFO] [stdout] | [INFO] [stdout] 126 | fn execute_print_stmt(state: &mut State, expr: &Expr) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 126 - fn execute_print_stmt(state: &mut State, expr: &Expr) -> Result<(), Box> { [INFO] [stdout] 126 + fn execute_print_stmt(state: &mut State, expr: &Expr) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:133:100 [INFO] [stdout] | [INFO] [stdout] 133 | fn execute_var_stmt(state: &mut State, name: &Token, initializer: &Option) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 133 - fn execute_var_stmt(state: &mut State, name: &Token, initializer: &Option) -> Result<(), Box> { [INFO] [stdout] 133 + fn execute_var_stmt(state: &mut State, name: &Token, initializer: &Option) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:143:81 [INFO] [stdout] | [INFO] [stdout] 143 | fn evaluate_expression(state: &mut State, expr: &Expr) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 143 - fn evaluate_expression(state: &mut State, expr: &Expr) -> Result, Box> { [INFO] [stdout] 143 + fn evaluate_expression(state: &mut State, expr: &Expr) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:161:92 [INFO] [stdout] | [INFO] [stdout] 161 | fn evaluate_assign(state: &mut State, name: &Token, value: &Expr) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 161 - fn evaluate_assign(state: &mut State, name: &Token, value: &Expr) -> Result, Box> { [INFO] [stdout] 161 + fn evaluate_assign(state: &mut State, name: &Token, value: &Expr) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:172:109 [INFO] [stdout] | [INFO] [stdout] 172 | fn evaluate_binary(state: &mut State, left: &Expr, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 172 - fn evaluate_binary(state: &mut State, left: &Expr, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] 172 + fn evaluate_binary(state: &mut State, left: &Expr, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:187:83 [INFO] [stdout] | [INFO] [stdout] 187 | fn arithmetic(left: &Value, operator: &Token, right: &Value) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 187 - fn arithmetic(left: &Value, operator: &Token, right: &Value) -> Result> { [INFO] [stdout] 187 + fn arithmetic(left: &Value, operator: &Token, right: &Value) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:218:80 [INFO] [stdout] | [INFO] [stdout] 218 | fn compare(left: &Value, operator: &Token, right: &Value) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 218 - fn compare(left: &Value, operator: &Token, right: &Value) -> Result> { [INFO] [stdout] 218 + fn compare(left: &Value, operator: &Token, right: &Value) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:234:85 [INFO] [stdout] | [INFO] [stdout] 234 | fn evaluate_grouping(state: &mut State, expression: &Expr) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 234 - fn evaluate_grouping(state: &mut State, expression: &Expr) -> Result, Box> { [INFO] [stdout] 234 + fn evaluate_grouping(state: &mut State, expression: &Expr) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:238:84 [INFO] [stdout] | [INFO] [stdout] 238 | fn evaluate_literal(_state: &mut State, value: Rc) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 238 - fn evaluate_literal(_state: &mut State, value: Rc) -> Result, Box> { [INFO] [stdout] 238 + fn evaluate_literal(_state: &mut State, value: Rc) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:242:110 [INFO] [stdout] | [INFO] [stdout] 242 | fn evaluate_logical(state: &mut State, left: &Expr, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 242 - fn evaluate_logical(state: &mut State, left: &Expr, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] 242 + fn evaluate_logical(state: &mut State, left: &Expr, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:256:95 [INFO] [stdout] | [INFO] [stdout] 256 | fn evaluate_unary(state: &mut State, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 256 - fn evaluate_unary(state: &mut State, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] 256 + fn evaluate_unary(state: &mut State, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:62:63 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn parse(tokens: Vec) -> Result, Vec>> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 62 - pub fn parse(tokens: Vec) -> Result, Vec>> { [INFO] [stdout] 62 + pub fn parse(tokens: Vec) -> Result, Vec>> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:105:74 [INFO] [stdout] | [INFO] [stdout] 105 | fn declaration(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 105 - fn declaration(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 105 + fn declaration(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:113:78 [INFO] [stdout] | [INFO] [stdout] 113 | fn var_declaration(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 113 - fn var_declaration(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 113 + fn var_declaration(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:124:72 [INFO] [stdout] | [INFO] [stdout] 124 | fn statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 124 - fn statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 124 + fn statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:140:75 [INFO] [stdout] | [INFO] [stdout] 140 | fn if_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 140 - fn if_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 140 + fn if_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:153:78 [INFO] [stdout] | [INFO] [stdout] 153 | fn print_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 153 - fn print_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 153 + fn print_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:160:78 [INFO] [stdout] | [INFO] [stdout] 160 | fn while_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 160 - fn while_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 160 + fn while_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:169:76 [INFO] [stdout] | [INFO] [stdout] 169 | fn for_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 169 - fn for_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 169 + fn for_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:192:83 [INFO] [stdout] | [INFO] [stdout] 192 | fn block_statement(iter: &mut Peekable>) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 192 - fn block_statement(iter: &mut Peekable>) -> Result, Box> { [INFO] [stdout] 192 + fn block_statement(iter: &mut Peekable>) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:205:83 [INFO] [stdout] | [INFO] [stdout] 205 | fn expression_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 205 - fn expression_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 205 + fn expression_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:212:79 [INFO] [stdout] | [INFO] [stdout] 212 | fn parse_expression(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 212 - fn parse_expression(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 212 + fn parse_expression(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:216:79 [INFO] [stdout] | [INFO] [stdout] 216 | fn parse_assignment(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 216 - fn parse_assignment(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 216 + fn parse_assignment(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:234:82 [INFO] [stdout] | [INFO] [stdout] 234 | expr_builder: fn(Expr, Token, Expr) -> Expr) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 234 - expr_builder: fn(Expr, Token, Expr) -> Expr) -> Result> { [INFO] [stdout] 234 + expr_builder: fn(Expr, Token, Expr) -> Expr) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:233:110 [INFO] [stdout] | [INFO] [stdout] 233 | matches: &[TokenType], parse_operand: fn(&mut Peekable>) -> Result>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 233 - matches: &[TokenType], parse_operand: fn(&mut Peekable>) -> Result>, [INFO] [stdout] 233 + matches: &[TokenType], parse_operand: fn(&mut Peekable>) -> Result>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:242:71 [INFO] [stdout] | [INFO] [stdout] 242 | fn parse_or(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 242 - fn parse_or(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 242 + fn parse_or(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:246:72 [INFO] [stdout] | [INFO] [stdout] 246 | fn parse_and(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - fn parse_and(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 246 + fn parse_and(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:250:77 [INFO] [stdout] | [INFO] [stdout] 250 | fn parse_equality(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 250 - fn parse_equality(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 250 + fn parse_equality(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:254:79 [INFO] [stdout] | [INFO] [stdout] 254 | fn parse_comparison(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 254 - fn parse_comparison(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 254 + fn parse_comparison(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:258:77 [INFO] [stdout] | [INFO] [stdout] 258 | fn parse_addition(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 258 - fn parse_addition(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 258 + fn parse_addition(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:262:83 [INFO] [stdout] | [INFO] [stdout] 262 | fn parse_multiplication(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 262 - fn parse_multiplication(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 262 + fn parse_multiplication(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:266:74 [INFO] [stdout] | [INFO] [stdout] 266 | fn parse_unary(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 266 - fn parse_unary(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 266 + fn parse_unary(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:273:76 [INFO] [stdout] | [INFO] [stdout] 273 | fn parse_primary(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 273 - fn parse_primary(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 273 + fn parse_primary(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:321:94 [INFO] [stdout] | [INFO] [stdout] 321 | fn consume(iter: &mut Peekable>, matches: &[TokenType]) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 321 - fn consume(iter: &mut Peekable>, matches: &[TokenType]) -> Result> { [INFO] [stdout] 321 + fn consume(iter: &mut Peekable>, matches: &[TokenType]) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/scanner.rs:178:56 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn scan(source: &String) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 178 - pub fn scan(source: &String) -> Result, Box> { [INFO] [stdout] 178 + pub fn scan(source: &String) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/interpreter.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | write!(f, "{}", self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/parser.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 52 | write!(f, "{}", self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:274:70 [INFO] [stdout] | [INFO] [stdout] 274 | iter.next().ok_or(ParseError::new(&*EXPECT_PRIMARY, None) as Box).and_then(|token| { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 274 - iter.next().ok_or(ParseError::new(&*EXPECT_PRIMARY, None) as Box).and_then(|token| { [INFO] [stdout] 274 + iter.next().ok_or(ParseError::new(&*EXPECT_PRIMARY, None) as Box).and_then(|token| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:326:66 [INFO] [stdout] | [INFO] [stdout] 326 | Err(ParseError::new_arr(matches, Some(token)) as Box) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 326 - Err(ParseError::new_arr(matches, Some(token)) as Box) [INFO] [stdout] 326 + Err(ParseError::new_arr(matches, Some(token)) as Box) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:328:64 [INFO] [stdout] | [INFO] [stdout] 328 | }).unwrap_or(Err(ParseError::new_arr(matches, None) as Box)) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 328 - }).unwrap_or(Err(ParseError::new_arr(matches, None) as Box)) [INFO] [stdout] 328 + }).unwrap_or(Err(ParseError::new_arr(matches, None) as Box)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/callable.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | fn call(arguments: &Vec<&Value>) -> Value { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/function.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | fn call(arguments: &Vec<&Value>) -> Value { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `location` [INFO] [stdout] --> src/interpreter.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | location: Token, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/interpreter.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `expected` [INFO] [stdout] --> src/parser.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | expected: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 55 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.43s [INFO] running `Command { std: "docker" "inspect" "05f9926af2758e09b1c3fe7e3b826a91304265bfcfd8aee041e9b644886a63bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05f9926af2758e09b1c3fe7e3b826a91304265bfcfd8aee041e9b644886a63bc", kill_on_drop: false }` [INFO] [stdout] 05f9926af2758e09b1c3fe7e3b826a91304265bfcfd8aee041e9b644886a63bc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 620246b140e0a298848404459e8c5bd4660153dc996387b2fa5f9ff1d67ff4f5 [INFO] running `Command { std: "docker" "start" "-a" "620246b140e0a298848404459e8c5bd4660153dc996387b2fa5f9ff1d67ff4f5", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/parser.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / lazy_static! { [INFO] [stdout] 15 | | static ref EXPECT_PRIMARY: Vec = { [INFO] [stdout] 16 | | vec![Number, Str, True, False, Nil, LeftParen, Identifier] [INFO] [stdout] 17 | | }; [INFO] [stdout] 18 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/parser.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / lazy_static! { [INFO] [stdout] 15 | | static ref EXPECT_PRIMARY: Vec = { [INFO] [stdout] 16 | | vec![Number, Str, True, False, Nil, LeftParen, Identifier] [INFO] [stdout] 17 | | }; [INFO] [stdout] 18 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/scanner.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | / lazy_static! { [INFO] [stdout] 39 | | static ref KEYWORDS: HashMap<&'static str, fn(u32) -> Token> = { [INFO] [stdout] 40 | | let mut m = HashMap::new(); [INFO] [stdout] 41 | | m.insert("and", create_and as fn(u32) -> Token); [INFO] [stdout] ... | [INFO] [stdout] 60 | | }; [INFO] [stdout] 61 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/scanner.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | / lazy_static! { [INFO] [stdout] 39 | | static ref KEYWORDS: HashMap<&'static str, fn(u32) -> Token> = { [INFO] [stdout] 40 | | let mut m = HashMap::new(); [INFO] [stdout] 41 | | m.insert("and", create_and as fn(u32) -> Token); [INFO] [stdout] ... | [INFO] [stdout] 60 | | }; [INFO] [stdout] 61 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:24:90 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn run(environment: Rc>, source: &String) -> Result<(), Vec>> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 - pub fn run(environment: Rc>, source: &String) -> Result<(), Vec>> { [INFO] [stdout] 24 + pub fn run(environment: Rc>, source: &String) -> Result<(), Vec>> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:52:98 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn interpret(environment: Rc>, statements: Vec) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 52 - pub fn interpret(environment: Rc>, statements: Vec) -> Result<(), Box> { [INFO] [stdout] 52 + pub fn interpret(environment: Rc>, statements: Vec) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:64:67 [INFO] [stdout] | [INFO] [stdout] 64 | fn execute_stmt(state: &mut State, stmt: &Stmt) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 64 - fn execute_stmt(state: &mut State, stmt: &Stmt) -> Result<(), Box> { [INFO] [stdout] 64 + fn execute_stmt(state: &mut State, stmt: &Stmt) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:75:79 [INFO] [stdout] | [INFO] [stdout] 75 | fn execute_block(state: &mut State, statements: &Vec) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 75 - fn execute_block(state: &mut State, statements: &Vec) -> Result<(), Box> { [INFO] [stdout] 75 + fn execute_block(state: &mut State, statements: &Vec) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:87:78 [INFO] [stdout] | [INFO] [stdout] 87 | fn execute_expression_stmt(state: &mut State, expr: &Expr) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 87 - fn execute_expression_stmt(state: &mut State, expr: &Expr) -> Result<(), Box> { [INFO] [stdout] 87 + fn execute_expression_stmt(state: &mut State, expr: &Expr) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:91:153 [INFO] [stdout] | [INFO] [stdout] 91 | ..., increment: &Option>, body: &Stmt) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 91 - fn execute_for_stmt(state: &mut State, initializer: &Option>, condition: &Expr, increment: &Option>, body: &Stmt) -> Result<(), Box> { [INFO] [stdout] 91 + fn execute_for_stmt(state: &mut State, initializer: &Option>, condition: &Expr, increment: &Option>, body: &Stmt) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:111:128 [INFO] [stdout] | [INFO] [stdout] 111 | fn execute_if_stmt(state: &mut State, expr: &Expr, then_branch: &Box, else_branch: &Option>) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 111 - fn execute_if_stmt(state: &mut State, expr: &Expr, then_branch: &Box, else_branch: &Option>) -> Result<(), Box> { [INFO] [stdout] 111 + fn execute_if_stmt(state: &mut State, expr: &Expr, then_branch: &Box, else_branch: &Option>) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:126:73 [INFO] [stdout] | [INFO] [stdout] 126 | fn execute_print_stmt(state: &mut State, expr: &Expr) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 126 - fn execute_print_stmt(state: &mut State, expr: &Expr) -> Result<(), Box> { [INFO] [stdout] 126 + fn execute_print_stmt(state: &mut State, expr: &Expr) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:133:100 [INFO] [stdout] | [INFO] [stdout] 133 | fn execute_var_stmt(state: &mut State, name: &Token, initializer: &Option) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 133 - fn execute_var_stmt(state: &mut State, name: &Token, initializer: &Option) -> Result<(), Box> { [INFO] [stdout] 133 + fn execute_var_stmt(state: &mut State, name: &Token, initializer: &Option) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:143:81 [INFO] [stdout] | [INFO] [stdout] 143 | fn evaluate_expression(state: &mut State, expr: &Expr) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 143 - fn evaluate_expression(state: &mut State, expr: &Expr) -> Result, Box> { [INFO] [stdout] 143 + fn evaluate_expression(state: &mut State, expr: &Expr) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:161:92 [INFO] [stdout] | [INFO] [stdout] 161 | fn evaluate_assign(state: &mut State, name: &Token, value: &Expr) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 161 - fn evaluate_assign(state: &mut State, name: &Token, value: &Expr) -> Result, Box> { [INFO] [stdout] 161 + fn evaluate_assign(state: &mut State, name: &Token, value: &Expr) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:172:109 [INFO] [stdout] | [INFO] [stdout] 172 | fn evaluate_binary(state: &mut State, left: &Expr, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 172 - fn evaluate_binary(state: &mut State, left: &Expr, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] 172 + fn evaluate_binary(state: &mut State, left: &Expr, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:187:83 [INFO] [stdout] | [INFO] [stdout] 187 | fn arithmetic(left: &Value, operator: &Token, right: &Value) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 187 - fn arithmetic(left: &Value, operator: &Token, right: &Value) -> Result> { [INFO] [stdout] 187 + fn arithmetic(left: &Value, operator: &Token, right: &Value) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:218:80 [INFO] [stdout] | [INFO] [stdout] 218 | fn compare(left: &Value, operator: &Token, right: &Value) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 218 - fn compare(left: &Value, operator: &Token, right: &Value) -> Result> { [INFO] [stdout] 218 + fn compare(left: &Value, operator: &Token, right: &Value) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:234:85 [INFO] [stdout] | [INFO] [stdout] 234 | fn evaluate_grouping(state: &mut State, expression: &Expr) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 234 - fn evaluate_grouping(state: &mut State, expression: &Expr) -> Result, Box> { [INFO] [stdout] 234 + fn evaluate_grouping(state: &mut State, expression: &Expr) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:238:84 [INFO] [stdout] | [INFO] [stdout] 238 | fn evaluate_literal(_state: &mut State, value: Rc) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 238 - fn evaluate_literal(_state: &mut State, value: Rc) -> Result, Box> { [INFO] [stdout] 238 + fn evaluate_literal(_state: &mut State, value: Rc) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:242:110 [INFO] [stdout] | [INFO] [stdout] 242 | fn evaluate_logical(state: &mut State, left: &Expr, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 242 - fn evaluate_logical(state: &mut State, left: &Expr, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] 242 + fn evaluate_logical(state: &mut State, left: &Expr, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:256:95 [INFO] [stdout] | [INFO] [stdout] 256 | fn evaluate_unary(state: &mut State, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 256 - fn evaluate_unary(state: &mut State, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] 256 + fn evaluate_unary(state: &mut State, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:62:63 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn parse(tokens: Vec) -> Result, Vec>> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 62 - pub fn parse(tokens: Vec) -> Result, Vec>> { [INFO] [stdout] 62 + pub fn parse(tokens: Vec) -> Result, Vec>> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:105:74 [INFO] [stdout] | [INFO] [stdout] 105 | fn declaration(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 105 - fn declaration(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 105 + fn declaration(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:113:78 [INFO] [stdout] | [INFO] [stdout] 113 | fn var_declaration(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 113 - fn var_declaration(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 113 + fn var_declaration(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:124:72 [INFO] [stdout] | [INFO] [stdout] 124 | fn statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 124 - fn statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 124 + fn statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:140:75 [INFO] [stdout] | [INFO] [stdout] 140 | fn if_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 140 - fn if_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 140 + fn if_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:153:78 [INFO] [stdout] | [INFO] [stdout] 153 | fn print_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 153 - fn print_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 153 + fn print_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:160:78 [INFO] [stdout] | [INFO] [stdout] 160 | fn while_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 160 - fn while_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 160 + fn while_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:169:76 [INFO] [stdout] | [INFO] [stdout] 169 | fn for_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 169 - fn for_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 169 + fn for_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:192:83 [INFO] [stdout] | [INFO] [stdout] 192 | fn block_statement(iter: &mut Peekable>) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 192 - fn block_statement(iter: &mut Peekable>) -> Result, Box> { [INFO] [stdout] 192 + fn block_statement(iter: &mut Peekable>) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:205:83 [INFO] [stdout] | [INFO] [stdout] 205 | fn expression_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 205 - fn expression_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 205 + fn expression_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:212:79 [INFO] [stdout] | [INFO] [stdout] 212 | fn parse_expression(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 212 - fn parse_expression(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 212 + fn parse_expression(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:216:79 [INFO] [stdout] | [INFO] [stdout] 216 | fn parse_assignment(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 216 - fn parse_assignment(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 216 + fn parse_assignment(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:234:82 [INFO] [stdout] | [INFO] [stdout] 234 | expr_builder: fn(Expr, Token, Expr) -> Expr) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 234 - expr_builder: fn(Expr, Token, Expr) -> Expr) -> Result> { [INFO] [stdout] 234 + expr_builder: fn(Expr, Token, Expr) -> Expr) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:233:110 [INFO] [stdout] | [INFO] [stdout] 233 | matches: &[TokenType], parse_operand: fn(&mut Peekable>) -> Result>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 233 - matches: &[TokenType], parse_operand: fn(&mut Peekable>) -> Result>, [INFO] [stdout] 233 + matches: &[TokenType], parse_operand: fn(&mut Peekable>) -> Result>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:242:71 [INFO] [stdout] | [INFO] [stdout] 242 | fn parse_or(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 242 - fn parse_or(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 242 + fn parse_or(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:246:72 [INFO] [stdout] | [INFO] [stdout] 246 | fn parse_and(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - fn parse_and(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 246 + fn parse_and(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:250:77 [INFO] [stdout] | [INFO] [stdout] 250 | fn parse_equality(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 250 - fn parse_equality(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 250 + fn parse_equality(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:254:79 [INFO] [stdout] | [INFO] [stdout] 254 | fn parse_comparison(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 254 - fn parse_comparison(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 254 + fn parse_comparison(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:258:77 [INFO] [stdout] | [INFO] [stdout] 258 | fn parse_addition(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 258 - fn parse_addition(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 258 + fn parse_addition(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:262:83 [INFO] [stdout] | [INFO] [stdout] 262 | fn parse_multiplication(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 262 - fn parse_multiplication(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 262 + fn parse_multiplication(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rlox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:266:74 [INFO] [stdout] | [INFO] [stdout] 266 | fn parse_unary(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 266 - fn parse_unary(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 266 + fn parse_unary(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:273:76 [INFO] [stdout] | [INFO] [stdout] 273 | fn parse_primary(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 273 - fn parse_primary(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 273 + fn parse_primary(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:321:94 [INFO] [stdout] | [INFO] [stdout] 321 | fn consume(iter: &mut Peekable>, matches: &[TokenType]) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 321 - fn consume(iter: &mut Peekable>, matches: &[TokenType]) -> Result> { [INFO] [stdout] 321 + fn consume(iter: &mut Peekable>, matches: &[TokenType]) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/scanner.rs:178:56 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn scan(source: &String) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 178 - pub fn scan(source: &String) -> Result, Box> { [INFO] [stdout] 178 + pub fn scan(source: &String) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/interpreter.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | write!(f, "{}", self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/parser.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 52 | write!(f, "{}", self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:274:70 [INFO] [stdout] | [INFO] [stdout] 274 | iter.next().ok_or(ParseError::new(&*EXPECT_PRIMARY, None) as Box).and_then(|token| { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 274 - iter.next().ok_or(ParseError::new(&*EXPECT_PRIMARY, None) as Box).and_then(|token| { [INFO] [stdout] 274 + iter.next().ok_or(ParseError::new(&*EXPECT_PRIMARY, None) as Box).and_then(|token| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:326:66 [INFO] [stdout] | [INFO] [stdout] 326 | Err(ParseError::new_arr(matches, Some(token)) as Box) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 326 - Err(ParseError::new_arr(matches, Some(token)) as Box) [INFO] [stdout] 326 + Err(ParseError::new_arr(matches, Some(token)) as Box) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:328:64 [INFO] [stdout] | [INFO] [stdout] 328 | }).unwrap_or(Err(ParseError::new_arr(matches, None) as Box)) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 328 - }).unwrap_or(Err(ParseError::new_arr(matches, None) as Box)) [INFO] [stdout] 328 + }).unwrap_or(Err(ParseError::new_arr(matches, None) as Box)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/callable.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | fn call(arguments: &Vec<&Value>) -> Value { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/function.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | fn call(arguments: &Vec<&Value>) -> Value { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `location` [INFO] [stdout] --> src/interpreter.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | location: Token, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `RuntimeError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/interpreter.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `expected` [INFO] [stdout] --> src/parser.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | expected: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ParseError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 55 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConstLexemeTokenType` [INFO] [stdout] --> src/token.rs:208:17 [INFO] [stdout] | [INFO] [stdout] 208 | let t = ConstLexemeTokenType::And.token(42); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ConstLexemeTokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VariableTokenType` [INFO] [stdout] --> src/token.rs:221:17 [INFO] [stdout] | [INFO] [stdout] 221 | let t = VariableTokenType::String.token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared type `VariableTokenType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `False` in this scope [INFO] [stdout] --> src/token.rs:214:17 [INFO] [stdout] | [INFO] [stdout] 214 | let t = False.token(42); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 204 | use token::TokenType::False; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/parser.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / lazy_static! { [INFO] [stdout] 15 | | static ref EXPECT_PRIMARY: Vec = { [INFO] [stdout] 16 | | vec![Number, Str, True, False, Nil, LeftParen, Identifier] [INFO] [stdout] 17 | | }; [INFO] [stdout] 18 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/parser.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / lazy_static! { [INFO] [stdout] 15 | | static ref EXPECT_PRIMARY: Vec = { [INFO] [stdout] 16 | | vec![Number, Str, True, False, Nil, LeftParen, Identifier] [INFO] [stdout] 17 | | }; [INFO] [stdout] 18 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/scanner.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | / lazy_static! { [INFO] [stdout] 39 | | static ref KEYWORDS: HashMap<&'static str, fn(u32) -> Token> = { [INFO] [stdout] 40 | | let mut m = HashMap::new(); [INFO] [stdout] 41 | | m.insert("and", create_and as fn(u32) -> Token); [INFO] [stdout] ... | [INFO] [stdout] 60 | | }; [INFO] [stdout] 61 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/scanner.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | / lazy_static! { [INFO] [stdout] 39 | | static ref KEYWORDS: HashMap<&'static str, fn(u32) -> Token> = { [INFO] [stdout] 40 | | let mut m = HashMap::new(); [INFO] [stdout] 41 | | m.insert("and", create_and as fn(u32) -> Token); [INFO] [stdout] ... | [INFO] [stdout] 60 | | }; [INFO] [stdout] 61 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:24:90 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn run(environment: Rc>, source: &String) -> Result<(), Vec>> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 - pub fn run(environment: Rc>, source: &String) -> Result<(), Vec>> { [INFO] [stdout] 24 + pub fn run(environment: Rc>, source: &String) -> Result<(), Vec>> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:52:98 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn interpret(environment: Rc>, statements: Vec) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 52 - pub fn interpret(environment: Rc>, statements: Vec) -> Result<(), Box> { [INFO] [stdout] 52 + pub fn interpret(environment: Rc>, statements: Vec) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:64:67 [INFO] [stdout] | [INFO] [stdout] 64 | fn execute_stmt(state: &mut State, stmt: &Stmt) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 64 - fn execute_stmt(state: &mut State, stmt: &Stmt) -> Result<(), Box> { [INFO] [stdout] 64 + fn execute_stmt(state: &mut State, stmt: &Stmt) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:75:79 [INFO] [stdout] | [INFO] [stdout] 75 | fn execute_block(state: &mut State, statements: &Vec) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 75 - fn execute_block(state: &mut State, statements: &Vec) -> Result<(), Box> { [INFO] [stdout] 75 + fn execute_block(state: &mut State, statements: &Vec) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:87:78 [INFO] [stdout] | [INFO] [stdout] 87 | fn execute_expression_stmt(state: &mut State, expr: &Expr) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 87 - fn execute_expression_stmt(state: &mut State, expr: &Expr) -> Result<(), Box> { [INFO] [stdout] 87 + fn execute_expression_stmt(state: &mut State, expr: &Expr) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:91:153 [INFO] [stdout] | [INFO] [stdout] 91 | ..., increment: &Option>, body: &Stmt) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 91 - fn execute_for_stmt(state: &mut State, initializer: &Option>, condition: &Expr, increment: &Option>, body: &Stmt) -> Result<(), Box> { [INFO] [stdout] 91 + fn execute_for_stmt(state: &mut State, initializer: &Option>, condition: &Expr, increment: &Option>, body: &Stmt) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:111:128 [INFO] [stdout] | [INFO] [stdout] 111 | fn execute_if_stmt(state: &mut State, expr: &Expr, then_branch: &Box, else_branch: &Option>) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 111 - fn execute_if_stmt(state: &mut State, expr: &Expr, then_branch: &Box, else_branch: &Option>) -> Result<(), Box> { [INFO] [stdout] 111 + fn execute_if_stmt(state: &mut State, expr: &Expr, then_branch: &Box, else_branch: &Option>) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:126:73 [INFO] [stdout] | [INFO] [stdout] 126 | fn execute_print_stmt(state: &mut State, expr: &Expr) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 126 - fn execute_print_stmt(state: &mut State, expr: &Expr) -> Result<(), Box> { [INFO] [stdout] 126 + fn execute_print_stmt(state: &mut State, expr: &Expr) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:133:100 [INFO] [stdout] | [INFO] [stdout] 133 | fn execute_var_stmt(state: &mut State, name: &Token, initializer: &Option) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 133 - fn execute_var_stmt(state: &mut State, name: &Token, initializer: &Option) -> Result<(), Box> { [INFO] [stdout] 133 + fn execute_var_stmt(state: &mut State, name: &Token, initializer: &Option) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:143:81 [INFO] [stdout] | [INFO] [stdout] 143 | fn evaluate_expression(state: &mut State, expr: &Expr) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 143 - fn evaluate_expression(state: &mut State, expr: &Expr) -> Result, Box> { [INFO] [stdout] 143 + fn evaluate_expression(state: &mut State, expr: &Expr) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:161:92 [INFO] [stdout] | [INFO] [stdout] 161 | fn evaluate_assign(state: &mut State, name: &Token, value: &Expr) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 161 - fn evaluate_assign(state: &mut State, name: &Token, value: &Expr) -> Result, Box> { [INFO] [stdout] 161 + fn evaluate_assign(state: &mut State, name: &Token, value: &Expr) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:172:109 [INFO] [stdout] | [INFO] [stdout] 172 | fn evaluate_binary(state: &mut State, left: &Expr, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 172 - fn evaluate_binary(state: &mut State, left: &Expr, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] 172 + fn evaluate_binary(state: &mut State, left: &Expr, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:187:83 [INFO] [stdout] | [INFO] [stdout] 187 | fn arithmetic(left: &Value, operator: &Token, right: &Value) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 187 - fn arithmetic(left: &Value, operator: &Token, right: &Value) -> Result> { [INFO] [stdout] 187 + fn arithmetic(left: &Value, operator: &Token, right: &Value) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:218:80 [INFO] [stdout] | [INFO] [stdout] 218 | fn compare(left: &Value, operator: &Token, right: &Value) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 218 - fn compare(left: &Value, operator: &Token, right: &Value) -> Result> { [INFO] [stdout] 218 + fn compare(left: &Value, operator: &Token, right: &Value) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:234:85 [INFO] [stdout] | [INFO] [stdout] 234 | fn evaluate_grouping(state: &mut State, expression: &Expr) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 234 - fn evaluate_grouping(state: &mut State, expression: &Expr) -> Result, Box> { [INFO] [stdout] 234 + fn evaluate_grouping(state: &mut State, expression: &Expr) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:238:84 [INFO] [stdout] | [INFO] [stdout] 238 | fn evaluate_literal(_state: &mut State, value: Rc) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 238 - fn evaluate_literal(_state: &mut State, value: Rc) -> Result, Box> { [INFO] [stdout] 238 + fn evaluate_literal(_state: &mut State, value: Rc) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:242:110 [INFO] [stdout] | [INFO] [stdout] 242 | fn evaluate_logical(state: &mut State, left: &Expr, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 242 - fn evaluate_logical(state: &mut State, left: &Expr, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] 242 + fn evaluate_logical(state: &mut State, left: &Expr, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/interpreter.rs:256:95 [INFO] [stdout] | [INFO] [stdout] 256 | fn evaluate_unary(state: &mut State, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 256 - fn evaluate_unary(state: &mut State, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] 256 + fn evaluate_unary(state: &mut State, operator: &Token, right: &Expr) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:62:63 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn parse(tokens: Vec) -> Result, Vec>> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 62 - pub fn parse(tokens: Vec) -> Result, Vec>> { [INFO] [stdout] 62 + pub fn parse(tokens: Vec) -> Result, Vec>> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:105:74 [INFO] [stdout] | [INFO] [stdout] 105 | fn declaration(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 105 - fn declaration(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 105 + fn declaration(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:113:78 [INFO] [stdout] | [INFO] [stdout] 113 | fn var_declaration(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 113 - fn var_declaration(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 113 + fn var_declaration(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:124:72 [INFO] [stdout] | [INFO] [stdout] 124 | fn statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 124 - fn statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 124 + fn statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:140:75 [INFO] [stdout] | [INFO] [stdout] 140 | fn if_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 140 - fn if_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 140 + fn if_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:153:78 [INFO] [stdout] | [INFO] [stdout] 153 | fn print_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 153 - fn print_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 153 + fn print_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:160:78 [INFO] [stdout] | [INFO] [stdout] 160 | fn while_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 160 - fn while_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 160 + fn while_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:169:76 [INFO] [stdout] | [INFO] [stdout] 169 | fn for_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 169 - fn for_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 169 + fn for_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:192:83 [INFO] [stdout] | [INFO] [stdout] 192 | fn block_statement(iter: &mut Peekable>) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 192 - fn block_statement(iter: &mut Peekable>) -> Result, Box> { [INFO] [stdout] 192 + fn block_statement(iter: &mut Peekable>) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:205:83 [INFO] [stdout] | [INFO] [stdout] 205 | fn expression_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 205 - fn expression_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 205 + fn expression_statement(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:212:79 [INFO] [stdout] | [INFO] [stdout] 212 | fn parse_expression(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 212 - fn parse_expression(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 212 + fn parse_expression(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:216:79 [INFO] [stdout] | [INFO] [stdout] 216 | fn parse_assignment(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 216 - fn parse_assignment(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 216 + fn parse_assignment(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:234:82 [INFO] [stdout] | [INFO] [stdout] 234 | expr_builder: fn(Expr, Token, Expr) -> Expr) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 234 - expr_builder: fn(Expr, Token, Expr) -> Expr) -> Result> { [INFO] [stdout] 234 + expr_builder: fn(Expr, Token, Expr) -> Expr) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:233:110 [INFO] [stdout] | [INFO] [stdout] 233 | matches: &[TokenType], parse_operand: fn(&mut Peekable>) -> Result>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 233 - matches: &[TokenType], parse_operand: fn(&mut Peekable>) -> Result>, [INFO] [stdout] 233 + matches: &[TokenType], parse_operand: fn(&mut Peekable>) -> Result>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:242:71 [INFO] [stdout] | [INFO] [stdout] 242 | fn parse_or(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 242 - fn parse_or(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 242 + fn parse_or(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:246:72 [INFO] [stdout] | [INFO] [stdout] 246 | fn parse_and(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 246 - fn parse_and(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 246 + fn parse_and(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:250:77 [INFO] [stdout] | [INFO] [stdout] 250 | fn parse_equality(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 250 - fn parse_equality(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 250 + fn parse_equality(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:254:79 [INFO] [stdout] | [INFO] [stdout] 254 | fn parse_comparison(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 254 - fn parse_comparison(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 254 + fn parse_comparison(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:258:77 [INFO] [stdout] | [INFO] [stdout] 258 | fn parse_addition(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 258 - fn parse_addition(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 258 + fn parse_addition(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:262:83 [INFO] [stdout] | [INFO] [stdout] 262 | fn parse_multiplication(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 262 - fn parse_multiplication(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 262 + fn parse_multiplication(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:266:74 [INFO] [stdout] | [INFO] [stdout] 266 | fn parse_unary(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 266 - fn parse_unary(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 266 + fn parse_unary(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:273:76 [INFO] [stdout] | [INFO] [stdout] 273 | fn parse_primary(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 273 - fn parse_primary(iter: &mut Peekable>) -> Result> { [INFO] [stdout] 273 + fn parse_primary(iter: &mut Peekable>) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:321:94 [INFO] [stdout] | [INFO] [stdout] 321 | fn consume(iter: &mut Peekable>, matches: &[TokenType]) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 321 - fn consume(iter: &mut Peekable>, matches: &[TokenType]) -> Result> { [INFO] [stdout] 321 + fn consume(iter: &mut Peekable>, matches: &[TokenType]) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/scanner.rs:178:56 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn scan(source: &String) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 178 - pub fn scan(source: &String) -> Result, Box> { [INFO] [stdout] 178 + pub fn scan(source: &String) -> Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/interpreter.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | write!(f, "{}", self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/parser.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 52 | write!(f, "{}", self.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:274:70 [INFO] [stdout] | [INFO] [stdout] 274 | iter.next().ok_or(ParseError::new(&*EXPECT_PRIMARY, None) as Box).and_then(|token| { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 274 - iter.next().ok_or(ParseError::new(&*EXPECT_PRIMARY, None) as Box).and_then(|token| { [INFO] [stdout] 274 + iter.next().ok_or(ParseError::new(&*EXPECT_PRIMARY, None) as Box).and_then(|token| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:326:66 [INFO] [stdout] | [INFO] [stdout] 326 | Err(ParseError::new_arr(matches, Some(token)) as Box) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 326 - Err(ParseError::new_arr(matches, Some(token)) as Box) [INFO] [stdout] 326 + Err(ParseError::new_arr(matches, Some(token)) as Box) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:328:64 [INFO] [stdout] | [INFO] [stdout] 328 | }).unwrap_or(Err(ParseError::new_arr(matches, None) as Box)) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 328 - }).unwrap_or(Err(ParseError::new_arr(matches, None) as Box)) [INFO] [stdout] 328 + }).unwrap_or(Err(ParseError::new_arr(matches, None) as Box)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rlox` due to 4 previous errors; 51 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "620246b140e0a298848404459e8c5bd4660153dc996387b2fa5f9ff1d67ff4f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "620246b140e0a298848404459e8c5bd4660153dc996387b2fa5f9ff1d67ff4f5", kill_on_drop: false }` [INFO] [stdout] 620246b140e0a298848404459e8c5bd4660153dc996387b2fa5f9ff1d67ff4f5