[INFO] cloning repository https://github.com/guillaumebort/glue [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/guillaumebort/glue" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguillaumebort%2Fglue", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguillaumebort%2Fglue'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2cc739fd971e58138e96a36663a77bc2b342efaf [INFO] checking guillaumebort/glue against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguillaumebort%2Fglue" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/guillaumebort/glue on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/guillaumebort/glue [INFO] finished tweaking git repo https://github.com/guillaumebort/glue [INFO] tweaked toml for git repo https://github.com/guillaumebort/glue written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/guillaumebort/glue 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" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ab5ae114b741ba15a615f60b5a90cc86b13d6e8ed0839c62b970cadeac3b5200 [INFO] running `Command { std: "docker" "start" "-a" "ab5ae114b741ba15a615f60b5a90cc86b13d6e8ed0839c62b970cadeac3b5200", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ab5ae114b741ba15a615f60b5a90cc86b13d6e8ed0839c62b970cadeac3b5200", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab5ae114b741ba15a615f60b5a90cc86b13d6e8ed0839c62b970cadeac3b5200", kill_on_drop: false }` [INFO] [stdout] ab5ae114b741ba15a615f60b5a90cc86b13d6e8ed0839c62b970cadeac3b5200 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aa602887da671044b629d13c5a4073ee0996de94849c9bfe510aa97d21178f99 [INFO] running `Command { std: "docker" "start" "-a" "aa602887da671044b629d13c5a4073ee0996de94849c9bfe510aa97d21178f99", kill_on_drop: false }` [INFO] [stderr] Checking glue v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` [INFO] [stdout] --> src/assembler/x86_64.rs:228:29 [INFO] [stdout] | [INFO] [stdout] 228 | impl Parameter for [Register, ..1] { [INFO] [stdout] | ^ expected one of 7 possible tokens [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: macros that expand to items must be delimited with braces or followed by a semicolon [INFO] [stdout] --> src/macros.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | macro_rules! jit_fn ( [INFO] [stdout] | _____________________^ [INFO] [stdout] 3 | | ($jit_function:ident, ($($arg_type:ty),*) -> $return_type:ty) => ( [INFO] [stdout] 4 | | unsafe { [INFO] [stdout] 5 | | let f: extern "C" fn($($arg_type),*) -> $return_type = std::mem::transmute($jit_function.compile()); [INFO] [stdout] ... | [INFO] [stdout] 8 | | ) [INFO] [stdout] 9 | | ) [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] help: change the delimiters to curly braces [INFO] [stdout] | [INFO] [stdout] 2 ~ macro_rules! jit_fn { [INFO] [stdout] 3 | ($jit_function:ident, ($($arg_type:ty),*) -> $return_type:ty) => ( [INFO] [stdout] ... [INFO] [stdout] 8 | ) [INFO] [stdout] 9 + } [INFO] [stdout] | [INFO] [stdout] help: add a semicolon [INFO] [stdout] | [INFO] [stdout] 9 | ); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: macros that expand to items must be delimited with braces or followed by a semicolon [INFO] [stdout] --> src/macros.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | macro_rules! jit_lazy_fn ( [INFO] [stdout] | __________________________^ [INFO] [stdout] 12 | | ($jit_function:ident, ($($arg_type:ty),*) -> $return_type:ty, $jit_compiler:ident) => ( [INFO] [stdout] 13 | | unsafe { [INFO] [stdout] 14 | | let f: extern "C" fn($($arg_type),*) -> $return_type = std::mem::transmute($jit_function.lazy($jit_compiler)); [INFO] [stdout] ... | [INFO] [stdout] 17 | | ) [INFO] [stdout] 18 | | ) [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] help: change the delimiters to curly braces [INFO] [stdout] | [INFO] [stdout] 11 ~ macro_rules! jit_lazy_fn { [INFO] [stdout] 12 | ($jit_function:ident, ($($arg_type:ty),*) -> $return_type:ty, $jit_compiler:ident) => ( [INFO] [stdout] ... [INFO] [stdout] 17 | ) [INFO] [stdout] 18 + } [INFO] [stdout] | [INFO] [stdout] help: add a semicolon [INFO] [stdout] | [INFO] [stdout] 18 | ); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,` [INFO] [stdout] --> src/assembler/x86_64.rs:228:29 [INFO] [stdout] | [INFO] [stdout] 228 | impl Parameter for [Register, ..1] { [INFO] [stdout] | ^ expected one of 7 possible tokens [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: macros that expand to items must be delimited with braces or followed by a semicolon [INFO] [stdout] --> src/macros.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | macro_rules! jit_fn ( [INFO] [stdout] | _____________________^ [INFO] [stdout] 3 | | ($jit_function:ident, ($($arg_type:ty),*) -> $return_type:ty) => ( [INFO] [stdout] 4 | | unsafe { [INFO] [stdout] 5 | | let f: extern "C" fn($($arg_type),*) -> $return_type = std::mem::transmute($jit_function.compile()); [INFO] [stdout] ... | [INFO] [stdout] 8 | | ) [INFO] [stdout] 9 | | ) [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] help: change the delimiters to curly braces [INFO] [stdout] | [INFO] [stdout] 2 ~ macro_rules! jit_fn { [INFO] [stdout] 3 | ($jit_function:ident, ($($arg_type:ty),*) -> $return_type:ty) => ( [INFO] [stdout] ... [INFO] [stdout] 8 | ) [INFO] [stdout] 9 + } [INFO] [stdout] | [INFO] [stdout] help: add a semicolon [INFO] [stdout] | [INFO] [stdout] 9 | ); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: macros that expand to items must be delimited with braces or followed by a semicolon [INFO] [stdout] --> src/macros.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | macro_rules! jit_lazy_fn ( [INFO] [stdout] | __________________________^ [INFO] [stdout] 12 | | ($jit_function:ident, ($($arg_type:ty),*) -> $return_type:ty, $jit_compiler:ident) => ( [INFO] [stdout] 13 | | unsafe { [INFO] [stdout] 14 | | let f: extern "C" fn($($arg_type),*) -> $return_type = std::mem::transmute($jit_function.lazy($jit_compiler)); [INFO] [stdout] ... | [INFO] [stdout] 17 | | ) [INFO] [stdout] 18 | | ) [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] help: change the delimiters to curly braces [INFO] [stdout] | [INFO] [stdout] 11 ~ macro_rules! jit_lazy_fn { [INFO] [stdout] 12 | ($jit_function:ident, ($($arg_type:ty),*) -> $return_type:ty, $jit_compiler:ident) => ( [INFO] [stdout] ... [INFO] [stdout] 17 | ) [INFO] [stdout] 18 + } [INFO] [stdout] | [INFO] [stdout] help: add a semicolon [INFO] [stdout] | [INFO] [stdout] 18 | ); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unknown format trait `s` [INFO] [stdout] --> src/lib.rs:46:52 [INFO] [stdout] | [INFO] [stdout] 46 | string.push_str(format!("\t{:016x}:\t{:24s}", address, bytes).as_slice()); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: the only appropriate formatting traits are: [INFO] [stdout] - ``, which uses the `Display` trait [INFO] [stdout] - `?`, which uses the `Debug` trait [INFO] [stdout] - `e`, which uses the `LowerExp` trait [INFO] [stdout] - `E`, which uses the `UpperExp` trait [INFO] [stdout] - `o`, which uses the `Octal` trait [INFO] [stdout] - `p`, which uses the `Pointer` trait [INFO] [stdout] - `b`, which uses the `Binary` trait [INFO] [stdout] - `x`, which uses the `LowerHex` trait [INFO] [stdout] - `X`, which uses the `UpperHex` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unknown format trait `s` [INFO] [stdout] --> src/lib.rs:46:52 [INFO] [stdout] | [INFO] [stdout] 46 | string.push_str(format!("\t{:016x}:\t{:24s}", address, bytes).as_slice()); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: the only appropriate formatting traits are: [INFO] [stdout] - ``, which uses the `Display` trait [INFO] [stdout] - `?`, which uses the `Debug` trait [INFO] [stdout] - `e`, which uses the `LowerExp` trait [INFO] [stdout] - `E`, which uses the `UpperExp` trait [INFO] [stdout] - `o`, which uses the `Octal` trait [INFO] [stdout] - `p`, which uses the `Pointer` trait [INFO] [stdout] - `b`, which uses the `Binary` trait [INFO] [stdout] - `x`, which uses the `LowerHex` trait [INFO] [stdout] - `X`, which uses the `UpperHex` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::sync::RWLock` [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::RWLock; [INFO] [stdout] | ^^^^^^^^^^^------ [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `rwlock` [INFO] [stdout] | no `RWLock` in `sync` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `fail` in this scope [INFO] [stdout] --> src/lib.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | fail!() [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `fail` in this scope [INFO] [stdout] --> src/lib.rs:124:7 [INFO] [stdout] | [INFO] [stdout] 124 | fail!("Jit Function {} already defined", name) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `fail` in this scope [INFO] [stdout] --> src/lib.rs:137:3 [INFO] [stdout] | [INFO] [stdout] 137 | fail!() [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::sync::RWLock` [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::RWLock; [INFO] [stdout] | ^^^^^^^^^^^------ [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `rwlock` [INFO] [stdout] | no `RWLock` in `sync` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `fail` in this scope [INFO] [stdout] --> src/lib.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | fail!() [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `fail` in this scope [INFO] [stdout] --> src/lib.rs:124:7 [INFO] [stdout] | [INFO] [stdout] 124 | fail!("Jit Function {} already defined", name) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `fail` in this scope [INFO] [stdout] --> src/lib.rs:162:7 [INFO] [stdout] | [INFO] [stdout] 162 | fail!() [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `fail` in this scope [INFO] [stdout] --> src/lib.rs:137:3 [INFO] [stdout] | [INFO] [stdout] 137 | fail!() [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `fail` in this scope [INFO] [stdout] --> src/lib.rs:162:7 [INFO] [stdout] | [INFO] [stdout] 162 | fail!() [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `MemoryMap` in `os` [INFO] [stdout] --> src/lib.rs:149:16 [INFO] [stdout] | [INFO] [stdout] 149 | mem: os::MemoryMap::new(bytes, [os::MapReadable, os::MapWritable, os::MapExecutable]).unwrap(), [INFO] [stdout] | ^^^^^^^^^ could not find `MemoryMap` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `MemoryMap` in `os` [INFO] [stdout] --> src/lib.rs:149:16 [INFO] [stdout] | [INFO] [stdout] 149 | mem: os::MemoryMap::new(bytes, [os::MapReadable, os::MapWritable, os::MapExecutable]).unwrap(), [INFO] [stdout] | ^^^^^^^^^ could not find `MemoryMap` in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Instruction` in this scope [INFO] [stdout] --> src/lib.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | code: Vec<(Vec, Option)>, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 20 | pub struct JitFunction { [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Instruction` in this scope [INFO] [stdout] --> src/lib.rs:28:34 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn code(&mut self, code: &[Instruction]) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/lib.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | for l in range(0, std::cmp::max(1, lines)) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 5 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `copy_memory` in module `ptr` [INFO] [stdout] --> src/lib.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | ptr::copy_memory(function_pointer, bytes.as_ptr(), bytes.len()); [INFO] [stdout] | ^^^^^^^^^^^ not found in `ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/lib.rs:84:19 [INFO] [stdout] | [INFO] [stdout] 84 | static PAGE_SIZE: uint = 4096; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/lib.rs:106:47 [INFO] [stdout] | [INFO] [stdout] 106 | unsafe fn allocate_memory(&mut self, bytes: uint) -> *mut u8 { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Instruction` in this scope [INFO] [stdout] --> src/lib.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | fn trampoline() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 136 | fn trampoline() -> Vec { [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MemoryMap` in module `os` [INFO] [stdout] --> src/lib.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 141 | mem: os::MemoryMap, [INFO] [stdout] | ^^^^^^^^^ not found in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Instruction` in this scope [INFO] [stdout] --> src/lib.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | code: Vec<(Vec, Option)>, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 20 | pub struct JitFunction { [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/lib.rs:142:23 [INFO] [stdout] | [INFO] [stdout] 142 | allocation_pointer: uint [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/lib.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | fn new(bytes: uint) -> MemoryRegion { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Instruction` in this scope [INFO] [stdout] --> src/lib.rs:28:34 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn code(&mut self, code: &[Instruction]) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MapReadable` in module `os` [INFO] [stdout] --> src/lib.rs:149:43 [INFO] [stdout] | [INFO] [stdout] 149 | mem: os::MemoryMap::new(bytes, [os::MapReadable, os::MapWritable, os::MapExecutable]).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^ not found in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MapWritable` in module `os` [INFO] [stdout] --> src/lib.rs:149:60 [INFO] [stdout] | [INFO] [stdout] 149 | mem: os::MemoryMap::new(bytes, [os::MapReadable, os::MapWritable, os::MapExecutable]).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^ not found in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/lib.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | for l in range(0, std::cmp::max(1, lines)) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 5 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MapExecutable` in module `os` [INFO] [stdout] --> src/lib.rs:149:77 [INFO] [stdout] | [INFO] [stdout] 149 | mem: os::MemoryMap::new(bytes, [os::MapReadable, os::MapWritable, os::MapExecutable]).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/lib.rs:154:27 [INFO] [stdout] | [INFO] [stdout] 154 | fn left_space(&self) -> uint { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `copy_memory` in module `ptr` [INFO] [stdout] --> src/lib.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | ptr::copy_memory(function_pointer, bytes.as_ptr(), bytes.len()); [INFO] [stdout] | ^^^^^^^^^^^ not found in `ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/lib.rs:158:40 [INFO] [stdout] | [INFO] [stdout] 158 | unsafe fn allocate(&mut self, bytes: uint) -> *mut u8 { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/lib.rs:84:19 [INFO] [stdout] | [INFO] [stdout] 84 | static PAGE_SIZE: uint = 4096; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/lib.rs:159:65 [INFO] [stdout] | [INFO] [stdout] 159 | let ptr = self.mem.data().offset(self.allocation_pointer as int); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/lib.rs:106:47 [INFO] [stdout] | [INFO] [stdout] 106 | unsafe fn allocate_memory(&mut self, bytes: uint) -> *mut u8 { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Instruction` in this scope [INFO] [stdout] --> src/lib.rs:136:24 [INFO] [stdout] | [INFO] [stdout] 136 | fn trampoline() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 136 | fn trampoline() -> Vec { [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MemoryMap` in module `os` [INFO] [stdout] --> src/lib.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 141 | mem: os::MemoryMap, [INFO] [stdout] | ^^^^^^^^^ not found in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/lib.rs:142:23 [INFO] [stdout] | [INFO] [stdout] 142 | allocation_pointer: uint [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/lib.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | fn new(bytes: uint) -> MemoryRegion { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MapReadable` in module `os` [INFO] [stdout] --> src/lib.rs:149:43 [INFO] [stdout] | [INFO] [stdout] 149 | mem: os::MemoryMap::new(bytes, [os::MapReadable, os::MapWritable, os::MapExecutable]).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^ not found in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MapWritable` in module `os` [INFO] [stdout] --> src/lib.rs:149:60 [INFO] [stdout] | [INFO] [stdout] 149 | mem: os::MemoryMap::new(bytes, [os::MapReadable, os::MapWritable, os::MapExecutable]).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^ not found in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MapExecutable` in module `os` [INFO] [stdout] --> src/lib.rs:149:77 [INFO] [stdout] | [INFO] [stdout] 149 | mem: os::MemoryMap::new(bytes, [os::MapReadable, os::MapWritable, os::MapExecutable]).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/lib.rs:154:27 [INFO] [stdout] | [INFO] [stdout] 154 | fn left_space(&self) -> uint { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/lib.rs:158:40 [INFO] [stdout] | [INFO] [stdout] 158 | unsafe fn allocate(&mut self, bytes: uint) -> *mut u8 { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/lib.rs:159:65 [INFO] [stdout] | [INFO] [stdout] 159 | let ptr = self.mem.data().offset(self.allocation_pointer as int); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:37:39 [INFO] [stdout] | [INFO] [stdout] 37 | for instruction in instructions.iter() { [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:37:39 [INFO] [stdout] | [INFO] [stdout] 37 | for instruction in instructions.iter() { [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:44:54 [INFO] [stdout] | [INFO] [stdout] 44 | bytes.push_str(format!("{:02x} ", *byte).as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:44:54 [INFO] [stdout] | [INFO] [stdout] 44 | bytes.push_str(format!("{:02x} ", *byte).as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:46:73 [INFO] [stdout] | [INFO] [stdout] 46 | string.push_str(format!("\t{:016x}:\t{:24s}", address, bytes).as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:46:73 [INFO] [stdout] | [INFO] [stdout] 46 | string.push_str(format!("\t{:016x}:\t{:24s}", address, bytes).as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:48:52 [INFO] [stdout] | [INFO] [stdout] 48 | string.push_str(format!("{}", op_code).as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:61:25 [INFO] [stdout] | [INFO] [stdout] 61 | for insn in block.iter() { [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:48:52 [INFO] [stdout] | [INFO] [stdout] 48 | string.push_str(format!("{}", op_code).as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:61:25 [INFO] [stdout] | [INFO] [stdout] 61 | for insn in block.iter() { [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `Vec` is not an iterator [INFO] [stdout] --> src/lib.rs:107:26 [INFO] [stdout] | [INFO] [stdout] 107 | if self.memory_pages.last().unwrap().left_space() < bytes { [INFO] [stdout] | ^^^^ `Vec` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Vec: Iterator` [INFO] [stdout] which is required by `&mut Vec: Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for struct `Vec`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 108 | self.memory_pages.push(MemoryRegion::new(PAGE_SIZE)); [INFO] [stdout] | ^^^^ method cannot be called on `Vec` due to unsatisfied trait bounds [INFO] [stdout] ... [INFO] [stdout] 140 | struct MemoryRegion { [INFO] [stdout] | ------------------- doesn't satisfy `MemoryRegion: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `MemoryRegion: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `Vec` is not an iterator [INFO] [stdout] --> src/lib.rs:107:26 [INFO] [stdout] | [INFO] [stdout] 107 | if self.memory_pages.last().unwrap().left_space() < bytes { [INFO] [stdout] | ^^^^ `Vec` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Vec: Iterator` [INFO] [stdout] which is required by `&mut Vec: Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `last_mut` found for struct `Vec` in the current scope [INFO] [stdout] --> src/lib.rs:110:23 [INFO] [stdout] | [INFO] [stdout] 110 | self.memory_pages.last_mut().unwrap().allocate(bytes) [INFO] [stdout] | ^^^^^^^^ method not found in `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for struct `Vec`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 108 | self.memory_pages.push(MemoryRegion::new(PAGE_SIZE)); [INFO] [stdout] | ^^^^ method cannot be called on `Vec` due to unsatisfied trait bounds [INFO] [stdout] ... [INFO] [stdout] 140 | struct MemoryRegion { [INFO] [stdout] | ------------------- doesn't satisfy `MemoryRegion: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `MemoryRegion: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 34 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `last_mut` found for struct `Vec` in the current scope [INFO] [stdout] --> src/lib.rs:110:23 [INFO] [stdout] | [INFO] [stdout] 110 | self.memory_pages.last_mut().unwrap().allocate(bytes) [INFO] [stdout] | ^^^^^^^^ method not found in `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 34 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `glue` (lib test) due to 35 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `glue` (lib) due to 35 previous errors [INFO] running `Command { std: "docker" "inspect" "aa602887da671044b629d13c5a4073ee0996de94849c9bfe510aa97d21178f99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa602887da671044b629d13c5a4073ee0996de94849c9bfe510aa97d21178f99", kill_on_drop: false }` [INFO] [stdout] aa602887da671044b629d13c5a4073ee0996de94849c9bfe510aa97d21178f99