[INFO] fetching crate json-spanned-value 0.2.2... [INFO] checking json-spanned-value-0.2.2 against try#7b3da9103634dffd4f4365cfd8642427c781d99f+rustflags=-Dinherent-method-on-receiver for 152214-denied [INFO] extracting crate json-spanned-value 0.2.2 into /workspace/builds/worker-5-tc2/source [INFO] started tweaking crates.io crate json-spanned-value 0.2.2 [INFO] finished tweaking crates.io crate json-spanned-value 0.2.2 [INFO] tweaked toml for crates.io crate json-spanned-value 0.2.2 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate json-spanned-value 0.2.2 on toolchain 7b3da9103634dffd4f4365cfd8642427c781d99f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate json-spanned-value 0.2.2 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" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a3b48ec395f21e33688295df6fc44860c445b3c050d6d8916f20873926c7fcf8 [INFO] running `Command { std: "docker" "start" "-a" "a3b48ec395f21e33688295df6fc44860c445b3c050d6d8916f20873926c7fcf8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a3b48ec395f21e33688295df6fc44860c445b3c050d6d8916f20873926c7fcf8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3b48ec395f21e33688295df6fc44860c445b3c050d6d8916f20873926c7fcf8", kill_on_drop: false }` [INFO] [stdout] a3b48ec395f21e33688295df6fc44860c445b3c050d6d8916f20873926c7fcf8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dinherent-method-on-receiver" "-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3e61de9a99385a622d1ddf51a822a2b5a181c4f00cc1ee4c8cafb91f68b3e062 [INFO] running `Command { std: "docker" "start" "-a" "3e61de9a99385a622d1ddf51a822a2b5a181c4f00cc1ee4c8cafb91f68b3e062", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.42 [INFO] [stderr] Compiling serde_derive v1.0.116 [INFO] [stderr] Compiling serde v1.0.116 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde_json v1.0.58 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking termcolor v1.1.0 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking codespan-reporting v0.9.5 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking json-spanned-value v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/map.rs:36:108 [INFO] [stdout] | [INFO] [stdout] 36 | ...e manipulation."] pub fn entry(&mut self, key: K) -> Entry { self.map.entry(key) } [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] 36 | #[doc = "Gets the given key's corresponding entry in the map for in-place manipulation."] pub fn entry(&mut self, key: K) -> Entry<'_, K, V> { self.map.entry(key) } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/spanned.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn start(&self) -> usize { self.start } [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | impl Deref for Spanned { fn deref(&self) -> &Self::Target { &self.value } type Target = V; } [INFO] [stdout] | -------------------------------------------------- trait implemented here ----------- with `Target` set here [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D inherent-method-on-receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/spanned.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn end(&self) -> usize { self.end } [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | impl Deref for Spanned { fn deref(&self) -> &Self::Target { &self.value } type Target = V; } [INFO] [stdout] | -------------------------------------------------- trait implemented here ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/spanned.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn span(&self) -> (usize, usize) { (self.start, self.end) } [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | impl Deref for Spanned { fn deref(&self) -> &Self::Target { &self.value } type Target = V; } [INFO] [stdout] | -------------------------------------------------- trait implemented here ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/spanned.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn range(&self) -> Range { self.start .. self.end } [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | impl Deref for Spanned { fn deref(&self) -> &Self::Target { &self.value } type Target = V; } [INFO] [stdout] | -------------------------------------------------- trait implemented here ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/spanned.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn into_inner(self) -> V { self.value } [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | impl Deref for Spanned { fn deref(&self) -> &Self::Target { &self.value } type Target = V; } [INFO] [stdout] | -------------------------------------------------- trait implemented here ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/spanned.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_ref(&self) -> &V { &self.value } [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | impl Deref for Spanned { fn deref(&self) -> &Self::Target { &self.value } type Target = V; } [INFO] [stdout] | -------------------------------------------------- trait implemented here ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/spanned.rs:54:20 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn get_mut(&mut self) -> &mut V { &mut self.value } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | impl Deref for Spanned { fn deref(&self) -> &Self::Target { &self.value } type Target = V; } [INFO] [stdout] | -------------------------------------------------- trait implemented here ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/spanned.rs:108:110 [INFO] [stdout] | [INFO] [stdout] 108 | ... ] pub fn as_span_number (&self) -> Option { match &self.value { super::Value::Number(v) => Some(Spanned { s... [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 108 | #[doc="`Some(span + &inner)` if self is a number like `123`" ] pub fn as_span_number (&self) -> Option> { match &self.value { super::Value::Number(v) => Some(Spanned { start: self.start, end: self.end, value: &v }), _ => None } } [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/spanned.rs:109:110 [INFO] [stdout] | [INFO] [stdout] 109 | ... ] pub fn as_span_string (&self) -> Option { match &self.value { super::Value::String(v) => Some(Spanned { s... [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 109 | #[doc="`Some(span + &inner)` if self is a string like `\"asdf\"`" ] pub fn as_span_string (&self) -> Option> { match &self.value { super::Value::String(v) => Some(Spanned { start: self.start, end: self.end, value: &v }), _ => None } } [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/spanned.rs:110:110 [INFO] [stdout] | [INFO] [stdout] 110 | ... ] pub fn as_span_array (&self) -> Option { match &self.value { super::Value::Array(v) => Some(Spanned { s... [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 110 | #[doc="`Some(span + &inner)` if self is an array like `[1, 2, 3]`" ] pub fn as_span_array (&self) -> Option> { match &self.value { super::Value::Array(v) => Some(Spanned { start: self.start, end: self.end, value: v }), _ => None } } [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/spanned.rs:111:110 [INFO] [stdout] | [INFO] [stdout] 111 | ..."b\": 2}`" ] pub fn as_span_object (&self) -> Option { match &self.value { super::Value::Object(v) => Some(Spanned { s... [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 111 | #[doc="`Some(span + &inner)` if self is an object like `{\"a\": 1, \"b\": 2}`" ] pub fn as_span_object (&self) -> Option> { match &self.value { super::Value::Object(v) => Some(Spanned { start: self.start, end: self.end, value: v }), _ => None } } [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `json-spanned-value` (lib) due to 7 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/map.rs:36:108 [INFO] [stdout] | [INFO] [stdout] 36 | ...e manipulation."] pub fn entry(&mut self, key: K) -> Entry { self.map.entry(key) } [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] 36 | #[doc = "Gets the given key's corresponding entry in the map for in-place manipulation."] pub fn entry(&mut self, key: K) -> Entry<'_, K, V> { self.map.entry(key) } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/spanned.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn start(&self) -> usize { self.start } [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | impl Deref for Spanned { fn deref(&self) -> &Self::Target { &self.value } type Target = V; } [INFO] [stdout] | -------------------------------------------------- trait implemented here ----------- with `Target` set here [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D inherent-method-on-receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/spanned.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn end(&self) -> usize { self.end } [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | impl Deref for Spanned { fn deref(&self) -> &Self::Target { &self.value } type Target = V; } [INFO] [stdout] | -------------------------------------------------- trait implemented here ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/spanned.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn span(&self) -> (usize, usize) { (self.start, self.end) } [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | impl Deref for Spanned { fn deref(&self) -> &Self::Target { &self.value } type Target = V; } [INFO] [stdout] | -------------------------------------------------- trait implemented here ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/spanned.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn range(&self) -> Range { self.start .. self.end } [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | impl Deref for Spanned { fn deref(&self) -> &Self::Target { &self.value } type Target = V; } [INFO] [stdout] | -------------------------------------------------- trait implemented here ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/spanned.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn into_inner(self) -> V { self.value } [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | impl Deref for Spanned { fn deref(&self) -> &Self::Target { &self.value } type Target = V; } [INFO] [stdout] | -------------------------------------------------- trait implemented here ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/spanned.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn get_ref(&self) -> &V { &self.value } [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | impl Deref for Spanned { fn deref(&self) -> &Self::Target { &self.value } type Target = V; } [INFO] [stdout] | -------------------------------------------------- trait implemented here ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: inherent methods on types that implement `Deref` or `Receiver` shadow methods of their target [INFO] [stdout] --> src/spanned.rs:54:20 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn get_mut(&mut self) -> &mut V { &mut self.value } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | impl Deref for Spanned { fn deref(&self) -> &Self::Target { &self.value } type Target = V; } [INFO] [stdout] | -------------------------------------------------- trait implemented here ----------- with `Target` set here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/spanned.rs:108:110 [INFO] [stdout] | [INFO] [stdout] 108 | ... ] pub fn as_span_number (&self) -> Option { match &self.value { super::Value::Number(v) => Some(Spanned { s... [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 108 | #[doc="`Some(span + &inner)` if self is a number like `123`" ] pub fn as_span_number (&self) -> Option> { match &self.value { super::Value::Number(v) => Some(Spanned { start: self.start, end: self.end, value: &v }), _ => None } } [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/spanned.rs:109:110 [INFO] [stdout] | [INFO] [stdout] 109 | ... ] pub fn as_span_string (&self) -> Option { match &self.value { super::Value::String(v) => Some(Spanned { s... [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 109 | #[doc="`Some(span + &inner)` if self is a string like `\"asdf\"`" ] pub fn as_span_string (&self) -> Option> { match &self.value { super::Value::String(v) => Some(Spanned { start: self.start, end: self.end, value: &v }), _ => None } } [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/spanned.rs:110:110 [INFO] [stdout] | [INFO] [stdout] 110 | ... ] pub fn as_span_array (&self) -> Option { match &self.value { super::Value::Array(v) => Some(Spanned { s... [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 110 | #[doc="`Some(span + &inner)` if self is an array like `[1, 2, 3]`" ] pub fn as_span_array (&self) -> Option> { match &self.value { super::Value::Array(v) => Some(Spanned { start: self.start, end: self.end, value: v }), _ => None } } [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/spanned.rs:111:110 [INFO] [stdout] | [INFO] [stdout] 111 | ..."b\": 2}`" ] pub fn as_span_object (&self) -> Option { match &self.value { super::Value::Object(v) => Some(Spanned { s... [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] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 111 | #[doc="`Some(span + &inner)` if self is an object like `{\"a\": 1, \"b\": 2}`" ] pub fn as_span_object (&self) -> Option> { match &self.value { super::Value::Object(v) => Some(Spanned { start: self.start, end: self.end, value: v }), _ => None } } [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `json-spanned-value` (lib test) due to 7 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3e61de9a99385a622d1ddf51a822a2b5a181c4f00cc1ee4c8cafb91f68b3e062", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e61de9a99385a622d1ddf51a822a2b5a181c4f00cc1ee4c8cafb91f68b3e062", kill_on_drop: false }` [INFO] [stdout] 3e61de9a99385a622d1ddf51a822a2b5a181c4f00cc1ee4c8cafb91f68b3e062