-
Notifications
You must be signed in to change notification settings - Fork 27
bitops.h:209:9: error: 'asm goto' constructs are not supported yet #2
Comments
I just noticed that I needed a more recent version of clang. clang-10. I installed that, but still fails with the same build error
added the following to /etc/apt/sources.list
Even after all that, it still errors out:
|
Hm, this looks like the same as #1. Can you see if running |
On 8/19/19 9:57 AM, Geoffrey Thomas wrote:
Hm, this looks like the same as #1. Can you see if running `export CLANG=clang-10` makes it pick up the right version of clang?
Same error, but I am providing you with the verbose build.
linux-kernel-module 0.1.0] Target=x86_64-linux-kernel-module
[linux-kernel-module 0.1.0] get output:-nostdinc -isystem
/usr/lib/llvm-10/lib/clang/10.0.0/include
-I/usr/src/linux-headers-5.2.0-2-common/arch/x86/include
-I/usr/src/linux-headers-5.2.0-2-amd64/./arch/x86/include/generated
-I/usr/src/linux-headers-5.2.0-2-common/include
-I/usr/src/linux-headers-5.2.0-2-amd64/./include
-I/usr/src/linux-headers-5.2.0-2-common/arch/x86/include/uapi
-I/usr/src/linux-headers-5.2.0-2-amd64/./arch/x86/include/generated/uapi
-I/usr/src/linux-headers-5.2.0-2-common/include/uapi
-I/usr/src/linux-headers-5.2.0-2-amd64/./include/generated/uapi -include
/usr/src/linux-headers-5.2.0-2-common/include/linux/kconfig.h -DMODULE
[linux-kernel-module 0.1.0]
[linux-kernel-module 0.1.0] cargo:rerun-if-changed=src/bindgen_helper.h
[linux-kernel-module 0.1.0]
/usr/src/linux-headers-5.2.0-2-common/arch/x86/include/asm/bitops.h:128:2:
warning: implicit declaration of function 'barrier' is invalid in C99
[-Wimplicit-function-declaration]
[linux-kernel-module 0.1.0]
/usr/src/linux-headers-5.2.0-2-common/arch/x86/include/asm/bitops.h:209:9:
error: 'asm goto' constructs are not supported yet
loongson@righteous:~/redoxstuff$ git clone https://github.com/lizhuohua/linux-kernel-module-rust.git
Cloning into 'linux-kernel-module-rust'...
remote: Enumerating objects: 157, done.
remote: Counting objects: 100% (157/157), done.
remote: Compressing objects: 100% (93/93), done.
remote: Total 293 (delta 84), reused 114 (delta 51), pack-reused 136
Receiving objects: 100% (293/293), 62.44 KiB | 1.08 MiB/s, done.
Resolving deltas: 100% (146/146), done.
loongson@righteous:~/redoxstuff$ cd linux-kernel-module-rust/hello_world/
loongson@righteous:~/redoxstuff/linux-kernel-module-rust/hello_world$ export CLANG=clang-10
loongson@righteous:~/redoxstuff/linux-kernel-module-rust/hello_world$ echo $CLANG
clang-10
loongson@righteous:~/redoxstuff/linux-kernel-module-rust/hello_world$ ls
Cargo.toml Makefile src
loongson@righteous:~/redoxstuff/linux-kernel-module-rust/hello_world$ ls ..
armv7l-linux-kernel-module.json Cargo.toml kernel-cflags-finder README.md smsc9512 sync_example yes_chardev
build.rs hello_world LICENSE simple_sysctl src x86_64-linux-kernel-module.json
loongson@righteous:~/redoxstuff/linux-kernel-module-rust/hello_world$ RUST_TARGET_PATH=$(pwd)/.. cargo xbuild --target x86_64-linux-kernel-module --verbose --verbose
+ "rustc" "--print" "sysroot"
+ "rustc" "--print" "target-list"
+ "/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo" "rustc" "-p" "alloc" "--release" "--manifest-path" "/tmp/xargo.ff1ambcgdDfH/Cargo.toml" "--target" "x86_64-linux-kernel-module" "-v" "--" "-Z" "force-unstable-if-unmarked"
Updating crates.io index
Compiling core v0.0.0 (/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore)
Compiling compiler_builtins v0.1.19
Running `rustc --edition=2018 --crate-name core /home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C panic=abort -C metadata=9dde8b8fbebcdb7d -C extra-filename=-9dde8b8fbebcdb7d --out-dir /tmp/xargo.ff1ambcgdDfH/target/x86_64-linux-kernel-module/release/deps --target x86_64-linux-kernel-module -L dependency=/tmp/xargo.ff1ambcgdDfH/target/x86_64-linux-kernel-module/release/deps -L dependency=/tmp/xargo.ff1ambcgdDfH/target/release/deps`
Running `rustc --crate-name build_script_build /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/compiler_builtins-0.1.19/build.rs --color never --crate-type bin --emit=dep-info,link -C opt-level=3 --cfg 'feature="compiler-builtins"' --cfg 'feature="core"' --cfg 'feature="default"' --cfg 'feature="mem"' -C metadata=21c845784e5aebcc -C extra-filename=-21c845784e5aebcc --out-dir /tmp/xargo.ff1ambcgdDfH/target/release/build/compiler_builtins-21c845784e5aebcc -L dependency=/tmp/xargo.ff1ambcgdDfH/target/release/deps --cap-lints allow`
Running `/tmp/xargo.ff1ambcgdDfH/target/release/build/compiler_builtins-21c845784e5aebcc/build-script-build`
Compiling rustc-std-workspace-core v1.0.0 (/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/tools/rustc-std-workspace-core)
Running `rustc --edition=2018 --crate-name rustc_std_workspace_core /home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/tools/rustc-std-workspace-core/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C panic=abort -C metadata=0310430eba519d96 -C extra-filename=-0310430eba519d96 --out-dir /tmp/xargo.ff1ambcgdDfH/target/x86_64-linux-kernel-module/release/deps --target x86_64-linux-kernel-module -L dependency=/tmp/xargo.ff1ambcgdDfH/target/x86_64-linux-kernel-module/release/deps -L dependency=/tmp/xargo.ff1ambcgdDfH/target/release/deps --extern core=/tmp/xargo.ff1ambcgdDfH/target/x86_64-linux-kernel-module/release/deps/libcore-9dde8b8fbebcdb7d.rmeta`
Running `rustc --crate-name compiler_builtins /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/compiler_builtins-0.1.19/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C panic=abort --cfg 'feature="compiler-builtins"' --cfg 'feature="core"' --cfg 'feature="default"' --cfg 'feature="mem"' -C metadata=1f0cd55aa770b17b -C extra-filename=-1f0cd55aa770b17b --out-dir /tmp/xargo.ff1ambcgdDfH/target/x86_64-linux-kernel-module/release/deps --target x86_64-linux-kernel-module -L dependency=/tmp/xargo.ff1ambcgdDfH/target/x86_64-linux-kernel-module/release/deps -L dependency=/tmp/xargo.ff1ambcgdDfH/target/release/deps --extern core=/tmp/xargo.ff1ambcgdDfH/target/x86_64-linux-kernel-module/release/deps/librustc_std_workspace_core-0310430eba519d96.rmeta --cap-lints allow`
Compiling alloc v0.0.0 (/tmp/xargo.ff1ambcgdDfH)
Running `rustc --edition=2018 --crate-name alloc /home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/liballoc/lib.rs --color never --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C panic=abort -Z force-unstable-if-unmarked -C metadata=ae0515022ff738d2 -C extra-filename=-ae0515022ff738d2 --out-dir /tmp/xargo.ff1ambcgdDfH/target/x86_64-linux-kernel-module/release/deps --target x86_64-linux-kernel-module -L dependency=/tmp/xargo.ff1ambcgdDfH/target/x86_64-linux-kernel-module/release/deps -L dependency=/tmp/xargo.ff1ambcgdDfH/target/release/deps --extern compiler_builtins=/tmp/xargo.ff1ambcgdDfH/target/x86_64-linux-kernel-module/release/deps/libcompiler_builtins-1f0cd55aa770b17b.rmeta --extern core=/tmp/xargo.ff1ambcgdDfH/target/x86_64-linux-kernel-module/release/deps/libcore-9dde8b8fbebcdb7d.rmeta`
Finished release [optimized] target(s) in 21.03s
+ RUSTFLAGS="--sysroot /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/sysroot"
+ RUSTDOCFLAGS="--sysroot /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/sysroot"
+ "/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo" "build" "--target" "x86_64-linux-kernel-module" "--verbose" "--verbose"
Updating crates.io index
Compiling memchr v2.2.1
Compiling version_check v0.1.5
Compiling libc v0.2.63
Compiling cc v1.0.40
Compiling log v0.4.8
Compiling bitflags v1.1.0
Compiling glob v0.2.11
Compiling lazy_static v1.3.0
Running `CARGO_PKG_HOMEPAGE='https://github.com/BurntSushi/rust-memchr' CARGO_PKG_REPOSITORY='https://github.com/BurntSushi/rust-memchr' CARGO_PKG_AUTHORS='Andrew Gallant <[email protected]>:bluss' CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_MAJOR=2 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/memchr-2.2.1 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_VERSION=2.2.1 CARGO_PKG_NAME=memchr CARGO_PKG_DESCRIPTION='Safe interface to memchr.' rustc --crate-name build_script_build /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/memchr-2.2.1/build.rs --color never --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="use_std"' -C metadata=40502e56f030c6a9 -C extra-filename=-40502e56f030c6a9 --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/build/memchr-40502e56f030c6a9 -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --cap-lints warn`
Running `CARGO_PKG_HOMEPAGE= CARGO_PKG_REPOSITORY='https://github.com/SergioBenitez/version_check' CARGO_PKG_AUTHORS='Sergio Benitez <[email protected]>' CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/version_check-0.1.5 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=5 CARGO_PKG_VERSION=0.1.5 CARGO_PKG_NAME=version_check CARGO_PKG_DESCRIPTION='Tiny crate to check the version of the installed/running rustc.' rustc --crate-name version_check /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/version_check-0.1.5/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=88efcb0279842c19 -C extra-filename=-88efcb0279842c19 --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --cap-lints warn`
Running `CARGO_PKG_HOMEPAGE='https://github.com/rust-lang/libc' CARGO_PKG_REPOSITORY='https://github.com/rust-lang/libc' CARGO_PKG_AUTHORS='The Rust Project Developers' CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.63 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=63 CARGO_PKG_VERSION=0.2.63 CARGO_PKG_NAME=libc CARGO_PKG_DESCRIPTION='Raw FFI bindings to platform libraries like libc.
' rustc --crate-name build_script_build /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.63/build.rs --color never --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=7c1f24ec9ddbc82c -C extra-filename=-7c1f24ec9ddbc82c --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/build/libc-7c1f24ec9ddbc82c -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --cap-lints warn`
Running `CARGO_PKG_HOMEPAGE='https://github.com/alexcrichton/cc-rs' CARGO_PKG_REPOSITORY='https://github.com/alexcrichton/cc-rs' CARGO_PKG_AUTHORS='Alex Crichton <[email protected]>' CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_MAJOR=1 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.40 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=40 CARGO_PKG_VERSION=1.0.40 CARGO_PKG_NAME=cc CARGO_PKG_DESCRIPTION='A build-time dependency for Cargo build scripts to assist in invoking the native
C compiler to compile native C code into a static archive to be linked into Rust
code.
' rustc --crate-name cc /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.40/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=860d70e513a341b8 -C extra-filename=-860d70e513a341b8 --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --cap-lints warn`
Running `CARGO_PKG_HOMEPAGE= CARGO_PKG_REPOSITORY='https://github.com/rust-lang/log' CARGO_PKG_AUTHORS='The Rust Project Developers' CARGO_PKG_VERSION_MINOR=4 CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/log-0.4.8 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=8 CARGO_PKG_VERSION=0.4.8 CARGO_PKG_NAME=log CARGO_PKG_DESCRIPTION='A lightweight logging facade for Rust
' rustc --crate-name build_script_build /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/log-0.4.8/build.rs --color never --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg 'feature="std"' -C metadata=14973f213e4fe562 -C extra-filename=-14973f213e4fe562 --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/build/log-14973f213e4fe562 -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --cap-lints warn`
Running `CARGO_PKG_HOMEPAGE='https://github.com/bitflags/bitflags' CARGO_PKG_REPOSITORY='https://github.com/bitflags/bitflags' CARGO_PKG_AUTHORS='The Rust Project Developers' CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_MAJOR=1 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/bitflags-1.1.0 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION=1.1.0 CARGO_PKG_NAME=bitflags CARGO_PKG_DESCRIPTION='A macro to generate structures which behave like bitflags.
' rustc --crate-name build_script_build /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/bitflags-1.1.0/build.rs --color never --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' -C metadata=9d414f58dcef9a51 -C extra-filename=-9d414f58dcef9a51 --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/build/bitflags-9d414f58dcef9a51 -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --cap-lints warn`
Running `CARGO_PKG_HOMEPAGE='https://github.com/rust-lang/glob' CARGO_PKG_REPOSITORY='https://github.com/rust-lang/glob' CARGO_PKG_AUTHORS='The Rust Project Developers' CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/glob-0.2.11 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=11 CARGO_PKG_VERSION=0.2.11 CARGO_PKG_NAME=glob CARGO_PKG_DESCRIPTION='Support for matching file paths against Unix shell style patterns.
' rustc --crate-name glob /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/glob-0.2.11/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=d92ce435ba558a7f -C extra-filename=-d92ce435ba558a7f --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --cap-lints warn`
Running `CARGO_PKG_HOMEPAGE= CARGO_PKG_REPOSITORY='https://github.com/rust-lang-nursery/lazy-static.rs' CARGO_PKG_AUTHORS='Marvin Löbel <[email protected]>' CARGO_PKG_VERSION_MINOR=3 CARGO_PKG_VERSION_MAJOR=1 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.3.0 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION=1.3.0 CARGO_PKG_NAME=lazy_static CARGO_PKG_DESCRIPTION='A macro for declaring lazily evaluated statics in Rust.' rustc --crate-name lazy_static /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.3.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=047cf0469e352b1b -C extra-filename=-047cf0469e352b1b --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --cap-lints warn`
warning: use of deprecated item 'lazy::std::sync::ONCE_INIT': the `new` function is now preferred
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.3.0/src/inline_lazy.rs:14:9
|
14 | pub use self::std::sync::ONCE_INIT;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated item 'core::mem::uninitialized': use `mem::MaybeUninit` instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.3.0/src/inline_lazy.rs:64:11
|
64 | match std::mem::uninitialized::<Void>() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/glob-0.2.11/src/lib.rs:134:21
|
134 | let _compiled = try!(Pattern::new(pattern));
| ^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated item 'lazy::std::sync::ONCE_INIT': the `new` function is now preferred
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.3.0/src/inline_lazy.rs:20:50
|
20 | pub const INIT: Self = Lazy(Cell::new(None), ONCE_INIT);
| ^^^^^^^^^ help: replace the use of the deprecated item: `Once::new()`
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/glob-0.2.11/src/lib.rs:198:24
|
198 | let compiled = try!(Pattern::new(component));
| ^^^
warning: trait objects without an explicit `dyn` are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/glob-0.2.11/src/lib.rs:249:32
|
249 | fn cause(&self) -> Option<&Error> {
| ^^^^^ help: use `dyn`: `dyn Error`
|
= note: `#[warn(bare_trait_objects)]` on by default
warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/glob-0.2.11/src/lib.rs:28:5
|
28 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'core::str::<impl str>::trim_right': superseded by `trim_end`
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/version_check-0.1.5/src/lib.rs:92:44
|
92 | let date = components.nth(1).map(|s| s.trim_right().trim_right_matches(")"));
| ^^^^^^^^^^ help: replace the use of the deprecated item: `trim_end`
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated item 'core::str::<impl str>::trim_right_matches': superseded by `trim_end_matches`
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/version_check-0.1.5/src/lib.rs:92:57
|
92 | let date = components.nth(1).map(|s| s.trim_right().trim_right_matches(")"));
| ^^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated item: `trim_end_matches`
warning: the type `lazy::unreachable_unchecked::Void` does not permit being left uninitialized
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.3.0/src/inline_lazy.rs:64:11
|
64 | match std::mem::uninitialized::<Void>() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| this code causes undefined behavior when executed
| help: use `MaybeUninit<T>` instead
|
= note: `#[warn(invalid_value)]` on by default
= note: 0-variant enums have no valid value
Compiling unicode-xid v0.1.0
Running `CARGO_PKG_HOMEPAGE='https://github.com/unicode-rs/unicode-xid' CARGO_PKG_REPOSITORY='https://github.com/unicode-rs/unicode-xid' CARGO_PKG_AUTHORS='erick.tryzelaar <[email protected]>:kwantam <[email protected]>' CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.1.0 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION=0.1.0 CARGO_PKG_NAME=unicode-xid CARGO_PKG_DESCRIPTION='Determine whether characters have the XID_Start
or XID_Continue properties according to
Unicode Standard Annex #31.
' rustc --crate-name unicode_xid /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.1.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 --cfg 'feature="default"' -C metadata=685037260e9a3110 -C extra-filename=-685037260e9a3110 --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --cap-lints warn`
warning: unused import: `std::ascii::AsciiExt`
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/glob-0.2.11/src/lib.rs:28:5
|
28 | use std::ascii::AsciiExt;
| ^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused import: `std::io::prelude`
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/glob-0.2.11/src/lib.rs:32:5
|
32 | use std::io::prelude::*;
| ^^^^^^^^^^^^^^^^
Compiling unicode-width v0.1.6
Running `CARGO_PKG_HOMEPAGE='https://github.com/unicode-rs/unicode-width' CARGO_PKG_REPOSITORY='https://github.com/unicode-rs/unicode-width' CARGO_PKG_AUTHORS='kwantam <[email protected]>' CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-width-0.1.6 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=6 CARGO_PKG_VERSION=0.1.6 CARGO_PKG_NAME=unicode-width CARGO_PKG_DESCRIPTION='Determine displayed width of `char` and `str` types
according to Unicode Standard Annex #11 rules.
' rustc --crate-name unicode_width /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-width-0.1.6/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 --cfg 'feature="default"' -C metadata=b0b7a2175f2bef8e -C extra-filename=-b0b7a2175f2bef8e --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --cap-lints warn`
Compiling regex-syntax v0.6.11
Running `CARGO_PKG_HOMEPAGE='https://github.com/rust-lang/regex' CARGO_PKG_REPOSITORY='https://github.com/rust-lang/regex' CARGO_PKG_AUTHORS='The Rust Project Developers' CARGO_PKG_VERSION_MINOR=6 CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/regex-syntax-0.6.11 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=11 CARGO_PKG_VERSION=0.6.11 CARGO_PKG_NAME=regex-syntax CARGO_PKG_DESCRIPTION='A regular expression parser.' rustc --crate-name regex_syntax /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/regex-syntax-0.6.11/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=ef1e2197c2d0b5f1 -C extra-filename=-ef1e2197c2d0b5f1 --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --cap-lints warn`
Compiling quick-error v1.2.2
Running `CARGO_PKG_HOMEPAGE='http://github.com/tailhook/quick-error' CARGO_PKG_REPOSITORY='http://github.com/tailhook/quick-error' CARGO_PKG_AUTHORS='Paul Colomiets <[email protected]>:Colin Kiegel <[email protected]>' CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_MAJOR=1 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/quick-error-1.2.2 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION=1.2.2 CARGO_PKG_NAME=quick-error CARGO_PKG_DESCRIPTION=' A macro which makes error types pleasant to write.
' rustc --crate-name quick_error /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/quick-error-1.2.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=11ed466181d748f1 -C extra-filename=-11ed466181d748f1 --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --cap-lints warn`
Compiling cfg-if v0.1.9
Running `CARGO_PKG_HOMEPAGE='https://github.com/alexcrichton/cfg-if' CARGO_PKG_REPOSITORY='https://github.com/alexcrichton/cfg-if' CARGO_PKG_AUTHORS='Alex Crichton <[email protected]>' CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.9 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=9 CARGO_PKG_VERSION=0.1.9 CARGO_PKG_NAME=cfg-if CARGO_PKG_DESCRIPTION='A macro to ergonomically define an item depending on a large number of #[cfg]
parameters. Structured like an if-else chain, the first matching branch is the
item that gets emitted.
' rustc --crate-name cfg_if /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.9/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=605ca4389f80ed56 -C extra-filename=-605ca4389f80ed56 --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --cap-lints warn`
Compiling termcolor v1.0.5
Running `CARGO_PKG_HOMEPAGE='https://github.com/BurntSushi/termcolor' CARGO_PKG_REPOSITORY='https://github.com/BurntSushi/termcolor' CARGO_PKG_AUTHORS='Andrew Gallant <[email protected]>' CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_MAJOR=1 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/termcolor-1.0.5 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=5 CARGO_PKG_VERSION=1.0.5 CARGO_PKG_NAME=termcolor CARGO_PKG_DESCRIPTION='A simple cross platform library for writing colored text to a terminal.
' rustc --crate-name termcolor /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/termcolor-1.0.5/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=a1c7ccc3516d8bf6 -C extra-filename=-a1c7ccc3516d8bf6 --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --cap-lints warn`
Compiling bindgen v0.43.2
Running `CARGO_PKG_HOMEPAGE='https://rust-lang-nursery.github.io/rust-bindgen/' CARGO_PKG_REPOSITORY='https://github.com/rust-lang-nursery/rust-bindgen' CARGO_PKG_AUTHORS='Jyun-Yan You <[email protected]>:Emilio Cobos Álvarez <[email protected]>:Nick Fitzgerald <[email protected]>:The Servo project developers' CARGO_PKG_VERSION_MINOR=43 CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.43.2 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION=0.43.2 CARGO_PKG_NAME=bindgen CARGO_PKG_DESCRIPTION='Automatically generates Rust FFI bindings to C and C++ libraries.' rustc --crate-name build_script_build /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.43.2/build.rs --color never --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="env_logger"' --cfg 'feature="log"' --cfg 'feature="logging"' -C metadata=16589f3065c63a89 -C extra-filename=-16589f3065c63a89 --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/build/bindgen-16589f3065c63a89 -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --cap-lints warn`
Compiling vec_map v0.8.1
Running `CARGO_PKG_HOMEPAGE='https://github.com/contain-rs/vec-map' CARGO_PKG_REPOSITORY='https://github.com/contain-rs/vec-map' CARGO_PKG_AUTHORS='Alex Crichton <[email protected]>:Jorge Aparicio <[email protected]>:Alexis Beingessner <[email protected]>:Brian Anderson <>:tbu- <>:Manish Goregaokar <>:Aaron Turon <[email protected]>:Adolfo Ochagavía <>:Niko Matsakis <>:Steven Fackler <>:Chase Southwood <[email protected]>:Eduard Burtescu <>:Florian Wilkens <>:Félix Raimundo <>:Tibor Benke <>:Markus Siemens <[email protected]>:Josh Branchaud <[email protected]>:Huon Wilson <[email protected]>:Corey Farwell <[email protected]>:Aaron Liblong <>:Nick Cameron <[email protected]>:Patrick Walton <[email protected]>:Felix S Klock II <>:Andrew Paseltiner <[email protected]>:Sean McArthur <[email protected]>:Vadim Petrochenkov <>' CARGO_PKG_VERSION_MINOR=8 CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/vec_map-0.8.1 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_VERSION=0.8.1 CARGO_PKG_NAME=vec_map CARGO_PKG_DESCRIPTION='A simple map based on a vector for small integer keys' rustc --crate-name vec_map /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/vec_map-0.8.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=20305578c7cf6e55 -C extra-filename=-20305578c7cf6e55 --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --cap-lints warn`
Compiling strsim v0.8.0
Compiling ansi_term v0.11.0
Running `CARGO_PKG_HOMEPAGE='https://github.com/ogham/rust-ansi-term' CARGO_PKG_REPOSITORY= CARGO_PKG_AUTHORS='[email protected]:Ryan Scheel (Havvy) <[email protected]>:Josh Triplett <[email protected]>' CARGO_PKG_VERSION_MINOR=11 CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/ansi_term-0.11.0 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION=0.11.0 CARGO_PKG_NAME=ansi_term CARGO_PKG_DESCRIPTION='Library for ANSI terminal colours and styles (bold, underline)' rustc --crate-name ansi_term /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/ansi_term-0.11.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=1686b868970f1ee6 -C extra-filename=-1686b868970f1ee6 --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --cap-lints warn`
Running `CARGO_PKG_HOMEPAGE='https://github.com/dguo/strsim-rs' CARGO_PKG_REPOSITORY='https://github.com/dguo/strsim-rs' CARGO_PKG_AUTHORS='Danny Guo <[email protected]>' CARGO_PKG_VERSION_MINOR=8 CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/strsim-0.8.0 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION=0.8.0 CARGO_PKG_NAME=strsim CARGO_PKG_DESCRIPTION='Implementations of string similarity metrics.
Includes Hamming, Levenshtein, OSA, Damerau-Levenshtein, Jaro, and Jaro-Winkler.
' rustc --crate-name strsim /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/strsim-0.8.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=f20f7506452b7890 -C extra-filename=-f20f7506452b7890 --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --cap-lints warn`
Compiling peeking_take_while v0.1.2
warning: trait objects without an explicit `dyn` are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/ansi_term-0.11.0/src/ansi.rs:171:21
|
171 | let f: &mut fmt::Write = f;
| ^^^^^^^^^^ help: use `dyn`: `dyn fmt::Write`
|
= note: `#[warn(bare_trait_objects)]` on by default
warning: trait objects without an explicit `dyn` are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/ansi_term-0.11.0/src/ansi.rs:183:29
|
183 | let f: &mut fmt::Write = f;
| ^^^^^^^^^^ help: use `dyn`: `dyn fmt::Write`
warning: trait objects without an explicit `dyn` are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/ansi_term-0.11.0/src/ansi.rs:187:29
|
187 | let f: &mut fmt::Write = f;
| ^^^^^^^^^^ help: use `dyn`: `dyn fmt::Write`
warning: trait objects without an explicit `dyn` are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/ansi_term-0.11.0/src/ansi.rs:200:21
|
200 | let f: &mut fmt::Write = f;
| ^^^^^^^^^^ help: use `dyn`: `dyn fmt::Write`
Running `CARGO_PKG_HOMEPAGE= CARGO_PKG_REPOSITORY='https://github.com/fitzgen/peeking_take_while' CARGO_PKG_AUTHORS='Nick Fitzgerald <[email protected]>' CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/peeking_take_while-0.1.2 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION=0.1.2 CARGO_PKG_NAME=peeking_take_while CARGO_PKG_DESCRIPTION='Like `Iterator::take_while`, but calls the predicate on a peeked value. This allows you to use `Iterator::by_ref` and `Iterator::take_while` together, and still get the first value for which the `take_while` predicate returned false after dropping the `by_ref`.' rustc --crate-name peeking_take_while /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/peeking_take_while-0.1.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=60f0ac04d0629991 -C extra-filename=-60f0ac04d0629991 --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --cap-lints warn`
warning: trait objects without an explicit `dyn` are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/ansi_term-0.11.0/src/display.rs:184:21
|
184 | let w: &mut fmt::Write = f;
| ^^^^^^^^^^ help: use `dyn`: `dyn fmt::Write`
warning: trait objects without an explicit `dyn` are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/ansi_term-0.11.0/src/display.rs:193:21
|
193 | let w: &mut io::Write = w;
| ^^^^^^^^^ help: use `dyn`: `dyn io::Write`
warning: trait objects without an explicit `dyn` are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/ansi_term-0.11.0/src/display.rs:212:21
|
212 | let f: &mut fmt::Write = f;
| ^^^^^^^^^^ help: use `dyn`: `dyn fmt::Write`
warning: trait objects without an explicit `dyn` are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/ansi_term-0.11.0/src/display.rs:222:21
|
222 | let w: &mut io::Write = w;
| ^^^^^^^^^ help: use `dyn`: `dyn io::Write`
warning: trait objects without an explicit `dyn` are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/ansi_term-0.11.0/src/write.rs:15:23
|
15 | impl<'a> AnyWrite for fmt::Write + 'a {
| ^^^^^^^^^^^^^^^ help: use `dyn`: `dyn fmt::Write + 'a`
warning: trait objects without an explicit `dyn` are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/ansi_term-0.11.0/src/write.rs:29:23
|
29 | impl<'a> AnyWrite for io::Write + 'a {
| ^^^^^^^^^^^^^^ help: use `dyn`: `dyn io::Write + 'a`
Compiling shlex v0.1.1
Running `CARGO_PKG_HOMEPAGE= CARGO_PKG_REPOSITORY='https://github.com/comex/rust-shlex' CARGO_PKG_AUTHORS='comex <[email protected]>' CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/shlex-0.1.1 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_VERSION=0.1.1 CARGO_PKG_NAME=shlex CARGO_PKG_DESCRIPTION='Split a string into shell words, like Python'\''s shlex.
' rustc --crate-name shlex /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/shlex-0.1.1/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=97ef5087ea3fa79b -C extra-filename=-97ef5087ea3fa79b --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --cap-lints warn`
Compiling thread_local v0.3.6
Running `CARGO_PKG_HOMEPAGE= CARGO_PKG_REPOSITORY='https://github.com/Amanieu/thread_local-rs' CARGO_PKG_AUTHORS='Amanieu d'\''Antras <[email protected]>' CARGO_PKG_VERSION_MINOR=3 CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/thread_local-0.3.6 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=6 CARGO_PKG_VERSION=0.3.6 CARGO_PKG_NAME=thread_local CARGO_PKG_DESCRIPTION='Per-object thread-local storage' rustc --crate-name thread_local /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/thread_local-0.3.6/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=5d2724bb3087e0a2 -C extra-filename=-5d2724bb3087e0a2 --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --extern lazy_static=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps/liblazy_static-047cf0469e352b1b.rmeta --cap-lints warn`
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/thread_local-0.3.6/src/lib.rs:211:40
|
211 | None => Ok(self.insert(id, try!(create()), true)),
| ^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/thread_local-0.3.6/src/lib.rs:531:44
|
531 | (*self.local.get()) = Some(try!(create()));
| ^^^
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/thread_local-0.3.6/src/lib.rs:537:47
|
537 | None => Ok(self.global.insert(id, try!(create()), true)),
| ^^^
Compiling proc-macro2 v0.3.5
Running `CARGO_PKG_HOMEPAGE='https://github.com/alexcrichton/proc-macro2' CARGO_PKG_REPOSITORY='https://github.com/alexcrichton/proc-macro2' CARGO_PKG_AUTHORS='Alex Crichton <[email protected]>' CARGO_PKG_VERSION_MINOR=3 CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=5 CARGO_PKG_VERSION=0.3.5 CARGO_PKG_NAME=proc-macro2 CARGO_PKG_DESCRIPTION='A stable implementation of the upcoming new `proc_macro` API. Comes with an
option, off by default, to also reimplement itself in terms of the upstream
unstable API.
' rustc --crate-name proc_macro2 /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=52a402df51856794 -C extra-filename=-52a402df51856794 --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --extern unicode_xid=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps/libunicode_xid-685037260e9a3110.rmeta --cap-lints warn`
Compiling textwrap v0.11.0
Running `CARGO_PKG_HOMEPAGE= CARGO_PKG_REPOSITORY='https://github.com/mgeisler/textwrap' CARGO_PKG_AUTHORS='Martin Geisler <[email protected]>' CARGO_PKG_VERSION_MINOR=11 CARGO_PKG_VERSION_MAJOR=0 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/textwrap-0.11.0 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION=0.11.0 CARGO_PKG_NAME=textwrap CARGO_PKG_DESCRIPTION='Textwrap is a small library for word wrapping, indenting, and
dedenting strings.
You can use it to format strings (such as help and error messages) for
display in commandline applications. It is designed to be efficient
and handle Unicode characters correctly.
' rustc --crate-name textwrap /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/textwrap-0.11.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=cce5e2333a073778 -C extra-filename=-cce5e2333a073778 --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --extern unicode_width=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps/libunicode_width-b0b7a2175f2bef8e.rmeta --cap-lints warn`
Running `/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/build/log-14973f213e4fe562/build-script-build`
[log 0.4.8] cargo:rustc-cfg=atomic_cas
[log 0.4.8] cargo:rerun-if-changed=build.rs
Compiling humantime v1.2.0
Running `CARGO_PKG_HOMEPAGE='https://github.com/tailhook/humantime' CARGO_PKG_REPOSITORY= CARGO_PKG_AUTHORS='Paul Colomiets <[email protected]>' CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_MAJOR=1 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/humantime-1.2.0 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION=1.2.0 CARGO_PKG_NAME=humantime CARGO_PKG_DESCRIPTION=' A parser and formatter for std::time::{Duration, SystemTime}
' rustc --crate-name humantime /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/humantime-1.2.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=d8b74af24150a03c -C extra-filename=-d8b74af24150a03c --out-dir /home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps -L dependency=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps --extern quick_error=/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps/libquick_error-11ed466181d748f1.rmeta --cap-lints warn`
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/strnom.rs:96:24
|
96 | b' ' | 0x09...0x0d => {
| ^^^ help: use `..=` for an inclusive range
|
= note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:571:24
|
571 | b'\x20'...b'\x7E' => escaped.push(*b as char),
| ^^^ help: use `..=` for an inclusive range
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:978:25
|
978 | next_ch!(chars @ '0'...'7');
| ^^^ help: use `..=` for an inclusive range
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:979:25
|
979 | next_ch!(chars @ '0'...'9' | 'a'...'f' | 'A'...'F');
| ^^^ help: use `..=` for an inclusive range
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:979:37
|
979 | next_ch!(chars @ '0'...'9' | 'a'...'f' | 'A'...'F');
| ^^^ help: use `..=` for an inclusive range
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:979:49
|
979 | next_ch!(chars @ '0'...'9' | 'a'...'f' | 'A'...'F');
| ^^^ help: use `..=` for an inclusive range
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:987:26
|
987 | next_ch!(chars @ b'0'...b'9' | b'a'...b'f' | b'A'...b'F');
| ^^^ help: use `..=` for an inclusive range
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:987:40
|
987 | next_ch!(chars @ b'0'...b'9' | b'a'...b'f' | b'A'...b'F');
| ^^^ help: use `..=` for an inclusive range
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:987:54
|
987 | next_ch!(chars @ b'0'...b'9' | b'a'...b'f' | b'A'...b'F');
| ^^^ help: use `..=` for an inclusive range
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:988:26
|
988 | next_ch!(chars @ b'0'...b'9' | b'a'...b'f' | b'A'...b'F');
| ^^^ help: use `..=` for an inclusive range
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:988:40
|
988 | next_ch!(chars @ b'0'...b'9' | b'a'...b'f' | b'A'...b'F');
| ^^^ help: use `..=` for an inclusive range
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:988:54
|
988 | next_ch!(chars @ b'0'...b'9' | b'a'...b'f' | b'A'...b'F');
| ^^^ help: use `..=` for an inclusive range
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:997:25
|
997 | next_ch!(chars @ '0'...'9' | 'a'...'f' | 'A'...'F');
| ^^^ help: use `..=` for an inclusive range
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:997:37
|
997 | next_ch!(chars @ '0'...'9' | 'a'...'f' | 'A'...'F');
| ^^^ help: use `..=` for an inclusive range
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:997:49
|
997 | next_ch!(chars @ '0'...'9' | 'a'...'f' | 'A'...'F');
| ^^^ help: use `..=` for an inclusive range
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:999:37
|
999 | let c = next_ch!(chars @ '0'...'9' | 'a'...'f' | 'A'...'F' | '_' | '}');
| ^^^ help: use `..=` for an inclusive range
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:999:49
|
999 | let c = next_ch!(chars @ '0'...'9' | 'a'...'f' | 'A'...'F' | '_' | '}');
| ^^^ help: use `..=` for an inclusive range
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:999:61
|
999 | let c = next_ch!(chars @ '0'...'9' | 'a'...'f' | 'A'...'F' | '_' | '}');
| ^^^ help: use `..=` for an inclusive range
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:1028:16
|
1028 | '0'...'9' | '_' => {
| ^^^ help: use `..=` for an inclusive range
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:1073:20
|
1073 | '0'...'9' => {
| ^^^ help: use `..=` for an inclusive range
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:1123:17
|
1123 | b'0'...b'9' => (b - b'0') as u64,
| ^^^ help: use `..=` for an inclusive range
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:1124:17
|
1124 | b'a'...b'f' => 10 + (b - b'a') as u64,
| ^^^ help: use `..=` for an inclusive range
warning: `...` range patterns are deprecated
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.5/src/stable.rs:1125:17
|
1125 | b'A'...b'F' => 10 + (b - b'A') as u64,
| ^^^ help: use `..=` for an inclusive range
Running `/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/build/bitflags-9d414f58dcef9a51/build-script-build`
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/humantime-1.2.0/src/duration.rs:109:37
|
109 | "usec" | "us" => (0u64, try!(n.mul(1000))),
| ^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/humantime-1.2.0/src/duration.rs:110:48
|
110 | "millis" | "msec" | "ms" => (0u64, try!(n.mul(1000_000))),
| ^^^
[bitflags 1.1.0] cargo:rustc-cfg=bitflags_const_fn
Running `/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/build/libc-7c1f24ec9ddbc82c/build-script-build`
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/humantime-1.2.0/src/duration.rs:113:17
|
113 | => (try!(n.mul(60)), 0),
| ^^^
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/humantime-1.2.0/src/duration.rs:114:55
|
114 | "hours" | "hour" | "hr" | "hrs" | "h" => (try!(n.mul(3600)), 0),
| ^^^
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/humantime-1.2.0/src/duration.rs:115:38
|
115 | "days" | "day" | "d" => (try!(n.mul(86400)), 0),
| ^^^
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/humantime-1.2.0/src/duration.rs:116:40
|
116 | "weeks" | "week" | "w" => (try!(n.mul(86400*7)), 0),
| ^^^
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/humantime-1.2.0/src/duration.rs:117:42
|
117 | "months" | "month" | "M" => (try!(n.mul(2630016)), 0), // 30.44d
| ^^^
[libc 0.2.63] cargo:rustc-cfg=freebsd11
[libc 0.2.63] cargo:rustc-cfg=libc_priv_mod_use
[libc 0.2.63] cargo:rustc-cfg=libc_union
[libc 0.2.63] cargo:rustc-cfg=libc_const_size_of
[libc 0.2.63] cargo:rustc-cfg=libc_align
[libc 0.2.63] cargo:rustc-cfg=libc_core_cvoid
[libc 0.2.63] cargo:rustc-cfg=libc_packedN
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/humantime-1.2.0/src/duration.rs:118:40
|
118 | "years" | "year" | "y" => (try!(n.mul(31557600)), 0), // 365.25d
| ^^^
Running `/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/build/memchr-40502e56f030c6a9/build-script-build`
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/humantime-1.2.0/src/duration.rs:121:24
|
121 | let mut nsec = try!(self.current.1.add(nsec));
| ^^^
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/humantime-1.2.0/src/duration.rs:123:19
|
123 | sec = try!(sec.add(nsec / 1000_000_000));
| ^^^
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/humantime-1.2.0/src/duration.rs:126:15
|
126 | sec = try!(self.current.0.add(sec));
| ^^^
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/humantime-1.2.0/src/duration.rs:132:21
|
132 | let mut n = try!(try!(self.parse_first_char()).ok_or(Error::Empty));
| ^^^
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/humantime-1.2.0/src/duration.rs:132:26
|
132 | let mut n = try!(try!(self.parse_first_char()).ok_or(Error::Empty));
| ^^^
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/humantime-1.2.0/src/duration.rs:138:29
|
138 | n = try!(n.checked_mul(10)
| ^^^
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/humantime-1.2.0/src/duration.rs:157:25
|
157 | try!(self.parse_unit(n, start, off));
| ^^^
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/humantime-1.2.0/src/duration.rs:169:13
|
169 | try!(self.parse_unit(n, start, off));
| ^^^
warning: use of deprecated item 'try': use the `?` operator instead
--> /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/humantime-1.2.0/src/duration.rs:170:23
|
170 | n = match try!(self.parse_first_char()) {
| ^^^
[memchr 2.2.1] cargo:rustc-cfg=memchr_runtime_simd
[memchr 2.2.1] cargo:rustc-cfg=memchr_runtime_sse2
[memchr 2.2.1] cargo:rustc-cfg=memchr_runtime_sse42
[memchr 2.2.1] cargo:rustc-cfg=memchr_runtime_avx
Compiling nom v4.2.3
Running `CARGO_PKG_HOMEPAGE= CARGO_PKG_REPOSITORY='https://github.com/Geal/nom' CARGO_PKG_AUTHORS='[email protected]' CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_MAJOR=4 CARGO_MANIFEST_DIR=/home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-4.2.3 LD_LIBRARY_PATH='/home/loongson/redoxstuff/linux-kernel-module-rust/hello_world/target/debug/deps:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' CARGO=/home/loongson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_PKG_VERSION_PRE= CARGO_PKG_VERSION_PATCH=3 CARGO_PKG_VERSION=4.2.3 CARGO_PKG_NAME=nom CARGO_PKG_DESCRIPTION='A byte-oriented, zero-copy, parser combinators library' rustc --crate-name build_script_build /home/loongson/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-4.2.3/build.rs --color never --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg 'feature="a
|
I would like to add I tried this on fedora rawhide. Same error.
|
Hi @omac777 - on newer kernels (5.0 or newer), you need LLVM 9 or later for support for "asm goto". By the way, the build code in this project as well as the hello-world module comes from our project at https://github.com/fishinabarrel/linux-kernel-module-rust , which is actively developed. You may have better luck trying the version there, we have since added compatibility with more kernel versions (as well as a bit more functionality). |
I tried to build the hello_world example and it failed.
I followed the instructions:
The text was updated successfully, but these errors were encountered: