[INFO] cloning repository https://github.com/pinyin-tools/librustpinyin [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pinyin-tools/librustpinyin" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpinyin-tools%2Flibrustpinyin", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpinyin-tools%2Flibrustpinyin'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 71cb49654ceee03b759e6a087955958e70aa477a [INFO] testing pinyin-tools/librustpinyin against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpinyin-tools%2Flibrustpinyin" "/workspace/builds/worker-24/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-24/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pinyin-tools/librustpinyin on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/pinyin-tools/librustpinyin [INFO] finished tweaking git repo https://github.com/pinyin-tools/librustpinyin [INFO] tweaked toml for git repo https://github.com/pinyin-tools/librustpinyin written to /workspace/builds/worker-24/source/Cargo.toml [INFO] crate git repo https://github.com/pinyin-tools/librustpinyin already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9ba961578487ae791ed211b744142d4a0c636fb364e7bb5817c7febe59435b20 [INFO] running `Command { std: "docker" "start" "-a" "9ba961578487ae791ed211b744142d4a0c636fb364e7bb5817c7febe59435b20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9ba961578487ae791ed211b744142d4a0c636fb364e7bb5817c7febe59435b20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ba961578487ae791ed211b744142d4a0c636fb364e7bb5817c7febe59435b20", kill_on_drop: false }` [INFO] [stdout] 9ba961578487ae791ed211b744142d4a0c636fb364e7bb5817c7febe59435b20 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-24/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a7e8ae093f862bcda1551f12aa18d2a76bb2142036cf582b3957c42c883d4f3e [INFO] running `Command { std: "docker" "start" "-a" "a7e8ae093f862bcda1551f12aa18d2a76bb2142036cf582b3957c42c883d4f3e", kill_on_drop: false }` [INFO] [stderr] Compiling librustpiyin v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/pinyin/db.rs:43:66 [INFO] [stdout] | [INFO] [stdout] 43 | let frequency = from_str(iter.next().unwrap()).unwrap_or(0u); [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `native` [INFO] [stdout] --> src/c_binding.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate native; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `native` [INFO] [stdout] --> src/pinyin/myfile.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate native; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `rustrt` [INFO] [stdout] --> src/pinyin/myfile.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate rustrt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `serialize` [INFO] [stdout] --> src/pinyin/db.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate serialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::c_str` [INFO] [stdout] --> src/c_binding.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | use std::c_str::CString; [INFO] [stdout] | ^^^^^ could not find `c_str` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::string::raw` [INFO] [stdout] --> src/c_binding.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | use std::string::raw::from_buf; [INFO] [stdout] | ^^^ could not find `raw` in `string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::IoResult` [INFO] [stdout] --> src/pinyin/myfile.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::IoResult; [INFO] [stdout] | ^^^^^^^^^-------- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `Result` [INFO] [stdout] | no `IoResult` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::standard_error` [INFO] [stdout] --> src/pinyin/myfile.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::io::standard_error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `standard_error` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stdout] --> src/pinyin/db.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::BufferedReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::BufferedWriter` [INFO] [stdout] --> src/pinyin/db.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::BufferedWriter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedWriter` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::collections::hashmap` [INFO] [stdout] --> src/pinyin/db.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::{HashMap, hashmap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | no `hashmap` in `collections` [INFO] [stdout] | help: a similar name exists in the module: `HashMap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::collections::TreeMap` [INFO] [stdout] --> src/pinyin/db.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::TreeMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^------- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `BTreeMap` [INFO] [stdout] | no `TreeMap` in `collections` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `fail` in this scope [INFO] [stdout] --> src/pinyin/db.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | Err(e) => fail!(e) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `fail` in this scope [INFO] [stdout] --> src/pinyin/db.rs:76:31 [INFO] [stdout] | [INFO] [stdout] 76 | Err(e) => fail!(e) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `fail` in this scope [INFO] [stdout] --> src/pinyin/db.rs:79:23 [INFO] [stdout] | [INFO] [stdout] 79 | Err(e) => fail!(e) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `fail` in this scope [INFO] [stdout] --> src/pinyin/myfile.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | fail!(e); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `fail` in this scope [INFO] [stdout] --> src/pinyin/myfile.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | fail!(e); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/pinyin/dbentry.rs:1:3 [INFO] [stdout] | [INFO] [stdout] 1 | #[deriving(Clone, Eq, PartialEq, PartialOrd)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rtio` [INFO] [stdout] --> src/pinyin/myfile.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | fd: Box, [INFO] [stdout] | ^^^^ use of undeclared crate or module `rtio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rtio` [INFO] [stdout] --> src/pinyin/myfile.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | rtio::Open, [INFO] [stdout] | ^^^^ use of undeclared crate or module `rtio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rtio` [INFO] [stdout] --> src/pinyin/myfile.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | rtio::Read [INFO] [stdout] | ^^^^ use of undeclared crate or module `rtio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rtio` [INFO] [stdout] --> src/pinyin/myfile.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | rtio::Open, [INFO] [stdout] | ^^^^ use of undeclared crate or module `rtio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rtio` [INFO] [stdout] --> src/pinyin/myfile.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | rtio::Write [INFO] [stdout] | ^^^^ use of undeclared crate or module `rtio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `json` [INFO] [stdout] --> src/pinyin/db.rs:74:23 [INFO] [stdout] | [INFO] [stdout] 74 | match json::decode(x.clone().as_slice()) { [INFO] [stdout] | ^^^^ use of undeclared crate or module `json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/c_binding.rs:130:38 [INFO] [stdout] | [INFO] [stdout] 130 | unsafe { (*suggestions)[index as uint].to_c_str().unwrap() } [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/pinyin/myfile.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | last_nread: 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[E0405]: cannot find trait `Writer` in this scope [INFO] [stdout] --> src/pinyin/myfile.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | impl Writer for MyFile { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EndOfFile` in module `io` [INFO] [stdout] --> src/pinyin/myfile.rs:24:47 [INFO] [stdout] | [INFO] [stdout] 24 | Err(_) => Err(standard_error(io::EndOfFile)) [INFO] [stdout] | ^^^^^^^^^ not found in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Reader` in this scope [INFO] [stdout] --> src/pinyin/myfile.rs:29:6 [INFO] [stdout] | [INFO] [stdout] 29 | impl Reader for MyFile { [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/pinyin/myfile.rs:30:52 [INFO] [stdout] | [INFO] [stdout] 29 | impl Reader for MyFile { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 30 | fn read(&mut self, buf: &mut [u8]) -> IoResult { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EndOfFile` in module `io` [INFO] [stdout] --> src/pinyin/myfile.rs:37:49 [INFO] [stdout] | [INFO] [stdout] 37 | 0 => Err(standard_error(io::EndOfFile)), [INFO] [stdout] | ^^^^^^^^^ not found in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/pinyin/myfile.rs:38:37 [INFO] [stdout] | [INFO] [stdout] 38 | _ => Ok(read as uint) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EndOfFile` in module `io` [INFO] [stdout] --> src/pinyin/myfile.rs:41:46 [INFO] [stdout] | [INFO] [stdout] 41 | Err(_) => Err(standard_error(io::EndOfFile)) [INFO] [stdout] | ^^^^^^^^^ not found in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> src/pinyin/myfile.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn open_read_only(path: &Path) -> MyFile { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `open` in this scope [INFO] [stdout] --> src/pinyin/myfile.rs:49:18 [INFO] [stdout] | [INFO] [stdout] 49 | let result = open( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> src/pinyin/myfile.rs:68:31 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn open_write_only(path: &Path) -> MyFile { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `open` in this scope [INFO] [stdout] --> src/pinyin/myfile.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 70 | let result = open( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/pinyin/db.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | let path = Path::new(fname); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/pinyin/db.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | let frequency = from_str(iter.next().unwrap()).unwrap_or(0u); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/pinyin/db.rs:68:16 [INFO] [stdout] | [INFO] [stdout] 68 | let path = Path::new(fname); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/pinyin/db.rs:178:16 [INFO] [stdout] | [INFO] [stdout] 178 | let path = Path::new(fname); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/pinyin/parser.rs:62:32 [INFO] [stdout] | [INFO] [stdout] 62 | static MAX_FINAL_SIZE: uint = 4; [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/pinyin/dbentry.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | pub frequency: 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/pinyin/dbentry.rs:8:43 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn new(sinogram:String, frequency:uint) -> DbEntry { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ordering` in this scope [INFO] [stdout] --> src/pinyin/dbentry.rs:17:38 [INFO] [stdout] | [INFO] [stdout] 17 | fn cmp(&self,other: &DbEntry) -> Ordering { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `sip` is private [INFO] [stdout] --> src/pinyin/db.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | use std::hash::sip::SipHasher; [INFO] [stdout] | ^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `sip` is defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0554]: `#![feature]` may not be used on the beta release channel [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(default_type_params)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the attribute [INFO] [stdout] | [INFO] [stdout] = help: the feature `default_type_params` has been stable since 1.0.0 and no longer requires an attribute to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: box expression syntax is experimental; you can call `Box::new` instead [INFO] [stdout] --> src/c_binding.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | box create_db_from_csv(string.as_slice()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #49733 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: box expression syntax is experimental; you can call `Box::new` instead [INFO] [stdout] --> src/c_binding.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | / box pinyin2suggestion( [INFO] [stdout] 81 | | db, [INFO] [stdout] 82 | | pinyin.as_slice() [INFO] [stdout] 83 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #49733 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: box expression syntax is experimental; you can call `Box::new` instead [INFO] [stdout] --> src/c_binding.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | box string_to_tokens_as_strings(pinyin.as_slice()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #49733 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: box expression syntax is experimental; you can call `Box::new` instead [INFO] [stdout] --> src/pinyin/myfile.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 58 | fd: box filedesc, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #49733 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: box expression syntax is experimental; you can call `Box::new` instead [INFO] [stdout] --> src/pinyin/myfile.rs:79:21 [INFO] [stdout] | [INFO] [stdout] 79 | fd: box filedesc, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #49733 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/c_binding.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate libc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/c_binding.rs:18:36 [INFO] [stdout] | [INFO] [stdout] 18 | pub extern fn db_new(fname: *const libc::c_char) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/c_binding.rs:32:52 [INFO] [stdout] | [INFO] [stdout] 32 | pub extern fn db_dump(db: &PinyinDB, fname: *const libc::c_char) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/c_binding.rs:53:24 [INFO] [stdout] | [INFO] [stdout] 53 | pinyin_raw: *const libc::c_char, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/c_binding.rs:54:27 [INFO] [stdout] | [INFO] [stdout] 54 | sinograms_raw: *const libc::c_char [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/c_binding.rs:73:31 [INFO] [stdout] | [INFO] [stdout] 73 | pinyin_raw_string: *const libc::c_char [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/c_binding.rs:91:31 [INFO] [stdout] | [INFO] [stdout] 91 | pinyin_raw_string: *const libc::c_char [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/c_binding.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | ) -> *const libc::c_char { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `default_type_params` has been stable since 1.0.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(default_type_params)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/pinyin/myfile.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | fd: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 - fd: Box, [INFO] [stdout] 16 + fd: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 61 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0432, E0433, E0463, E0554, E0603, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stderr] error: could not compile `librustpiyin` due to 62 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a7e8ae093f862bcda1551f12aa18d2a76bb2142036cf582b3957c42c883d4f3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7e8ae093f862bcda1551f12aa18d2a76bb2142036cf582b3957c42c883d4f3e", kill_on_drop: false }` [INFO] [stdout] a7e8ae093f862bcda1551f12aa18d2a76bb2142036cf582b3957c42c883d4f3e