Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Linter show rustc_private error. #393

Open
clouds56 opened this issue Apr 4, 2019 · 0 comments
Open

Linter show rustc_private error. #393

clouds56 opened this issue Apr 4, 2019 · 0 comments

Comments

@clouds56
Copy link

clouds56 commented Apr 4, 2019

Version of VSCode: 1.32.3
Version of the extension: 0.4.2
OS: macOS
rustc 1.34.0-nightly (f6fac4225 2019-02-03)
cargo 1.34.0-nightly (245818076 2019-01-27)

Description:

Output of the "Rust logging" channel:

DEBUG: Rustup: updateToolchains: this.toolchains=[{"channel":"nightly","host":"x86_64-apple-darwin","isDefault":true},{"channel":"system","isDefault":false}]
DEBUG: activate: processPossibleSetButMissingUserToolchain: toolchainKind=toolchain
DEBUG: activate: processPossibleSetButMissingUserToolchain: user toolchain is installed
DEBUG: Rustup: updateComponents(nightly-x86_64-apple-darwin): components=["cargo-x86_64-apple-darwin (default)","clippy-x86_64-apple-darwin","lldb-preview-x86_64-apple-darwin","llvm-tools-preview-x86_64-apple-darwin","rls-x86_64-apple-darwin (installed)","rust-analysis-x86_64-apple-darwin (installed)","rust-docs-x86_64-apple-darwin (default)","rust-src (installed)","rust-std-aarch64-apple-ios","rust-std-aarch64-fuchsia","rust-std-aarch64-linux-android","rust-std-aarch64-pc-windows-msvc","rust-std-aarch64-unknown-cloudabi","rust-std-aarch64-unknown-linux-gnu","rust-std-aarch64-unknown-linux-musl","rust-std-arm-linux-androideabi","rust-std-arm-unknown-linux-gnueabi","rust-std-arm-unknown-linux-gnueabihf","rust-std-arm-unknown-linux-musleabi","rust-std-arm-unknown-linux-musleabihf","rust-std-armebv7r-none-eabi","rust-std-armebv7r-none-eabihf","rust-std-armv5te-unknown-linux-gnueabi","rust-std-armv5te-unknown-linux-musleabi","rust-std-armv7-apple-ios","rust-std-armv7-linux-androideabi","rust-std-armv7-unknown-linux-gnueabihf","rust-std-armv7-unknown-linux-musleabihf","rust-std-armv7r-none-eabi","rust-std-armv7r-none-eabihf","rust-std-armv7s-apple-ios","rust-std-asmjs-unknown-emscripten","rust-std-i386-apple-ios","rust-std-i586-pc-windows-msvc","rust-std-i586-unknown-linux-gnu","rust-std-i586-unknown-linux-musl","rust-std-i686-apple-darwin","rust-std-i686-linux-android","rust-std-i686-pc-windows-gnu","rust-std-i686-pc-windows-msvc","rust-std-i686-unknown-freebsd","rust-std-i686-unknown-linux-gnu","rust-std-i686-unknown-linux-musl","rust-std-mips-unknown-linux-gnu","rust-std-mips-unknown-linux-musl","rust-std-mips64-unknown-linux-gnuabi64","rust-std-mips64el-unknown-linux-gnuabi64","rust-std-mipsel-unknown-linux-gnu","rust-std-mipsel-unknown-linux-musl","rust-std-powerpc-unknown-linux-gnu","rust-std-powerpc64-unknown-linux-gnu","rust-std-powerpc64le-unknown-linux-gnu","rust-std-riscv32imac-unknown-none-elf","rust-std-riscv32imc-unknown-none-elf","rust-std-s390x-unknown-linux-gnu","rust-std-sparc64-unknown-linux-gnu","rust-std-sparcv9-sun-solaris","rust-std-thumbv6m-none-eabi","rust-std-thumbv7em-none-eabi","rust-std-thumbv7em-none-eabihf","rust-std-thumbv7m-none-eabi","rust-std-thumbv7neon-linux-androideabi","rust-std-thumbv7neon-unknown-linux-gnueabihf","rust-std-thumbv8m.main-none-eabi","rust-std-wasm32-unknown-emscripten","rust-std-wasm32-unknown-unknown","rust-std-x86_64-apple-darwin (default)","rust-std-x86_64-apple-ios","rust-std-x86_64-fortanix-unknown-sgx","rust-std-x86_64-fuchsia","rust-std-x86_64-linux-android","rust-std-x86_64-pc-windows-gnu","rust-std-x86_64-pc-windows-msvc","rust-std-x86_64-rumprun-netbsd","rust-std-x86_64-sun-solaris","rust-std-x86_64-unknown-cloudabi","rust-std-x86_64-unknown-freebsd","rust-std-x86_64-unknown-linux-gnu","rust-std-x86_64-unknown-linux-gnux32","rust-std-x86_64-unknown-linux-musl","rust-std-x86_64-unknown-netbsd","rust-std-x86_64-unknown-redox","rustc-x86_64-apple-darwin (default)","rustfmt-x86_64-apple-darwin",""]
DEBUG: RlsMode: start: enter
DEBUG: RlsMode: start: no RLS executable
DEBUG: RlsMode: start: processPossibleSetButMissingUserToolchain: toolchainKind=nightly toolchain
DEBUG: RlsMode: start: processPossibleSetButMissingUserToolchain: user nightly toolchain is installed
DEBUG: RlsMode: processPossiblyMissingRlsComponents: RLS is installed
DEBUG: RlsMode: processPossiblyMissingRlsComponents: rust-analysis is installed
DEBUG: RlsMode: start: User decided not to use rustfmt
DEBUG: RlsMode: start: rlsPath=rustup 
DEBUG: RlsMode: start: env={"RUST_SRC_PATH":"/Users/xxx/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src"} 
DEBUG: RlsMode: start: args=["run","nightly-x86_64-apple-darwin","rls"] 
DEBUG: RlsMode: start: revealOutputChannelOn=3 
DEBUG: RlsMode: start: Language Client Manager: start

it shows error at code

#[macro_use]
extern crate log;
extern crate env_logger;

the error message:

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? (see issue #27812)

help: add #![feature(rustc_private)] to the crate attributes to enable

The 2 crate are both in my Cargo.toml

[dependencies]
log = "*"
env_logger = "*"

And I could successfully build and run my code without error/warnings.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant