[INFO] updating cached repository https://github.com/LPGhatguy/rust-c-compiler [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/big/crater/work/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 6f5e0790808999f2178dcf3282c777fd10b4de8e [INFO] testing LPGhatguy/rust-c-compiler against 1.38.0 for beta-1.39-1 [INFO] running `"git" "clone" "work/cache/git-repos/https%3A%2F%2Fgithub.com%2FLPGhatguy%2Frust-c-compiler" "work/builds/worker-0/source"` [INFO] [stderr] Cloning into 'work/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LPGhatguy/rust-c-compiler on toolchain 1.38.0 [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+1.38.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/LPGhatguy/rust-c-compiler [INFO] finished tweaking git repo https://github.com/LPGhatguy/rust-c-compiler [INFO] tweaked toml for git repo https://github.com/LPGhatguy/rust-c-compiler written to work/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/LPGhatguy/rust-c-compiler already has a lockfile, it will not be regenerated [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+1.38.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/big/crater/work/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/big/crater/work/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/big/crater/work/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/big/crater/work/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.38.0" "build" "--frozen"` [INFO] [stdout] b321de72a9702c79150bbd91a8ba45d09d6247b79c8a16b9b28fdbc53e7dd61b [INFO] running `"docker" "start" "-a" "b321de72a9702c79150bbd91a8ba45d09d6247b79c8a16b9b28fdbc53e7dd61b"` [INFO] [stderr] Compiling libc v0.2.34 [INFO] [stderr] Compiling memchr v2.0.1 [INFO] [stderr] Compiling aho-corasick v0.6.4 [INFO] [stderr] Compiling regex v0.2.3 [INFO] [stderr] Compiling rcc v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/lexer.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref PATTERN_WHITESPACE: Regex = Regex::new(r"^\s+").unwrap(); [INFO] [stderr] 21 | | static ref PATTERN_KEYWORD: Regex = Regex::new(r"^(int|return)").unwrap(); [INFO] [stderr] 22 | | static ref PATTERN_IDENTIFIER: Regex = Regex::new(r"^[a-zA-Z]\w*").unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 30 | | static ref PATTERN_SEMICOLON: Regex = Regex::new(r"^;").unwrap(); [INFO] [stderr] 31 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/lexer.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref PATTERN_WHITESPACE: Regex = Regex::new(r"^\s+").unwrap(); [INFO] [stderr] 21 | | static ref PATTERN_KEYWORD: Regex = Regex::new(r"^(int|return)").unwrap(); [INFO] [stderr] 22 | | static ref PATTERN_IDENTIFIER: Regex = Regex::new(r"^[a-zA-Z]\w*").unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 30 | | static ref PATTERN_SEMICOLON: Regex = Regex::new(r"^;").unwrap(); [INFO] [stderr] 31 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/lexer.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref PATTERN_WHITESPACE: Regex = Regex::new(r"^\s+").unwrap(); [INFO] [stderr] 21 | | static ref PATTERN_KEYWORD: Regex = Regex::new(r"^(int|return)").unwrap(); [INFO] [stderr] 22 | | static ref PATTERN_IDENTIFIER: Regex = Regex::new(r"^[a-zA-Z]\w*").unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 30 | | static ref PATTERN_SEMICOLON: Regex = Regex::new(r"^;").unwrap(); [INFO] [stderr] 31 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/lexer.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref PATTERN_WHITESPACE: Regex = Regex::new(r"^\s+").unwrap(); [INFO] [stderr] 21 | | static ref PATTERN_KEYWORD: Regex = Regex::new(r"^(int|return)").unwrap(); [INFO] [stderr] 22 | | static ref PATTERN_IDENTIFIER: Regex = Regex::new(r"^[a-zA-Z]\w*").unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 30 | | static ref PATTERN_SEMICOLON: Regex = Regex::new(r"^;").unwrap(); [INFO] [stderr] 31 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/lexer.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref PATTERN_WHITESPACE: Regex = Regex::new(r"^\s+").unwrap(); [INFO] [stderr] 21 | | static ref PATTERN_KEYWORD: Regex = Regex::new(r"^(int|return)").unwrap(); [INFO] [stderr] 22 | | static ref PATTERN_IDENTIFIER: Regex = Regex::new(r"^[a-zA-Z]\w*").unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 30 | | static ref PATTERN_SEMICOLON: Regex = Regex::new(r"^;").unwrap(); [INFO] [stderr] 31 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/lexer.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref PATTERN_WHITESPACE: Regex = Regex::new(r"^\s+").unwrap(); [INFO] [stderr] 21 | | static ref PATTERN_KEYWORD: Regex = Regex::new(r"^(int|return)").unwrap(); [INFO] [stderr] 22 | | static ref PATTERN_IDENTIFIER: Regex = Regex::new(r"^[a-zA-Z]\w*").unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 30 | | static ref PATTERN_SEMICOLON: Regex = Regex::new(r"^;").unwrap(); [INFO] [stderr] 31 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/lexer.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref PATTERN_WHITESPACE: Regex = Regex::new(r"^\s+").unwrap(); [INFO] [stderr] 21 | | static ref PATTERN_KEYWORD: Regex = Regex::new(r"^(int|return)").unwrap(); [INFO] [stderr] 22 | | static ref PATTERN_IDENTIFIER: Regex = Regex::new(r"^[a-zA-Z]\w*").unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 30 | | static ref PATTERN_SEMICOLON: Regex = Regex::new(r"^;").unwrap(); [INFO] [stderr] 31 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/lexer.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref PATTERN_WHITESPACE: Regex = Regex::new(r"^\s+").unwrap(); [INFO] [stderr] 21 | | static ref PATTERN_KEYWORD: Regex = Regex::new(r"^(int|return)").unwrap(); [INFO] [stderr] 22 | | static ref PATTERN_IDENTIFIER: Regex = Regex::new(r"^[a-zA-Z]\w*").unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 30 | | static ref PATTERN_SEMICOLON: Regex = Regex::new(r"^;").unwrap(); [INFO] [stderr] 31 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/lexer.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref PATTERN_WHITESPACE: Regex = Regex::new(r"^\s+").unwrap(); [INFO] [stderr] 21 | | static ref PATTERN_KEYWORD: Regex = Regex::new(r"^(int|return)").unwrap(); [INFO] [stderr] 22 | | static ref PATTERN_IDENTIFIER: Regex = Regex::new(r"^[a-zA-Z]\w*").unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 30 | | static ref PATTERN_SEMICOLON: Regex = Regex::new(r"^;").unwrap(); [INFO] [stderr] 31 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/lexer.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref PATTERN_WHITESPACE: Regex = Regex::new(r"^\s+").unwrap(); [INFO] [stderr] 21 | | static ref PATTERN_KEYWORD: Regex = Regex::new(r"^(int|return)").unwrap(); [INFO] [stderr] 22 | | static ref PATTERN_IDENTIFIER: Regex = Regex::new(r"^[a-zA-Z]\w*").unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 30 | | static ref PATTERN_SEMICOLON: Regex = Regex::new(r"^;").unwrap(); [INFO] [stderr] 31 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 9.83s [INFO] running `"docker" "inspect" "b321de72a9702c79150bbd91a8ba45d09d6247b79c8a16b9b28fdbc53e7dd61b"` [INFO] running `"docker" "rm" "-f" "b321de72a9702c79150bbd91a8ba45d09d6247b79c8a16b9b28fdbc53e7dd61b"` [INFO] [stdout] b321de72a9702c79150bbd91a8ba45d09d6247b79c8a16b9b28fdbc53e7dd61b [INFO] running `"docker" "create" "-v" "/big/crater/work/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/big/crater/work/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/big/crater/work/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/big/crater/work/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.38.0" "test" "--frozen" "--no-run"` [INFO] [stdout] 5a78e90da70a0bec35a0003539c4820b5566eb9ee96ce83cb76fada4fa0f2b0a [INFO] running `"docker" "start" "-a" "5a78e90da70a0bec35a0003539c4820b5566eb9ee96ce83cb76fada4fa0f2b0a"` [INFO] [stderr] Compiling rcc v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/lexer.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref PATTERN_WHITESPACE: Regex = Regex::new(r"^\s+").unwrap(); [INFO] [stderr] 21 | | static ref PATTERN_KEYWORD: Regex = Regex::new(r"^(int|return)").unwrap(); [INFO] [stderr] 22 | | static ref PATTERN_IDENTIFIER: Regex = Regex::new(r"^[a-zA-Z]\w*").unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 30 | | static ref PATTERN_SEMICOLON: Regex = Regex::new(r"^;").unwrap(); [INFO] [stderr] 31 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/lexer.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref PATTERN_WHITESPACE: Regex = Regex::new(r"^\s+").unwrap(); [INFO] [stderr] 21 | | static ref PATTERN_KEYWORD: Regex = Regex::new(r"^(int|return)").unwrap(); [INFO] [stderr] 22 | | static ref PATTERN_IDENTIFIER: Regex = Regex::new(r"^[a-zA-Z]\w*").unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 30 | | static ref PATTERN_SEMICOLON: Regex = Regex::new(r"^;").unwrap(); [INFO] [stderr] 31 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/lexer.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref PATTERN_WHITESPACE: Regex = Regex::new(r"^\s+").unwrap(); [INFO] [stderr] 21 | | static ref PATTERN_KEYWORD: Regex = Regex::new(r"^(int|return)").unwrap(); [INFO] [stderr] 22 | | static ref PATTERN_IDENTIFIER: Regex = Regex::new(r"^[a-zA-Z]\w*").unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 30 | | static ref PATTERN_SEMICOLON: Regex = Regex::new(r"^;").unwrap(); [INFO] [stderr] 31 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/lexer.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref PATTERN_WHITESPACE: Regex = Regex::new(r"^\s+").unwrap(); [INFO] [stderr] 21 | | static ref PATTERN_KEYWORD: Regex = Regex::new(r"^(int|return)").unwrap(); [INFO] [stderr] 22 | | static ref PATTERN_IDENTIFIER: Regex = Regex::new(r"^[a-zA-Z]\w*").unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 30 | | static ref PATTERN_SEMICOLON: Regex = Regex::new(r"^;").unwrap(); [INFO] [stderr] 31 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/lexer.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref PATTERN_WHITESPACE: Regex = Regex::new(r"^\s+").unwrap(); [INFO] [stderr] 21 | | static ref PATTERN_KEYWORD: Regex = Regex::new(r"^(int|return)").unwrap(); [INFO] [stderr] 22 | | static ref PATTERN_IDENTIFIER: Regex = Regex::new(r"^[a-zA-Z]\w*").unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 30 | | static ref PATTERN_SEMICOLON: Regex = Regex::new(r"^;").unwrap(); [INFO] [stderr] 31 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/lexer.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref PATTERN_WHITESPACE: Regex = Regex::new(r"^\s+").unwrap(); [INFO] [stderr] 21 | | static ref PATTERN_KEYWORD: Regex = Regex::new(r"^(int|return)").unwrap(); [INFO] [stderr] 22 | | static ref PATTERN_IDENTIFIER: Regex = Regex::new(r"^[a-zA-Z]\w*").unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 30 | | static ref PATTERN_SEMICOLON: Regex = Regex::new(r"^;").unwrap(); [INFO] [stderr] 31 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/lexer.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref PATTERN_WHITESPACE: Regex = Regex::new(r"^\s+").unwrap(); [INFO] [stderr] 21 | | static ref PATTERN_KEYWORD: Regex = Regex::new(r"^(int|return)").unwrap(); [INFO] [stderr] 22 | | static ref PATTERN_IDENTIFIER: Regex = Regex::new(r"^[a-zA-Z]\w*").unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 30 | | static ref PATTERN_SEMICOLON: Regex = Regex::new(r"^;").unwrap(); [INFO] [stderr] 31 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/lexer.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref PATTERN_WHITESPACE: Regex = Regex::new(r"^\s+").unwrap(); [INFO] [stderr] 21 | | static ref PATTERN_KEYWORD: Regex = Regex::new(r"^(int|return)").unwrap(); [INFO] [stderr] 22 | | static ref PATTERN_IDENTIFIER: Regex = Regex::new(r"^[a-zA-Z]\w*").unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 30 | | static ref PATTERN_SEMICOLON: Regex = Regex::new(r"^;").unwrap(); [INFO] [stderr] 31 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/lexer.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref PATTERN_WHITESPACE: Regex = Regex::new(r"^\s+").unwrap(); [INFO] [stderr] 21 | | static ref PATTERN_KEYWORD: Regex = Regex::new(r"^(int|return)").unwrap(); [INFO] [stderr] 22 | | static ref PATTERN_IDENTIFIER: Regex = Regex::new(r"^[a-zA-Z]\w*").unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 30 | | static ref PATTERN_SEMICOLON: Regex = Regex::new(r"^;").unwrap(); [INFO] [stderr] 31 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::sync::ONCE_INIT': the `new` function is now preferred [INFO] [stderr] --> src/lexer.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / lazy_static! { [INFO] [stderr] 20 | | static ref PATTERN_WHITESPACE: Regex = Regex::new(r"^\s+").unwrap(); [INFO] [stderr] 21 | | static ref PATTERN_KEYWORD: Regex = Regex::new(r"^(int|return)").unwrap(); [INFO] [stderr] 22 | | static ref PATTERN_IDENTIFIER: Regex = Regex::new(r"^[a-zA-Z]\w*").unwrap(); [INFO] [stderr] ... | [INFO] [stderr] 30 | | static ref PATTERN_SEMICOLON: Regex = Regex::new(r"^;").unwrap(); [INFO] [stderr] 31 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/lexer.rs:52:45 [INFO] [stderr] | [INFO] [stderr] 52 | let (rest, token) = try_advance(source, pattern, |s| Token::Keyword(s)).expect("Unable to advance pattern!"); [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | expected reference, found struct `regex::Regex` [INFO] [stderr] | help: consider borrowing here: `&pattern` [INFO] [stderr] | [INFO] [stderr] = note: expected type `®ex::Regex` [INFO] [stderr] found type `regex::Regex` [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0308`. [INFO] [stderr] error: Could not compile `rcc`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "5a78e90da70a0bec35a0003539c4820b5566eb9ee96ce83cb76fada4fa0f2b0a"` [INFO] running `"docker" "rm" "-f" "5a78e90da70a0bec35a0003539c4820b5566eb9ee96ce83cb76fada4fa0f2b0a"` [INFO] [stdout] 5a78e90da70a0bec35a0003539c4820b5566eb9ee96ce83cb76fada4fa0f2b0a