[INFO] fetching crate Cecile 0.1.7... [INFO] checking Cecile-0.1.7 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate Cecile 0.1.7 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate Cecile 0.1.7 [INFO] finished tweaking crates.io crate Cecile 0.1.7 [INFO] tweaked toml for crates.io crate Cecile 0.1.7 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate Cecile 0.1.7 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate Cecile 0.1.7 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded strip-ansi-escapes v0.2.0 [INFO] [stderr] Downloaded iota v0.2.3 [INFO] [stderr] Downloaded mimalloc v0.1.39 [INFO] [stderr] Downloaded tree-sitter-highlight v0.20.1 [INFO] [stderr] Downloaded symbolic-common v12.8.0 [INFO] [stderr] Downloaded lalrpop-util v0.20.0 [INFO] [stderr] Downloaded ahash v0.8.5 [INFO] [stderr] Downloaded clap v4.4.10 [INFO] [stderr] Downloaded prettyplease v0.2.15 [INFO] [stderr] Downloaded cpp_demangle v0.4.3 [INFO] [stderr] Downloaded inferno v0.11.19 [INFO] [stderr] Downloaded reedline v0.26.0 [INFO] [stderr] Downloaded quick-xml v0.26.0 [INFO] [stderr] Downloaded clap_builder v4.4.9 [INFO] [stderr] Downloaded lalrpop v0.20.0 [INFO] [stderr] Downloaded libmimalloc-sys v0.1.35 [INFO] [stderr] Downloaded symbolic-demangle v12.8.0 [INFO] [stderr] Downloaded syn v2.0.32 [INFO] [stderr] Downloaded aho-corasick v1.0.4 [INFO] [stderr] Downloaded memchr v2.6.0 [INFO] [stderr] Downloaded prost-build v0.12.3 [INFO] [stderr] Downloaded test-generator v0.3.1 [INFO] [stderr] Downloaded zerocopy v0.7.3 [INFO] [stderr] Downloaded zerocopy-derive v0.7.3 [INFO] [stderr] Downloaded str_stack v0.1.0 [INFO] [stderr] Downloaded pprof v0.13.0 [INFO] [stderr] Downloaded memmap2 v0.9.0 [INFO] [stderr] Downloaded nu-ansi-term v0.47.0 [INFO] [stderr] Downloaded findshlibs v0.10.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2b0fc7835d82ec52468361867adc74561d95d7ccbaf5b224d2168dda98ecbed5 [INFO] running `Command { std: "docker" "start" "-a" "2b0fc7835d82ec52468361867adc74561d95d7ccbaf5b224d2168dda98ecbed5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2b0fc7835d82ec52468361867adc74561d95d7ccbaf5b224d2168dda98ecbed5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b0fc7835d82ec52468361867adc74561d95d7ccbaf5b224d2168dda98ecbed5", kill_on_drop: false }` [INFO] [stdout] 2b0fc7835d82ec52468361867adc74561d95d7ccbaf5b224d2168dda98ecbed5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ba9335f2ddb5e085bea47eee3d4c478ebec42b14d02aae96971cf1f7258b2f98 [INFO] running `Command { std: "docker" "start" "-a" "ba9335f2ddb5e085bea47eee3d4c478ebec42b14d02aae96971cf1f7258b2f98", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Checking memchr v2.6.0 [INFO] [stderr] Compiling rustix v0.38.28 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling smallvec v1.11.0 [INFO] [stderr] Compiling regex-syntax v0.7.5 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling bitflags v2.4.0 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling hashbrown v0.14.2 [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling linux-raw-sys v0.4.12 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Checking aho-corasick v1.0.4 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling thiserror v1.0.49 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling ena v0.14.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling syn v2.0.32 [INFO] [stderr] Checking anstyle-parse v0.2.2 [INFO] [stderr] Compiling vte_generate_state_changes v0.1.1 [INFO] [stderr] Compiling pico-args v0.5.0 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling indexmap v2.0.0 [INFO] [stderr] Checking anstyle v1.0.4 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Checking anstream v0.6.4 [INFO] [stderr] Compiling is-terminal v0.4.9 [INFO] [stderr] Checking vte v0.11.1 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling string_cache v0.8.7 [INFO] [stderr] Checking signal-hook-mio v0.2.3 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking iana-time-zone v0.1.58 [INFO] [stderr] Checking option-ext v0.2.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Compiling petgraph v0.6.4 [INFO] [stderr] Checking clap_lex v0.6.0 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking regex-automata v0.3.7 [INFO] [stderr] Checking clap_builder v4.4.9 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Compiling tree-sitter v0.20.10 [INFO] [stderr] Compiling libmimalloc-sys v0.1.35 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking strip-ansi-escapes v0.2.0 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking chrono v0.4.31 [INFO] [stderr] Checking strum v0.25.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking unicode-segmentation v1.10.1 [INFO] [stderr] Checking termcolor v1.2.0 [INFO] [stderr] Checking nu-ansi-term v0.49.0 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking dirs v5.0.1 [INFO] [stderr] Checking codespan-reporting v0.11.1 [INFO] [stderr] Checking nu-ansi-term v0.47.0 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking iota v0.2.3 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking yansi v0.5.1 [INFO] [stderr] Checking mimalloc v0.1.39 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Checking pretty_assertions v1.4.0 [INFO] [stderr] Compiling logos-codegen v0.13.0 [INFO] [stderr] Checking regex v1.9.4 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Compiling thiserror-impl v1.0.49 [INFO] [stderr] Compiling clap_derive v4.4.7 [INFO] [stderr] Compiling strum_macros v0.25.3 [INFO] [stderr] Checking lalrpop-util v0.20.0 [INFO] [stderr] Compiling logos-derive v0.13.0 [INFO] [stderr] Checking logos v0.13.0 [INFO] [stderr] Checking tree-sitter-highlight v0.20.1 [INFO] [stderr] Compiling lalrpop v0.20.0 [INFO] [stderr] Compiling test-generator v0.3.1 [INFO] [stderr] Checking clap v4.4.10 [INFO] [stderr] Checking crossterm v0.27.0 [INFO] [stderr] Checking fd-lock v3.0.13 [INFO] [stderr] Checking reedline v0.26.0 [INFO] [stderr] Compiling Cecile v0.1.7 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::cc_parser::ast` [INFO] [stdout] --> src/cc_lexer/mod.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | use crate::cc_parser::ast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::bail` [INFO] [stdout] --> src/cli/command.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow::bail; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/vm/chunk.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashMap, ops::Index}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::compiler::Upvalue` [INFO] [stdout] --> src/vm/chunk.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::compiler::Upvalue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::object::ObjectFunction` [INFO] [stdout] --> src/vm/chunk.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use super::object::ObjectFunction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> src/vm/chunk.rs:7:35 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::cc_parser::ast::{Span, Type}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::bail` [INFO] [stdout] --> src/cli/command.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow::bail; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/vm/chunk.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashMap, ops::Index}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::compiler::Upvalue` [INFO] [stdout] --> src/vm/chunk.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::compiler::Upvalue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::object::ObjectFunction` [INFO] [stdout] --> src/vm/chunk.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use super::object::ObjectFunction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> src/vm/chunk.rs:7:35 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::cc_parser::ast::{Span, Type}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `super_methods` is never read [INFO] [stdout] --> src/vm/compiler.rs:395:17 [INFO] [stdout] | [INFO] [stdout] 395 | let mut super_methods = [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_struct` [INFO] [stdout] --> src/vm/compiler.rs:446:17 [INFO] [stdout] | [INFO] [stdout] 446 | let current_struct = self.get_current_struct_mut(&range)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_struct` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/vm/compiler.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 188 | pub struct StructMethod { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 189 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StructMethod` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Cecile` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `cecile` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/repl/mod.rs:97:27 [INFO] [stdout] | [INFO] [stdout] 97 | fn render_prompt_left(&self) -> Cow { [INFO] [stdout] | ^^^^^ -------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 97 | fn render_prompt_left(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/repl/mod.rs:101:28 [INFO] [stdout] | [INFO] [stdout] 101 | fn render_prompt_right(&self) -> Cow { [INFO] [stdout] | ^^^^^ -------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 101 | fn render_prompt_right(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/repl/mod.rs:105:32 [INFO] [stdout] | [INFO] [stdout] 105 | fn render_prompt_indicator(&self, _: PromptEditMode) -> Cow { [INFO] [stdout] | ^^^^^ -------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 105 | fn render_prompt_indicator(&self, _: PromptEditMode) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/repl/mod.rs:109:42 [INFO] [stdout] | [INFO] [stdout] 109 | fn render_prompt_multiline_indicator(&self) -> Cow { [INFO] [stdout] | ^^^^^ -------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 109 | fn render_prompt_multiline_indicator(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/repl/mod.rs:113:47 [INFO] [stdout] | [INFO] [stdout] 113 | fn render_prompt_history_search_indicator(&self, _: PromptHistorySearch) -> Cow { [INFO] [stdout] | ^^^^^ the lifetime is elided here -------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 113 | fn render_prompt_history_search_indicator(&self, _: PromptHistorySearch) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/vm/mod.rs:69:27 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn new(allocator: &mut CeAllocation, trace: bool, optimized_debug: bool) -> VM { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the lifetime is elided here -- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 69 | pub fn new(allocator: &mut CeAllocation, trace: bool, optimized_debug: bool) -> VM<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/vm/mod.rs:309:46 [INFO] [stdout] | [INFO] [stdout] 309 | let arr_value = unsafe { (*array).values.get_unchecked_mut(index) }; [INFO] [stdout] | ^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut ArrayObject` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [value::Value]` [INFO] [stdout] --> src/vm/mod.rs:309:46 [INFO] [stdout] | [INFO] [stdout] 309 | let arr_value = unsafe { (*array).values.get_unchecked_mut(index) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `get_unchecked_mut` require a reference [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/slice/mod.rs:682:5 [INFO] [stdout] = note: `#[deny(dangerous_implicit_autorefs)]` on by default [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 309 | let arr_value = unsafe { (&mut (*array).values).get_unchecked_mut(index) }; [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/vm/mod.rs:353:42 [INFO] [stdout] | [INFO] [stdout] 353 | let value = unsafe { (*array).values.get_unchecked(index) }; [INFO] [stdout] | ^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut ArrayObject` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[value::Value]` [INFO] [stdout] --> src/vm/mod.rs:353:42 [INFO] [stdout] | [INFO] [stdout] 353 | let value = unsafe { (*array).values.get_unchecked(index) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `get_unchecked` require a reference [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/slice/mod.rs:637:5 [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 353 | let value = unsafe { (&(*array).values).get_unchecked(index) }; [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/vm/mod.rs:651:32 [INFO] [stdout] | [INFO] [stdout] 651 | let object = *unsafe { (*self.frame.closure).upvalues.get_unchecked(upvalue_idx) }; [INFO] [stdout] | ^^------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut ClosureObject` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[*mut UpvalueObject]` [INFO] [stdout] --> src/vm/mod.rs:651:32 [INFO] [stdout] | [INFO] [stdout] 651 | let object = *unsafe { (*self.frame.closure).upvalues.get_unchecked(upvalue_idx) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `get_unchecked` require a reference [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/slice/mod.rs:637:5 [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 651 | let object = *unsafe { (&(*self.frame.closure).upvalues).get_unchecked(upvalue_idx) }; [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/vm/mod.rs:659:32 [INFO] [stdout] | [INFO] [stdout] 659 | let object = *unsafe { (*self.frame.closure).upvalues.get_unchecked(upvalue_idx) }; [INFO] [stdout] | ^^------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut ClosureObject` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[*mut UpvalueObject]` [INFO] [stdout] --> src/vm/mod.rs:659:32 [INFO] [stdout] | [INFO] [stdout] 659 | let object = *unsafe { (*self.frame.closure).upvalues.get_unchecked(upvalue_idx) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `get_unchecked` require a reference [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/slice/mod.rs:637:5 [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 659 | let object = *unsafe { (&(*self.frame.closure).upvalues).get_unchecked(upvalue_idx) }; [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/vm/mod.rs:679:27 [INFO] [stdout] | [INFO] [stdout] 679 | unsafe { *(*self.frame.closure).upvalues.get_unchecked(upvalue_idx) } [INFO] [stdout] | ^^------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut ClosureObject` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[*mut UpvalueObject]` [INFO] [stdout] --> src/vm/mod.rs:679:27 [INFO] [stdout] | [INFO] [stdout] 679 | unsafe { *(*self.frame.closure).upvalues.get_unchecked(upvalue_idx) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `get_unchecked` require a reference [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/slice/mod.rs:637:5 [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 679 | unsafe { *(&(*self.frame.closure).upvalues).get_unchecked(upvalue_idx) } [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/vm/mod.rs:785:38 [INFO] [stdout] | [INFO] [stdout] 785 | let value = unsafe { (*array).values.get_unchecked(index.as_number() as usize) }; [INFO] [stdout] | ^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut ArrayObject` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[value::Value]` [INFO] [stdout] --> src/vm/mod.rs:785:38 [INFO] [stdout] | [INFO] [stdout] 785 | let value = unsafe { (*array).values.get_unchecked(index.as_number() as usize) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `get_unchecked` require a reference [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/slice/mod.rs:637:5 [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 785 | let value = unsafe { (&(*array).values).get_unchecked(index.as_number() as usize) }; [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/vm/mod.rs:1122:19 [INFO] [stdout] | [INFO] [stdout] 1122 | *unsafe { (*function).chunk.constants.get_unchecked(constant_idx) } [INFO] [stdout] | ^^--------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut ObjectFunction` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[value::Value]` [INFO] [stdout] --> src/vm/mod.rs:1122:19 [INFO] [stdout] | [INFO] [stdout] 1122 | *unsafe { (*function).chunk.constants.get_unchecked(constant_idx) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `get_unchecked` require a reference [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/slice/mod.rs:637:5 [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 1122 | *unsafe { (&(*function).chunk.constants).get_unchecked(constant_idx) } [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/vm/mod.rs:1271:29 [INFO] [stdout] | [INFO] [stdout] 1271 | let span = unsafe { (*function).chunk.spans[idx - 1].clone() }; [INFO] [stdout] | ^^--------^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut ObjectFunction` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecRun>` [INFO] [stdout] --> src/vm/mod.rs:1271:29 [INFO] [stdout] | [INFO] [stdout] 1271 | let span = unsafe { (*function).chunk.spans[idx - 1].clone() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 1271 | let span = unsafe { (&(*function).chunk.spans)[idx - 1].clone() }; [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/vm/chunk.rs:189:18 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn drain(&mut self, range: std::ops::RangeInclusive) -> std::vec::Drain> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ----------------------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 189 | pub fn drain(&mut self, range: std::ops::RangeInclusive) -> std::vec::Drain<'_, Run> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/vm/compiler.rs:1701:17 [INFO] [stdout] | [INFO] [stdout] 1701 | (*self.current_compiler.function).chunk.op_codes[offset_idx], [INFO] [stdout] | ^^------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut ObjectFunction` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut Vec` [INFO] [stdout] --> src/vm/compiler.rs:1701:17 [INFO] [stdout] | [INFO] [stdout] 1701 | (*self.current_compiler.function).chunk.op_codes[offset_idx], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 1701 | (&mut (*self.current_compiler.function).chunk.op_codes)[offset_idx], [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/vm/compiler.rs:1702:17 [INFO] [stdout] | [INFO] [stdout] 1702 | (*self.current_compiler.function).chunk.op_codes[offset_idx + 1], [INFO] [stdout] | ^^------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut ObjectFunction` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut Vec` [INFO] [stdout] --> src/vm/compiler.rs:1702:17 [INFO] [stdout] | [INFO] [stdout] 1702 | (*self.current_compiler.function).chunk.op_codes[offset_idx + 1], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 1702 | (&mut (*self.current_compiler.function).chunk.op_codes)[offset_idx + 1], [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `super_methods` is never read [INFO] [stdout] --> src/vm/compiler.rs:395:17 [INFO] [stdout] | [INFO] [stdout] 395 | let mut super_methods = [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_struct` [INFO] [stdout] --> src/vm/compiler.rs:446:17 [INFO] [stdout] | [INFO] [stdout] 446 | let current_struct = self.get_current_struct_mut(&range)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_struct` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Cecile` (lib) due to 10 previous errors; 16 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/vm/compiler.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 188 | pub struct StructMethod { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 189 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StructMethod` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/repl/mod.rs:97:27 [INFO] [stdout] | [INFO] [stdout] 97 | fn render_prompt_left(&self) -> Cow { [INFO] [stdout] | ^^^^^ -------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 97 | fn render_prompt_left(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/repl/mod.rs:101:28 [INFO] [stdout] | [INFO] [stdout] 101 | fn render_prompt_right(&self) -> Cow { [INFO] [stdout] | ^^^^^ -------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 101 | fn render_prompt_right(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/repl/mod.rs:105:32 [INFO] [stdout] | [INFO] [stdout] 105 | fn render_prompt_indicator(&self, _: PromptEditMode) -> Cow { [INFO] [stdout] | ^^^^^ -------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 105 | fn render_prompt_indicator(&self, _: PromptEditMode) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/repl/mod.rs:109:42 [INFO] [stdout] | [INFO] [stdout] 109 | fn render_prompt_multiline_indicator(&self) -> Cow { [INFO] [stdout] | ^^^^^ -------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 109 | fn render_prompt_multiline_indicator(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/repl/mod.rs:113:47 [INFO] [stdout] | [INFO] [stdout] 113 | fn render_prompt_history_search_indicator(&self, _: PromptHistorySearch) -> Cow { [INFO] [stdout] | ^^^^^ the lifetime is elided here -------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 113 | fn render_prompt_history_search_indicator(&self, _: PromptHistorySearch) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/vm/mod.rs:69:27 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn new(allocator: &mut CeAllocation, trace: bool, optimized_debug: bool) -> VM { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the lifetime is elided here -- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 69 | pub fn new(allocator: &mut CeAllocation, trace: bool, optimized_debug: bool) -> VM<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/vm/mod.rs:309:46 [INFO] [stdout] | [INFO] [stdout] 309 | let arr_value = unsafe { (*array).values.get_unchecked_mut(index) }; [INFO] [stdout] | ^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut ArrayObject` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [value::Value]` [INFO] [stdout] --> src/vm/mod.rs:309:46 [INFO] [stdout] | [INFO] [stdout] 309 | let arr_value = unsafe { (*array).values.get_unchecked_mut(index) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `get_unchecked_mut` require a reference [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/slice/mod.rs:682:5 [INFO] [stdout] = note: `#[deny(dangerous_implicit_autorefs)]` on by default [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 309 | let arr_value = unsafe { (&mut (*array).values).get_unchecked_mut(index) }; [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/vm/mod.rs:353:42 [INFO] [stdout] | [INFO] [stdout] 353 | let value = unsafe { (*array).values.get_unchecked(index) }; [INFO] [stdout] | ^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut ArrayObject` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[value::Value]` [INFO] [stdout] --> src/vm/mod.rs:353:42 [INFO] [stdout] | [INFO] [stdout] 353 | let value = unsafe { (*array).values.get_unchecked(index) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `get_unchecked` require a reference [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/slice/mod.rs:637:5 [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 353 | let value = unsafe { (&(*array).values).get_unchecked(index) }; [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/vm/mod.rs:651:32 [INFO] [stdout] | [INFO] [stdout] 651 | let object = *unsafe { (*self.frame.closure).upvalues.get_unchecked(upvalue_idx) }; [INFO] [stdout] | ^^------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut ClosureObject` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[*mut UpvalueObject]` [INFO] [stdout] --> src/vm/mod.rs:651:32 [INFO] [stdout] | [INFO] [stdout] 651 | let object = *unsafe { (*self.frame.closure).upvalues.get_unchecked(upvalue_idx) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `get_unchecked` require a reference [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/slice/mod.rs:637:5 [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 651 | let object = *unsafe { (&(*self.frame.closure).upvalues).get_unchecked(upvalue_idx) }; [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/vm/mod.rs:659:32 [INFO] [stdout] | [INFO] [stdout] 659 | let object = *unsafe { (*self.frame.closure).upvalues.get_unchecked(upvalue_idx) }; [INFO] [stdout] | ^^------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut ClosureObject` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[*mut UpvalueObject]` [INFO] [stdout] --> src/vm/mod.rs:659:32 [INFO] [stdout] | [INFO] [stdout] 659 | let object = *unsafe { (*self.frame.closure).upvalues.get_unchecked(upvalue_idx) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `get_unchecked` require a reference [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/slice/mod.rs:637:5 [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 659 | let object = *unsafe { (&(*self.frame.closure).upvalues).get_unchecked(upvalue_idx) }; [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/vm/mod.rs:679:27 [INFO] [stdout] | [INFO] [stdout] 679 | unsafe { *(*self.frame.closure).upvalues.get_unchecked(upvalue_idx) } [INFO] [stdout] | ^^------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut ClosureObject` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[*mut UpvalueObject]` [INFO] [stdout] --> src/vm/mod.rs:679:27 [INFO] [stdout] | [INFO] [stdout] 679 | unsafe { *(*self.frame.closure).upvalues.get_unchecked(upvalue_idx) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `get_unchecked` require a reference [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/slice/mod.rs:637:5 [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 679 | unsafe { *(&(*self.frame.closure).upvalues).get_unchecked(upvalue_idx) } [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/vm/mod.rs:785:38 [INFO] [stdout] | [INFO] [stdout] 785 | let value = unsafe { (*array).values.get_unchecked(index.as_number() as usize) }; [INFO] [stdout] | ^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut ArrayObject` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[value::Value]` [INFO] [stdout] --> src/vm/mod.rs:785:38 [INFO] [stdout] | [INFO] [stdout] 785 | let value = unsafe { (*array).values.get_unchecked(index.as_number() as usize) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `get_unchecked` require a reference [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/slice/mod.rs:637:5 [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 785 | let value = unsafe { (&(*array).values).get_unchecked(index.as_number() as usize) }; [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/vm/mod.rs:1122:19 [INFO] [stdout] | [INFO] [stdout] 1122 | *unsafe { (*function).chunk.constants.get_unchecked(constant_idx) } [INFO] [stdout] | ^^--------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut ObjectFunction` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[value::Value]` [INFO] [stdout] --> src/vm/mod.rs:1122:19 [INFO] [stdout] | [INFO] [stdout] 1122 | *unsafe { (*function).chunk.constants.get_unchecked(constant_idx) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: method calls to `get_unchecked` require a reference [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/slice/mod.rs:637:5 [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 1122 | *unsafe { (&(*function).chunk.constants).get_unchecked(constant_idx) } [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/vm/mod.rs:1271:29 [INFO] [stdout] | [INFO] [stdout] 1271 | let span = unsafe { (*function).chunk.spans[idx - 1].clone() }; [INFO] [stdout] | ^^--------^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut ObjectFunction` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecRun>` [INFO] [stdout] --> src/vm/mod.rs:1271:29 [INFO] [stdout] | [INFO] [stdout] 1271 | let span = unsafe { (*function).chunk.spans[idx - 1].clone() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 1271 | let span = unsafe { (&(*function).chunk.spans)[idx - 1].clone() }; [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/vm/chunk.rs:189:18 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn drain(&mut self, range: std::ops::RangeInclusive) -> std::vec::Drain> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ----------------------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 189 | pub fn drain(&mut self, range: std::ops::RangeInclusive) -> std::vec::Drain<'_, Run> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/vm/compiler.rs:1701:17 [INFO] [stdout] | [INFO] [stdout] 1701 | (*self.current_compiler.function).chunk.op_codes[offset_idx], [INFO] [stdout] | ^^------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut ObjectFunction` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut Vec` [INFO] [stdout] --> src/vm/compiler.rs:1701:17 [INFO] [stdout] | [INFO] [stdout] 1701 | (*self.current_compiler.function).chunk.op_codes[offset_idx], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 1701 | (&mut (*self.current_compiler.function).chunk.op_codes)[offset_idx], [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/vm/compiler.rs:1702:17 [INFO] [stdout] | [INFO] [stdout] 1702 | (*self.current_compiler.function).chunk.op_codes[offset_idx + 1], [INFO] [stdout] | ^^------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut ObjectFunction` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut Vec` [INFO] [stdout] --> src/vm/compiler.rs:1702:17 [INFO] [stdout] | [INFO] [stdout] 1702 | (*self.current_compiler.function).chunk.op_codes[offset_idx + 1], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 1702 | (&mut (*self.current_compiler.function).chunk.op_codes)[offset_idx + 1], [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Cecile` (lib test) due to 10 previous errors; 16 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ba9335f2ddb5e085bea47eee3d4c478ebec42b14d02aae96971cf1f7258b2f98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba9335f2ddb5e085bea47eee3d4c478ebec42b14d02aae96971cf1f7258b2f98", kill_on_drop: false }` [INFO] [stdout] ba9335f2ddb5e085bea47eee3d4c478ebec42b14d02aae96971cf1f7258b2f98