You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
flycheck-rust-binary-crate-p should be passed project root, not the
crate root. Otherwise, detected crate root "src/main.rs" that gets
passed to the function makes root-dir "src/" and expand-file-name
produces "src/src/main.rs".
The correct way to detect this is to navigate from project root - the
directory where Cargo.toml is located.
Also, set flycheck-rust-crate-root in both cases: when one of predicates
match, the crate root is the rel-name of our current source. Otherwise,
we locate closest possible crate root and set that.
FixesGH-20 and closesGH-22
0 commit comments