I can not understand how cargo publish
run rustc
. It gives me compile time error during validation,
but I can not see them when I run cargo build --all
.
cargo publish
gives me this:
error[E0046]: not all trait items implemented, missing: `collect_str`
--> src/ser/map.rs:16:1
|
16 | / impl<'a, 'b> ser::Serializer for &'a mut MapKeySerializer<'b>
17 | | where
18 | | 'b: 'a,
19 | | {
... |
190 | | }
191 | | }
| |_^ missing `collect_str` in implementation
|
= help: implement the missing item: `fn collect_str<T>(self, _: &T) -> Result<<Self as serde::Serializer>::Ok, <Self as serde::Serializer>::Error> where T: std::fmt::Display { todo!() }`
Serializer
implementation for MapKeySerializer
(indeed) have no implementation for collect_str
, but this method has default implementation in trait:
So how can I emulate what does cargo publish
with cargo build
?