[INFO] cloning repository https://github.com/AnujJha88/simple-AMM
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AnujJha88/simple-AMM" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAnujJha88%2Fsimple-AMM", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAnujJha88%2Fsimple-AMM'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] b90775be706784bc12c5cc29fe0b9c51b9270a0c
[INFO] checking AnujJha88/simple-AMM against master#a6acf0f07f0ed1c12e26dc0db3b9bf1d0504a0bb for pr-151109
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAnujJha88%2Fsimple-AMM" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] removed /workspace/builds/worker-3-tc1/source/rust-toolchain.toml
[INFO] started tweaking git repo https://github.com/AnujJha88/simple-AMM
[INFO] finished tweaking git repo https://github.com/AnujJha88/simple-AMM
[INFO] tweaked toml for git repo https://github.com/AnujJha88/simple-AMM written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/AnujJha88/simple-AMM on toolchain a6acf0f07f0ed1c12e26dc0db3b9bf1d0504a0bb
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a6acf0f07f0ed1c12e26dc0db3b9bf1d0504a0bb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/AnujJha88/simple-AMM 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" "+a6acf0f07f0ed1c12e26dc0db3b9bf1d0504a0bb" "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-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a6acf0f07f0ed1c12e26dc0db3b9bf1d0504a0bb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c6033af991e5a83a4ec5832bb8aae13a4e0511fdf4ad82b28f494e0ce5e709c1
[INFO] running `Command { std: "docker" "start" "-a" "c6033af991e5a83a4ec5832bb8aae13a4e0511fdf4ad82b28f494e0ce5e709c1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c6033af991e5a83a4ec5832bb8aae13a4e0511fdf4ad82b28f494e0ce5e709c1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c6033af991e5a83a4ec5832bb8aae13a4e0511fdf4ad82b28f494e0ce5e709c1", kill_on_drop: false }`
[INFO] [stdout] c6033af991e5a83a4ec5832bb8aae13a4e0511fdf4ad82b28f494e0ce5e709c1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a6acf0f07f0ed1c12e26dc0db3b9bf1d0504a0bb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 39418a5809a7d4ac41fc5b887e743804120ec82169cdbd671fffcd34dfdefb4a
[INFO] running `Command { std: "docker" "start" "-a" "39418a5809a7d4ac41fc5b887e743804120ec82169cdbd671fffcd34dfdefb4a", kill_on_drop: false }`
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]     Checking bytemuck v1.24.0
[INFO] [stderr]     Checking solana-define-syscall v2.3.0
[INFO] [stderr]    Compiling anchor-derive-space v0.32.1
[INFO] [stderr]    Compiling anchor-syn v0.32.1
[INFO] [stderr]     Checking sha2 v0.10.9
[INFO] [stderr]     Checking solana-hash v2.3.0
[INFO] [stderr]     Checking curve25519-dalek v4.1.3
[INFO] [stderr]     Checking solana-sha256-hasher v2.3.0
[INFO] [stderr]     Checking solana-decode-error v2.3.0
[INFO] [stderr]     Checking solana-pubkey v2.4.0
[INFO] [stderr]     Checking solana-instruction v2.3.0
[INFO] [stderr]     Checking solana-sdk-ids v2.2.1
[INFO] [stderr]     Checking solana-sysvar-id v2.2.1
[INFO] [stderr]     Checking solana-feature-gate-interface v2.2.2
[INFO] [stderr]     Checking solana-clock v2.2.2
[INFO] [stderr]     Checking solana-last-restart-slot v2.2.1
[INFO] [stderr]     Checking solana-slot-hashes v2.2.1
[INFO] [stderr]     Checking solana-epoch-schedule v2.2.1
[INFO] [stderr]     Checking solana-rent v2.2.1
[INFO] [stderr]     Checking solana-slot-history v2.2.1
[INFO] [stderr]     Checking solana-epoch-rewards v2.2.1
[INFO] [stderr]     Checking solana-program-error v2.2.2
[INFO] [stderr]     Checking solana-system-interface v1.0.0
[INFO] [stderr]     Checking solana-serialize-utils v2.2.1
[INFO] [stderr]     Checking solana-stable-layout v2.2.1
[INFO] [stderr]     Checking solana-account-info v2.3.0
[INFO] [stderr]     Checking solana-program-pack v2.2.1
[INFO] [stderr]     Checking solana-program-entrypoint v2.3.0
[INFO] [stderr]     Checking solana-cpi v2.2.1
[INFO] [stderr]     Checking solana-instructions-sysvar v2.2.2
[INFO] [stderr]     Checking solana-invoke v0.4.0
[INFO] [stderr]     Checking solana-stake-interface v1.2.1
[INFO] [stderr]     Checking solana-loader-v3-interface v3.0.0
[INFO] [stderr]     Checking solana-sysvar v2.3.0
[INFO] [stderr]    Compiling anchor-attribute-access-control v0.32.1
[INFO] [stderr]    Compiling anchor-attribute-account v0.32.1
[INFO] [stderr]    Compiling anchor-derive-serde v0.32.1
[INFO] [stderr]    Compiling anchor-attribute-event v0.32.1
[INFO] [stderr]    Compiling anchor-attribute-program v0.32.1
[INFO] [stderr]    Compiling anchor-attribute-constant v0.32.1
[INFO] [stderr]    Compiling anchor-attribute-error v0.32.1
[INFO] [stderr]    Compiling anchor-derive-accounts v0.32.1
[INFO] [stderr]     Checking anchor-lang v0.32.1
[INFO] [stderr]     Checking simple_amm v0.1.0 (/opt/rustwide/workdir/programs/simple_amm)
[INFO] [stdout] error: unknown start of token: `
[INFO] [stdout]  --> programs/simple_amm/src/lib.rs:7:20
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub mod simple_amm{`
[INFO] [stdout]   |                    ^
[INFO] [stdout]   |
[INFO] [stdout] help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not
[INFO] [stdout]   |
[INFO] [stdout] 7 - pub mod simple_amm{`
[INFO] [stdout] 7 + pub mod simple_amm{'
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: unknown start of token: `
[INFO] [stdout]  --> programs/simple_amm/src/lib.rs:7:20
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub mod simple_amm{`
[INFO] [stdout]   |                    ^
[INFO] [stdout]   |
[INFO] [stdout] help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not
[INFO] [stdout]   |
[INFO] [stdout] 7 - pub mod simple_amm{`
[INFO] [stdout] 7 + pub mod simple_amm{'
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `crate`
[INFO] [stdout]  --> programs/simple_amm/src/lib.rs:6:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[program]
[INFO] [stdout]   | ^^^^^^^^^^ could not find `__client_accounts_add_liquidity` in the crate root
[INFO] [stdout]   |
[INFO] [stdout]   = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `anchor__spl`
[INFO] [stdout]  --> programs/simple_amm/src/lib.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use anchor__spl::token::{self,Token,TokenAccount,Transfer};
[INFO] [stdout]   |     ^^^^^^^^^^^ use of unresolved module or unlinked crate `anchor__spl`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `anchor__spl`, use `cargo add anchor__spl` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `anchor__spl`
[INFO] [stdout]  --> programs/simple_amm/src/lib.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use anchor__spl::token::{self,Token,TokenAccount,Transfer};
[INFO] [stdout]   |     ^^^^^^^^^^^ use of unresolved module or unlinked crate `anchor__spl`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `anchor__spl`, use `cargo add anchor__spl` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `crate`
[INFO] [stdout]  --> programs/simple_amm/src/lib.rs:6:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[program]
[INFO] [stdout]   | ^^^^^^^^^^ could not find `__client_accounts_create_pool` in the crate root
[INFO] [stdout]   |
[INFO] [stdout]   = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `anchor__spl`
[INFO] [stdout]  --> programs/simple_amm/src/lib.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use anchor__spl::token::{self,Token,TokenAccount,Transfer};
[INFO] [stdout]   |     ^^^^^^^^^^^ use of unresolved module or unlinked crate `anchor__spl`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `anchor__spl`, use `cargo add anchor__spl` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `anchor__spl`
[INFO] [stdout]  --> programs/simple_amm/src/lib.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use anchor__spl::token::{self,Token,TokenAccount,Transfer};
[INFO] [stdout]   |     ^^^^^^^^^^^ use of unresolved module or unlinked crate `anchor__spl`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `anchor__spl`, use `cargo add anchor__spl` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `integer_sqrt` found for type `u128` in the current scope
[INFO] [stdout]   --> programs/simple_amm/src/lib.rs:19:87
[INFO] [stdout]    |
[INFO] [stdout] 19 |         let initial_lp_tokens=(token_a as u128).checked_mul(token_b as u128).unwrap().integer_sqrt() as u64;
[INFO] [stdout]    |                                                                                       ^^^^^^^^^^^^ method not found in `u128`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `integer_sqrt` found for type `u128` in the current scope
[INFO] [stdout]   --> programs/simple_amm/src/lib.rs:19:87
[INFO] [stdout]    |
[INFO] [stdout] 19 |         let initial_lp_tokens=(token_a as u128).checked_mul(token_b as u128).unwrap().integer_sqrt() as u64;
[INFO] [stdout]    |                                                                                       ^^^^^^^^^^^^ method not found in `u128`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ctx`
[INFO] [stdout]   --> programs/simple_amm/src/lib.rs:10:23
[INFO] [stdout]    |
[INFO] [stdout] 10 |     pub fn initialize(ctx:Context<Initialize>)->Result<()>{
[INFO] [stdout]    |                       ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `simple_amm` (lib test) due to 5 previous errors; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused variable: `ctx`
[INFO] [stdout]   --> programs/simple_amm/src/lib.rs:10:23
[INFO] [stdout]    |
[INFO] [stdout] 10 |     pub fn initialize(ctx:Context<Initialize>)->Result<()>{
[INFO] [stdout]    |                       ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `simple_amm` (lib) due to 5 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "39418a5809a7d4ac41fc5b887e743804120ec82169cdbd671fffcd34dfdefb4a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "39418a5809a7d4ac41fc5b887e743804120ec82169cdbd671fffcd34dfdefb4a", kill_on_drop: false }`
[INFO] [stdout] 39418a5809a7d4ac41fc5b887e743804120ec82169cdbd671fffcd34dfdefb4a
