Closed sftyzxg closed 1 year ago
Sorry for the late response. I have added a rust-toolchain.
[toolchain]
channel = "nightly-2021-08-04"
components = [ "cargo", "clippy", "rust-docs", "rust-std", "rustc", "rustfmt", "rust-analyzer" ]
profile = "minimal"
Hi! I am trying to use 'cargo run' to run the project, and received several warnings and errors, I am using rustc 1.66.0-nightly and I am wondering if I used a wrong version of rustc. The logs are as follows:
warning: the feature
command_access` has been stable since 1.57.0 and no longer requires an attribute to enable --> src/utils/src/lib.rs:1:12= note:
#[warn(stable_features)]
on by defaultutils
(lib) generated 1 warning warning: fieldlambda
is never read --> src/nethint/src/timer.rs:49:5= note:
PoissonTimer
has a derived impl for the traitDebug
, but this is intentionally ignored during dead code analysis = note:#[warn(dead_code)]
on by defaultts
is never read --> src/nethint/src/hint.rs:57:5= note:
Point
has derived impls for the traitsClone
andDebug
, but these are intentionally ignored during dead code analysisnethint
(lib) generated 2 warnings warning: fieldseed
is never read --> src/allreduce/src/random_ring.rs:9:5= note:
RandomRingAllReduce
has a derived impl for the traitDebug
, but this is intentionally ignored during dead code analysis = note:#[warn(dead_code)]
on by defaultallreduce
(lib) generated 1 warning warning: the featurecommand_access
has been stable since 1.57.0 and no longer requires an attribute to enable --> src/nhagent_v2/src/lib.rs:1:12= note:
#[warn(stable_features)]
on by defaultnhagent_v2
(lib) generated 1 warning warning: fieldseed
is never read --> src/rl/src/contraction.rs:9:5= note:
Contraction
has a derived impl for the traitDebug
, but this is intentionally ignored during dead code analysis = note:#[warn(dead_code)]
on by defaultseed
is never read --> src/rl/src/random_ring.rs:9:5= note:
RandomChain
has a derived impl for the traitDebug
, but this is intentionally ignored during dead code analysisrl
(lib) generated 2 warnings warning: the featurecommand_access
has been stable since 1.57.0 and no longer requires an attribute to enable --> src/nhagent/src/lib.rs:1:12= note:
#[warn(stable_features)]
on by defaultnhagent
(lib) generated 1 warning warning: the featurecommand_access
has been stable since 1.57.0 and no longer requires an attribute to enable --> src/replayer/src/scheduler.rs:4:12= note:
#[warn(stable_features)]
on by defaultjob_id
is never read --> src/replayer/src/scheduler.rs:60:5= note:
JobConfig
has derived impls for the traitsClone
andDebug
, but these are intentionally ignored during dead code analysis = note:#[warn(dead_code)]
on by defaultcommand_access
has been stable since 1.57.0 and no longer requires an attribute to enable --> src/replayer/src/launcher.rs:8:12= note:
#[warn(stable_features)]
on by defaultreplayer
(bin "scheduler") generated 2 warnings warning:replayer
(bin "rplaunch") generated 1 warning warning: the featurebindings_after_at
has been stable since 1.56.0 and no longer requires an attribute to enable --> src/replayer/src/controller/main.rs:1:12= note:
#[warn(stable_features)]
on by defaultreplayer
(bin "controller") generated 1 warning warning: unused import:std::sync::Arc
--> src/rl/src/experiment.rs:3:5= note:
#[warn(unused_imports)]
on by defaultwarning: unused import:
Application
--> src/rl/src/experiment.rs:9:21 | 9 | app::{AppGroup, Application}, | ^^^^^^^^^^^warning: unused import:
mapreduce::plink::PlinkApp
--> src/rl/src/experiment.rs:16:5 | 16 | use mapreduce::plink::PlinkApp; | ^^^^^^^^^^^^^^^^^^^^^^^^^^warning: unused import:
indicatif::MultiProgress
--> src/rl/src/experiment.rs:22:5 | 22 | use indicatif::MultiProgress; | ^^^^^^^^^^^^^^^^^^^^^^^^first_ts
--> src/nhagent_v2/src/main.rs:117:9_first_ts
committed_traffic
is never read --> src/nhagent_v2/src/main.rs:235:5warning: associated function, chunk2: &mut Vec) {
| ^^^^^^^^^^^^
commit_chunk
is never used --> src/nhagent_v2/src/main.rs:438:8 | 438 | fn commit_chunk(chunk1: &mut Vecrl
(bin "rl_experiment") generated 4 warnings warning:nhagent_v2
(bin "nhagent_v2") generated 3 warnings Compiling allreduce v0.1.0 (/home/sftyzxg/Desktop/nethint/src/allreduce) warning: unused import:std::sync::Arc
--> src/allreduce/src/experiment.rs:3:5= note:
#[warn(unused_imports)]
on by defaultwarning: unused import:
Application
--> src/allreduce/src/experiment.rs:9:21 | 9 | app::{AppGroup, Application}, | ^^^^^^^^^^^warning: unused import:
mapreduce::plink::PlinkApp
--> src/allreduce/src/experiment.rs:16:5 | 16 | use mapreduce::plink::PlinkApp; | ^^^^^^^^^^^^^^^^^^^^^^^^^^allreduce
(bin "allreduce_experiment") generated 3 warnings Compiling mapreduce v0.1.0 (/home/sftyzxg/Desktop/nethint/src/mapreduce) error[E0061]: this function takes 11 arguments but 9 arguments were supplied --> src/mapreduce/src/main.rs:205:38Option<f64>
is missing 216bool
is missing~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~For more information about this error, try
rustc --explain E0061
. error: could not compileallreduce
due to previous error warning: build failed, waiting for other jobs to finish... error: could not compilemapreduce
due to previous error `