In particular, if the Cargo.toml specifies something like --crate-type=lib or such, then don't send it again (or if it says dylib then don't send lib and dylib; etc).
Also, if it says --expand-errors, then don't repeat-send that for flycheck, it breaks things.
In particular, if the
Cargo.toml
specifies something like--crate-type=lib
or such, then don't send it again (or if it saysdylib
then don't send lib and dylib; etc).Also, if it says
--expand-errors
, then don't repeat-send that for flycheck, it breaks things.