[INFO] fetching crate mosekcomodel 0.4.3... [INFO] building mosekcomodel-0.4.3 against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] extracting crate mosekcomodel 0.4.3 into /workspace/builds/worker-2-tc2/source [INFO] removed /workspace/builds/worker-2-tc2/source/.cargo/config.toml [INFO] started tweaking crates.io crate mosekcomodel 0.4.3 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate mosekcomodel 0.4.3 [INFO] tweaked toml for crates.io crate mosekcomodel 0.4.3 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate mosekcomodel 0.4.3 on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate mosekcomodel 0.4.3 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 54da5fbd9dc001c78f8188f1cdfd63871505cd4b9da2b1ac7a3707d88eb159dc [INFO] running `Command { std: "docker" "start" "-a" "54da5fbd9dc001c78f8188f1cdfd63871505cd4b9da2b1ac7a3707d88eb159dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "54da5fbd9dc001c78f8188f1cdfd63871505cd4b9da2b1ac7a3707d88eb159dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54da5fbd9dc001c78f8188f1cdfd63871505cd4b9da2b1ac7a3707d88eb159dc", kill_on_drop: false }` [INFO] [stdout] 54da5fbd9dc001c78f8188f1cdfd63871505cd4b9da2b1ac7a3707d88eb159dc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 868db2dc257b53e1308459879456789eb31224aed37a19500ff49f5b43bf7a14 [INFO] running `Command { std: "docker" "start" "-a" "868db2dc257b53e1308459879456789eb31224aed37a19500ff49f5b43bf7a14", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling mosek v11.0.16 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling mosekcomodel v0.4.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/domain/mod.rs:267:45 [INFO] [stdout] | [INFO] [stdout] 267 | *shape.get(d).ok_or_else(|| ("Invalid cone dimension index for this shape".to_string()))? [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 267 - *shape.get(d).ok_or_else(|| ("Invalid cone dimension index for this shape".to_string()))? [INFO] [stdout] 267 + *shape.get(d).ok_or_else(|| "Invalid cone dimension index for this shape".to_string())? [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/expr/eval.rs:45:32 [INFO] [stdout] | [INFO] [stdout] 45 | .filter(|(&i,_,_)| (i < last && [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 49 | ( anti && index < 0 && d-i%d + absidx == i/d)))) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 ~ .filter(|(&i,_,_)| i < last && [INFO] [stdout] 46 | (((!anti) && index >= 0 && i%d == i/d + absidx) || [INFO] [stdout] 47 | ((!anti) && index < 0 && i%d - absidx == i/d) || [INFO] [stdout] 48 | ( anti && index >= 0 && d-i%d - absidx == i/d) || [INFO] [stdout] 49 ~ ( anti && index < 0 && d-i%d + absidx == i/d))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/expr/eval.rs:58:36 [INFO] [stdout] | [INFO] [stdout] 58 | .filter(|(&i,_,_)| (i < last && [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 62 | ( anti && index < 0 && d-i%d + absidx == i/d)))) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 ~ .filter(|(&i,_,_)| i < last && [INFO] [stdout] 59 | ((!anti && index >= 0 && i%d == i/d + absidx) || [INFO] [stdout] 60 | (!anti && index < 0 && i%d - absidx == i/d) || [INFO] [stdout] 61 | ( anti && index >= 0 && d-i%d - absidx == i/d) || [INFO] [stdout] 62 ~ ( anti && index < 0 && d-i%d + absidx == i/d))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/expr/eval.rs:74:36 [INFO] [stdout] | [INFO] [stdout] 74 | .filter(|(&i,_,_)| (i < last && [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 78 | ( anti && index < 0 && d-i%d + absidx == i/d)))) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 74 ~ .filter(|(&i,_,_)| i < last && [INFO] [stdout] 75 | ((!anti && index >= 0 && i%d == i/d + absidx) || [INFO] [stdout] 76 | (!anti && index < 0 && i%d - absidx == i/d) || [INFO] [stdout] 77 | ( anti && index >= 0 && d-i%d - absidx == i/d) || [INFO] [stdout] 78 ~ ( anti && index < 0 && d-i%d + absidx == i/d))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Chunk` [INFO] [stdout] --> src/utils/iter.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use itertools::Chunk; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DJCDomainTrait`, `DJCModelTrait`, `ModelWithIntSolutionCallback`, `ModelWithLogCallback`, `PSDModelTrait`, and `VectorConeModelTrait` [INFO] [stdout] --> src/optserver/mod.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::model::{DJCDomainTrait, DJCModelTrait, ModelWithIntSolutionCallback, ModelWithLogCallback, PSDModelTrait, VectorConeModelTrait}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PermuteByMutEx` [INFO] [stdout] --> src/optserver/mod.rs:7:56 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::utils::iter::{ChunksByIterExt, PermuteByEx, PermuteByMutEx}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `iproduct` [INFO] [stdout] --> src/optserver/mod.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use itertools::{iproduct, izip}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/optserver/mod.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fs::{write, File}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dummy.rs:190:10 [INFO] [stdout] | [INFO] [stdout] 190 | name : Option<&str>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dummy.rs:253:10 [INFO] [stdout] | [INFO] [stdout] 253 | name : Option<&str>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/model/mod.rs:390:52 [INFO] [stdout] | [INFO] [stdout] 390 | pub fn set_int_solution_callback(&mut self, mut func : F) where F : 'static+FnMut(&IntSolutionManager), T : 'static+ModelWithIntSo... [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lastcon` [INFO] [stdout] --> src/dummy.rs:407:13 [INFO] [stdout] | [INFO] [stdout] 407 | let lastcon = firstcon+n; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lastcon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `con0` [INFO] [stdout] --> src/dummy.rs:421:13 [INFO] [stdout] | [INFO] [stdout] 421 | let con0 = self.cons.len(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_con0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dummy.rs:387:9 [INFO] [stdout] | [INFO] [stdout] 387 | name : Option<&str>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dummy.rs:439:51 [INFO] [stdout] | [INFO] [stdout] 439 | fn conic_variable(&mut self, name : Option<&str>,dom : VectorDomain) -> Result,String> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/dummy.rs:499:13 [INFO] [stdout] | [INFO] [stdout] 499 | for i in 0..ncones { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dummy.rs:477:49 [INFO] [stdout] | [INFO] [stdout] 477 | fn psd_variable(&mut self, name : Option<&str>, dom : PSDDomain) -> Result,String> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dummy.rs:536:52 [INFO] [stdout] | [INFO] [stdout] 536 | fn psd_constraint(& mut self, name : Option<&str>, dom : PSDDomain,shape : &[usize], ptr : &[usize], subj : &[usi... [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dom` [INFO] [stdout] --> src/dummy.rs:536:73 [INFO] [stdout] | [INFO] [stdout] 536 | ... mut self, name : Option<&str>, dom : PSDDomain,shape : &[usize], ptr : &[usize], subj : &[usize], cof : &[f64]) -> Result src/dummy.rs:536:92 [INFO] [stdout] | [INFO] [stdout] 536 | ...ion<&str>, dom : PSDDomain,shape : &[usize], ptr : &[usize], subj : &[usize], cof : &[f64]) -> Result,String> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shape` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> src/dummy.rs:536:110 [INFO] [stdout] | [INFO] [stdout] 536 | ... PSDDomain,shape : &[usize], ptr : &[usize], subj : &[usize], cof : &[f64]) -> Result,String> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subj` [INFO] [stdout] --> src/dummy.rs:536:126 [INFO] [stdout] | [INFO] [stdout] 536 | ...pe : &[usize], ptr : &[usize], subj : &[usize], cof : &[f64]) -> Result,String> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_subj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cof` [INFO] [stdout] --> src/dummy.rs:536:143 [INFO] [stdout] | [INFO] [stdout] 536 | ...tr : &[usize], subj : &[usize], cof : &[f64]) -> Result,String> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_a_row` [INFO] [stdout] --> src/dummy.rs:573:13 [INFO] [stdout] | [INFO] [stdout] 573 | let first_a_row = self.a_ptr.len(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_a_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shape` [INFO] [stdout] --> src/dummy.rs:586:28 [INFO] [stdout] | [INFO] [stdout] 586 | let (ct,offset,shape,conedim) = dom.extract(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shape` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conedim` [INFO] [stdout] --> src/dummy.rs:586:34 [INFO] [stdout] | [INFO] [stdout] 586 | let (ct,offset,shape,conedim) = dom.extract(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conedim` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dummy.rs:568:20 [INFO] [stdout] | [INFO] [stdout] 568 | name : Option<&str>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `headers_begin` [INFO] [stdout] --> src/optserver/http.rs:256:13 [INFO] [stdout] | [INFO] [stdout] 256 | let headers_begin = buf.iter().enumerate().find(|c| *c.1 == b'\n').unwrap().1+1; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_headers_begin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/optserver/http.rs:246:82 [INFO] [stdout] | [INFO] [stdout] 246 | while let Some(p) = buf[lastcrlfpos..].iter().enumerate().find(|(i,&b)| b == b'\n').map(|(i,_)| i) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content_length` [INFO] [stdout] --> src/optserver/http.rs:367:21 [INFO] [stdout] | [INFO] [stdout] 367 | if let Some(content_length) = content_length { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/optserver/mod.rs:198:10 [INFO] [stdout] | [INFO] [stdout] 198 | name : Option<&str>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/optserver/mod.rs:261:10 [INFO] [stdout] | [INFO] [stdout] 261 | name : Option<&str>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rescode` is assigned to, but never used [INFO] [stdout] --> src/optserver/mod.rs:370:17 [INFO] [stdout] | [INFO] [stdout] 370 | let mut rescode = None; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_rescode` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rescode` is never read [INFO] [stdout] --> src/optserver/mod.rs:383:21 [INFO] [stdout] | [INFO] [stdout] 383 | rescode = Some(r.to_string()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/optserver/mod.rs:391:26 [INFO] [stdout] | [INFO] [stdout] 391 | if let Some((k,JSON::Dict(d))) = d.0.iter().find(|kv| kv.0.as_str() == "Task/solutions") { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utils/mod.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn iter(&self) -> std::slice::Iter { self.strides.iter() } [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 40 | pub fn iter(&self) -> std::slice::Iter<'_, usize> { self.strides.iter() } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from` is never used [INFO] [stdout] --> src/model/mod.rs:363:8 [INFO] [stdout] | [INFO] [stdout] 349 | impl ModelAPI where T : BaseModelTrait { [INFO] [stdout] | -------------------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 363 | fn from(inner : T) -> ModelAPI { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `proto_ver` is never read [INFO] [stdout] --> src/optserver/http.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Response<'a,T> where T : Read { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 17 | proto_ver :(u8,u8), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `get`, `put`, `head`, `content_length`, `submit_empty`, and `submit_data` are never used [INFO] [stdout] --> src/optserver/http.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 132 | impl Request { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn get(path : &str) -> Request { Request::new("GET",path) } [INFO] [stdout] | ^^^ [INFO] [stdout] 144 | pub fn put(path : &str) -> Request { Request::new("PUT",path) } [INFO] [stdout] | ^^^ [INFO] [stdout] 145 | pub fn post(path : &str) -> Request { Request::new("POST", path) } [INFO] [stdout] 146 | pub fn head(path : &str) -> Request { Request::new("PUT", path) } [INFO] [stdout] | ^^^^ [INFO] [stdout] 147 | [INFO] [stdout] 148 | pub fn content_length(mut self, size : usize) -> Self{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn submit_empty<'a,T>(mut self, s : &'a mut T) -> Result,String> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 186 | pub fn submit_data<'a,T>(mut self, s : &'a mut T, data : &[u8]) -> Result,String> [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `con_names` is never read [INFO] [stdout] --> src/optserver/mod.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Backend { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 60 | con_names : Vec>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `lb` and `ub` are never read [INFO] [stdout] --> src/dummy.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | Linear{lb:f64,ub:f64}, [INFO] [stdout] | ------ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Element` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `coneidx`, `offset`, and `b` are never read [INFO] [stdout] --> src/dummy.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 54 | Conic{coneidx:usize,offset:usize,b:f64}, [INFO] [stdout] | ----- ^^^^^^^ ^^^^^^ ^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Element` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `djc_clause_ptr` are never read [INFO] [stdout] --> src/dummy.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Backend { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 61 | name : Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | djc_clause_ptr : Vec, // index into djc_dom, djc_a_row [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.74s [INFO] running `Command { std: "docker" "inspect" "868db2dc257b53e1308459879456789eb31224aed37a19500ff49f5b43bf7a14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "868db2dc257b53e1308459879456789eb31224aed37a19500ff49f5b43bf7a14", kill_on_drop: false }` [INFO] [stdout] 868db2dc257b53e1308459879456789eb31224aed37a19500ff49f5b43bf7a14 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0e922cfdec900758c20d1e7468d09405dba31e816e37fd55d6026da8098c14d4 [INFO] running `Command { std: "docker" "start" "-a" "0e922cfdec900758c20d1e7468d09405dba31e816e37fd55d6026da8098c14d4", kill_on_drop: false }` [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/domain/mod.rs:267:45 [INFO] [stdout] | [INFO] [stdout] 267 | *shape.get(d).ok_or_else(|| ("Invalid cone dimension index for this shape".to_string()))? [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 267 - *shape.get(d).ok_or_else(|| ("Invalid cone dimension index for this shape".to_string()))? [INFO] [stdout] 267 + *shape.get(d).ok_or_else(|| "Invalid cone dimension index for this shape".to_string())? [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/expr/eval.rs:45:32 [INFO] [stdout] | [INFO] [stdout] 45 | .filter(|(&i,_,_)| (i < last && [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 49 | ( anti && index < 0 && d-i%d + absidx == i/d)))) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 ~ .filter(|(&i,_,_)| i < last && [INFO] [stdout] 46 | (((!anti) && index >= 0 && i%d == i/d + absidx) || [INFO] [stdout] 47 | ((!anti) && index < 0 && i%d - absidx == i/d) || [INFO] [stdout] 48 | ( anti && index >= 0 && d-i%d - absidx == i/d) || [INFO] [stdout] 49 ~ ( anti && index < 0 && d-i%d + absidx == i/d))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/expr/eval.rs:58:36 [INFO] [stdout] | [INFO] [stdout] 58 | .filter(|(&i,_,_)| (i < last && [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 62 | ( anti && index < 0 && d-i%d + absidx == i/d)))) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 ~ .filter(|(&i,_,_)| i < last && [INFO] [stdout] 59 | ((!anti && index >= 0 && i%d == i/d + absidx) || [INFO] [stdout] 60 | (!anti && index < 0 && i%d - absidx == i/d) || [INFO] [stdout] 61 | ( anti && index >= 0 && d-i%d - absidx == i/d) || [INFO] [stdout] 62 ~ ( anti && index < 0 && d-i%d + absidx == i/d))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/expr/eval.rs:74:36 [INFO] [stdout] | [INFO] [stdout] 74 | .filter(|(&i,_,_)| (i < last && [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 78 | ( anti && index < 0 && d-i%d + absidx == i/d)))) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 74 ~ .filter(|(&i,_,_)| i < last && [INFO] [stdout] 75 | ((!anti && index >= 0 && i%d == i/d + absidx) || [INFO] [stdout] 76 | (!anti && index < 0 && i%d - absidx == i/d) || [INFO] [stdout] 77 | ( anti && index >= 0 && d-i%d - absidx == i/d) || [INFO] [stdout] 78 ~ ( anti && index < 0 && d-i%d + absidx == i/d))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Chunk` [INFO] [stdout] --> src/utils/iter.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use itertools::Chunk; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DJCDomainTrait`, `DJCModelTrait`, `ModelWithIntSolutionCallback`, `ModelWithLogCallback`, `PSDModelTrait`, and `VectorConeModelTrait` [INFO] [stdout] --> src/optserver/mod.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::model::{DJCDomainTrait, DJCModelTrait, ModelWithIntSolutionCallback, ModelWithLogCallback, PSDModelTrait, VectorConeModelTrait}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PermuteByMutEx` [INFO] [stdout] --> src/optserver/mod.rs:7:56 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::utils::iter::{ChunksByIterExt, PermuteByEx, PermuteByMutEx}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `iproduct` [INFO] [stdout] --> src/optserver/mod.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use itertools::{iproduct, izip}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/optserver/mod.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fs::{write, File}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dummy.rs:190:10 [INFO] [stdout] | [INFO] [stdout] 190 | name : Option<&str>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dummy.rs:253:10 [INFO] [stdout] | [INFO] [stdout] 253 | name : Option<&str>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/model/mod.rs:390:52 [INFO] [stdout] | [INFO] [stdout] 390 | pub fn set_int_solution_callback(&mut self, mut func : F) where F : 'static+FnMut(&IntSolutionManager), T : 'static+ModelWithIntSo... [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lastcon` [INFO] [stdout] --> src/dummy.rs:407:13 [INFO] [stdout] | [INFO] [stdout] 407 | let lastcon = firstcon+n; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lastcon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `con0` [INFO] [stdout] --> src/dummy.rs:421:13 [INFO] [stdout] | [INFO] [stdout] 421 | let con0 = self.cons.len(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_con0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dummy.rs:387:9 [INFO] [stdout] | [INFO] [stdout] 387 | name : Option<&str>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dummy.rs:439:51 [INFO] [stdout] | [INFO] [stdout] 439 | fn conic_variable(&mut self, name : Option<&str>,dom : VectorDomain) -> Result,String> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/dummy.rs:499:13 [INFO] [stdout] | [INFO] [stdout] 499 | for i in 0..ncones { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dummy.rs:477:49 [INFO] [stdout] | [INFO] [stdout] 477 | fn psd_variable(&mut self, name : Option<&str>, dom : PSDDomain) -> Result,String> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dummy.rs:536:52 [INFO] [stdout] | [INFO] [stdout] 536 | fn psd_constraint(& mut self, name : Option<&str>, dom : PSDDomain,shape : &[usize], ptr : &[usize], subj : &[usi... [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dom` [INFO] [stdout] --> src/dummy.rs:536:73 [INFO] [stdout] | [INFO] [stdout] 536 | ... mut self, name : Option<&str>, dom : PSDDomain,shape : &[usize], ptr : &[usize], subj : &[usize], cof : &[f64]) -> Result src/dummy.rs:536:92 [INFO] [stdout] | [INFO] [stdout] 536 | ...ion<&str>, dom : PSDDomain,shape : &[usize], ptr : &[usize], subj : &[usize], cof : &[f64]) -> Result,String> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shape` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> src/dummy.rs:536:110 [INFO] [stdout] | [INFO] [stdout] 536 | ... PSDDomain,shape : &[usize], ptr : &[usize], subj : &[usize], cof : &[f64]) -> Result,String> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subj` [INFO] [stdout] --> src/dummy.rs:536:126 [INFO] [stdout] | [INFO] [stdout] 536 | ...pe : &[usize], ptr : &[usize], subj : &[usize], cof : &[f64]) -> Result,String> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_subj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cof` [INFO] [stdout] --> src/dummy.rs:536:143 [INFO] [stdout] | [INFO] [stdout] 536 | ...tr : &[usize], subj : &[usize], cof : &[f64]) -> Result,String> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_a_row` [INFO] [stdout] --> src/dummy.rs:573:13 [INFO] [stdout] | [INFO] [stdout] 573 | let first_a_row = self.a_ptr.len(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_a_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shape` [INFO] [stdout] --> src/dummy.rs:586:28 [INFO] [stdout] | [INFO] [stdout] 586 | let (ct,offset,shape,conedim) = dom.extract(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shape` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conedim` [INFO] [stdout] --> src/dummy.rs:586:34 [INFO] [stdout] | [INFO] [stdout] 586 | let (ct,offset,shape,conedim) = dom.extract(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conedim` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dummy.rs:568:20 [INFO] [stdout] | [INFO] [stdout] 568 | name : Option<&str>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `headers_begin` [INFO] [stdout] --> src/optserver/http.rs:256:13 [INFO] [stdout] | [INFO] [stdout] 256 | let headers_begin = buf.iter().enumerate().find(|c| *c.1 == b'\n').unwrap().1+1; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_headers_begin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/optserver/http.rs:246:82 [INFO] [stdout] | [INFO] [stdout] 246 | while let Some(p) = buf[lastcrlfpos..].iter().enumerate().find(|(i,&b)| b == b'\n').map(|(i,_)| i) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content_length` [INFO] [stdout] --> src/optserver/http.rs:367:21 [INFO] [stdout] | [INFO] [stdout] 367 | if let Some(content_length) = content_length { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/optserver/mod.rs:198:10 [INFO] [stdout] | [INFO] [stdout] 198 | name : Option<&str>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/optserver/mod.rs:261:10 [INFO] [stdout] | [INFO] [stdout] 261 | name : Option<&str>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rescode` is assigned to, but never used [INFO] [stdout] --> src/optserver/mod.rs:370:17 [INFO] [stdout] | [INFO] [stdout] 370 | let mut rescode = None; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_rescode` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rescode` is never read [INFO] [stdout] --> src/optserver/mod.rs:383:21 [INFO] [stdout] | [INFO] [stdout] 383 | rescode = Some(r.to_string()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/optserver/mod.rs:391:26 [INFO] [stdout] | [INFO] [stdout] 391 | if let Some((k,JSON::Dict(d))) = d.0.iter().find(|kv| kv.0.as_str() == "Task/solutions") { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utils/mod.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn iter(&self) -> std::slice::Iter { self.strides.iter() } [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 40 | pub fn iter(&self) -> std::slice::Iter<'_, usize> { self.strides.iter() } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from` is never used [INFO] [stdout] --> src/model/mod.rs:363:8 [INFO] [stdout] | [INFO] [stdout] 349 | impl ModelAPI where T : BaseModelTrait { [INFO] [stdout] | -------------------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 363 | fn from(inner : T) -> ModelAPI { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `proto_ver` is never read [INFO] [stdout] --> src/optserver/http.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Response<'a,T> where T : Read { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 17 | proto_ver :(u8,u8), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `get`, `put`, `head`, `content_length`, `submit_empty`, and `submit_data` are never used [INFO] [stdout] --> src/optserver/http.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 132 | impl Request { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn get(path : &str) -> Request { Request::new("GET",path) } [INFO] [stdout] | ^^^ [INFO] [stdout] 144 | pub fn put(path : &str) -> Request { Request::new("PUT",path) } [INFO] [stdout] | ^^^ [INFO] [stdout] 145 | pub fn post(path : &str) -> Request { Request::new("POST", path) } [INFO] [stdout] 146 | pub fn head(path : &str) -> Request { Request::new("PUT", path) } [INFO] [stdout] | ^^^^ [INFO] [stdout] 147 | [INFO] [stdout] 148 | pub fn content_length(mut self, size : usize) -> Self{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn submit_empty<'a,T>(mut self, s : &'a mut T) -> Result,String> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 186 | pub fn submit_data<'a,T>(mut self, s : &'a mut T, data : &[u8]) -> Result,String> [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `con_names` is never read [INFO] [stdout] --> src/optserver/mod.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Backend { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 60 | con_names : Vec>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `lb` and `ub` are never read [INFO] [stdout] --> src/dummy.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | Linear{lb:f64,ub:f64}, [INFO] [stdout] | ------ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Element` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `coneidx`, `offset`, and `b` are never read [INFO] [stdout] --> src/dummy.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 54 | Conic{coneidx:usize,offset:usize,b:f64}, [INFO] [stdout] | ----- ^^^^^^^ ^^^^^^ ^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Element` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `djc_clause_ptr` are never read [INFO] [stdout] --> src/dummy.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Backend { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 61 | name : Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | djc_clause_ptr : Vec, // index into djc_dom, djc_a_row [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling mosekcomodel v0.4.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/domain/mod.rs:267:45 [INFO] [stdout] | [INFO] [stdout] 267 | *shape.get(d).ok_or_else(|| ("Invalid cone dimension index for this shape".to_string()))? [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 267 - *shape.get(d).ok_or_else(|| ("Invalid cone dimension index for this shape".to_string()))? [INFO] [stdout] 267 + *shape.get(d).ok_or_else(|| "Invalid cone dimension index for this shape".to_string())? [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/expr/eval.rs:45:32 [INFO] [stdout] | [INFO] [stdout] 45 | .filter(|(&i,_,_)| (i < last && [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 49 | ( anti && index < 0 && d-i%d + absidx == i/d)))) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 ~ .filter(|(&i,_,_)| i < last && [INFO] [stdout] 46 | (((!anti) && index >= 0 && i%d == i/d + absidx) || [INFO] [stdout] 47 | ((!anti) && index < 0 && i%d - absidx == i/d) || [INFO] [stdout] 48 | ( anti && index >= 0 && d-i%d - absidx == i/d) || [INFO] [stdout] 49 ~ ( anti && index < 0 && d-i%d + absidx == i/d))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/expr/eval.rs:58:36 [INFO] [stdout] | [INFO] [stdout] 58 | .filter(|(&i,_,_)| (i < last && [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 62 | ( anti && index < 0 && d-i%d + absidx == i/d)))) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 ~ .filter(|(&i,_,_)| i < last && [INFO] [stdout] 59 | ((!anti && index >= 0 && i%d == i/d + absidx) || [INFO] [stdout] 60 | (!anti && index < 0 && i%d - absidx == i/d) || [INFO] [stdout] 61 | ( anti && index >= 0 && d-i%d - absidx == i/d) || [INFO] [stdout] 62 ~ ( anti && index < 0 && d-i%d + absidx == i/d))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/expr/eval.rs:74:36 [INFO] [stdout] | [INFO] [stdout] 74 | .filter(|(&i,_,_)| (i < last && [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 78 | ( anti && index < 0 && d-i%d + absidx == i/d)))) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 74 ~ .filter(|(&i,_,_)| i < last && [INFO] [stdout] 75 | ((!anti && index >= 0 && i%d == i/d + absidx) || [INFO] [stdout] 76 | (!anti && index < 0 && i%d - absidx == i/d) || [INFO] [stdout] 77 | ( anti && index >= 0 && d-i%d - absidx == i/d) || [INFO] [stdout] 78 ~ ( anti && index < 0 && d-i%d + absidx == i/d))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Chunk` [INFO] [stdout] --> src/utils/iter.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use itertools::Chunk; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DJCDomainTrait`, `DJCModelTrait`, `ModelWithIntSolutionCallback`, `ModelWithLogCallback`, `PSDModelTrait`, and `VectorConeModelTrait` [INFO] [stdout] --> src/optserver/mod.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::model::{DJCDomainTrait, DJCModelTrait, ModelWithIntSolutionCallback, ModelWithLogCallback, PSDModelTrait, VectorConeModelTrait}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PermuteByMutEx` [INFO] [stdout] --> src/optserver/mod.rs:7:56 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::utils::iter::{ChunksByIterExt, PermuteByEx, PermuteByMutEx}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `iproduct` [INFO] [stdout] --> src/optserver/mod.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use itertools::{iproduct, izip}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/optserver/mod.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fs::{write, File}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dummy.rs:190:10 [INFO] [stdout] | [INFO] [stdout] 190 | name : Option<&str>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dummy.rs:253:10 [INFO] [stdout] | [INFO] [stdout] 253 | name : Option<&str>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lastcon` [INFO] [stdout] --> src/dummy.rs:407:13 [INFO] [stdout] | [INFO] [stdout] 407 | let lastcon = firstcon+n; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lastcon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `con0` [INFO] [stdout] --> src/dummy.rs:421:13 [INFO] [stdout] | [INFO] [stdout] 421 | let con0 = self.cons.len(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_con0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dummy.rs:387:9 [INFO] [stdout] | [INFO] [stdout] 387 | name : Option<&str>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dummy.rs:439:51 [INFO] [stdout] | [INFO] [stdout] 439 | fn conic_variable(&mut self, name : Option<&str>,dom : VectorDomain) -> Result,String> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/dummy.rs:499:13 [INFO] [stdout] | [INFO] [stdout] 499 | for i in 0..ncones { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dummy.rs:477:49 [INFO] [stdout] | [INFO] [stdout] 477 | fn psd_variable(&mut self, name : Option<&str>, dom : PSDDomain) -> Result,String> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dummy.rs:536:52 [INFO] [stdout] | [INFO] [stdout] 536 | fn psd_constraint(& mut self, name : Option<&str>, dom : PSDDomain,shape : &[usize], ptr : &[usize], subj : &[usi... [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dom` [INFO] [stdout] --> src/dummy.rs:536:73 [INFO] [stdout] | [INFO] [stdout] 536 | ... mut self, name : Option<&str>, dom : PSDDomain,shape : &[usize], ptr : &[usize], subj : &[usize], cof : &[f64]) -> Result src/dummy.rs:536:92 [INFO] [stdout] | [INFO] [stdout] 536 | ...ion<&str>, dom : PSDDomain,shape : &[usize], ptr : &[usize], subj : &[usize], cof : &[f64]) -> Result,String> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shape` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> src/dummy.rs:536:110 [INFO] [stdout] | [INFO] [stdout] 536 | ... PSDDomain,shape : &[usize], ptr : &[usize], subj : &[usize], cof : &[f64]) -> Result,String> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subj` [INFO] [stdout] --> src/dummy.rs:536:126 [INFO] [stdout] | [INFO] [stdout] 536 | ...pe : &[usize], ptr : &[usize], subj : &[usize], cof : &[f64]) -> Result,String> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_subj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cof` [INFO] [stdout] --> src/dummy.rs:536:143 [INFO] [stdout] | [INFO] [stdout] 536 | ...tr : &[usize], subj : &[usize], cof : &[f64]) -> Result,String> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_a_row` [INFO] [stdout] --> src/dummy.rs:573:13 [INFO] [stdout] | [INFO] [stdout] 573 | let first_a_row = self.a_ptr.len(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_a_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shape` [INFO] [stdout] --> src/dummy.rs:586:28 [INFO] [stdout] | [INFO] [stdout] 586 | let (ct,offset,shape,conedim) = dom.extract(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_shape` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/optserver/mod.rs:198:10 [INFO] [stdout] | [INFO] [stdout] 198 | name : Option<&str>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/optserver/mod.rs:261:10 [INFO] [stdout] | [INFO] [stdout] 261 | name : Option<&str>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conedim` [INFO] [stdout] --> src/dummy.rs:586:34 [INFO] [stdout] | [INFO] [stdout] 586 | let (ct,offset,shape,conedim) = dom.extract(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conedim` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/dummy.rs:568:20 [INFO] [stdout] | [INFO] [stdout] 568 | name : Option<&str>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rescode` is assigned to, but never used [INFO] [stdout] --> src/optserver/mod.rs:370:17 [INFO] [stdout] | [INFO] [stdout] 370 | let mut rescode = None; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_rescode` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `rescode` is never read [INFO] [stdout] --> src/optserver/mod.rs:383:21 [INFO] [stdout] | [INFO] [stdout] 383 | rescode = Some(r.to_string()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/optserver/mod.rs:391:26 [INFO] [stdout] | [INFO] [stdout] 391 | if let Some((k,JSON::Dict(d))) = d.0.iter().find(|kv| kv.0.as_str() == "Task/solutions") { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> src/utils/iter.rs:657:13 [INFO] [stdout] | [INFO] [stdout] 657 | let ptr : &[usize] = &[0,3,5,7,9,10]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/model/mod.rs:390:52 [INFO] [stdout] | [INFO] [stdout] 390 | pub fn set_int_solution_callback(&mut self, mut func : F) where F : 'static+FnMut(&IntSolutionManager), T : 'static+ModelWithIntSo... [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `headers_begin` [INFO] [stdout] --> src/optserver/http.rs:256:13 [INFO] [stdout] | [INFO] [stdout] 256 | let headers_begin = buf.iter().enumerate().find(|c| *c.1 == b'\n').unwrap().1+1; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_headers_begin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/optserver/http.rs:246:82 [INFO] [stdout] | [INFO] [stdout] 246 | while let Some(p) = buf[lastcrlfpos..].iter().enumerate().find(|(i,&b)| b == b'\n').map(|(i,_)| i) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content_length` [INFO] [stdout] --> src/optserver/http.rs:367:21 [INFO] [stdout] | [INFO] [stdout] 367 | if let Some(content_length) = content_length { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utils/mod.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn iter(&self) -> std::slice::Iter { self.strides.iter() } [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 40 | pub fn iter(&self) -> std::slice::Iter<'_, usize> { self.strides.iter() } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from` is never used [INFO] [stdout] --> src/model/mod.rs:363:8 [INFO] [stdout] | [INFO] [stdout] 349 | impl ModelAPI where T : BaseModelTrait { [INFO] [stdout] | -------------------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 363 | fn from(inner : T) -> ModelAPI { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `con_names` is never read [INFO] [stdout] --> src/optserver/mod.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Backend { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 60 | con_names : Vec>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `proto_ver` is never read [INFO] [stdout] --> src/optserver/http.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Response<'a,T> where T : Read { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 17 | proto_ver :(u8,u8), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `get`, `put`, `head`, and `submit_empty` are never used [INFO] [stdout] --> src/optserver/http.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 132 | impl Request { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn get(path : &str) -> Request { Request::new("GET",path) } [INFO] [stdout] | ^^^ [INFO] [stdout] 144 | pub fn put(path : &str) -> Request { Request::new("PUT",path) } [INFO] [stdout] | ^^^ [INFO] [stdout] 145 | pub fn post(path : &str) -> Request { Request::new("POST", path) } [INFO] [stdout] 146 | pub fn head(path : &str) -> Request { Request::new("PUT", path) } [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn submit_empty<'a,T>(mut self, s : &'a mut T) -> Result,String> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `lb` and `ub` are never read [INFO] [stdout] --> src/dummy.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | Linear{lb:f64,ub:f64}, [INFO] [stdout] | ------ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Element` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `coneidx`, `offset`, and `b` are never read [INFO] [stdout] --> src/dummy.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 54 | Conic{coneidx:usize,offset:usize,b:f64}, [INFO] [stdout] | ----- ^^^^^^^ ^^^^^^ ^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Element` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `djc_clause_ptr` are never read [INFO] [stdout] --> src/dummy.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Backend { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 61 | name : Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | djc_clause_ptr : Vec, // index into djc_dom, djc_a_row [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 15.46s [INFO] running `Command { std: "docker" "inspect" "0e922cfdec900758c20d1e7468d09405dba31e816e37fd55d6026da8098c14d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e922cfdec900758c20d1e7468d09405dba31e816e37fd55d6026da8098c14d4", kill_on_drop: false }` [INFO] [stdout] 0e922cfdec900758c20d1e7468d09405dba31e816e37fd55d6026da8098c14d4