Skip to content

Conversation

@stoklund
Copy link
Contributor

Recently, vim started reporting Rust compilation errors in non-existent filenames in my multi-crate repository. Possibly after I installed rustc 1.12. The problem is caused by the FixPaths function in compiler/cargo.vim which would rewrite Cargo.toml-relative paths to current directory-relative paths. However, it would use the wrong Cargo.toml.

Cargo now emits paths that are relative to the current directory, not Cargo.toml, so the path rewriting is no longer necessary.

Also remove the documentation for the g:cargo_manifest_name setting which isn't used any more.

In Rust 1.12, Cargo now emits paths that are relative to the current
directory, not Cargo.toml, so the path rewriting is no longer necessary.

In some repository layouts with multiple crates in a workspace, relative
paths would be rewritten relative to the wrong crate's Cargo.toml.

Also remove the documentation for the g:cargo_manifest_name option which
isn't used any more.
@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @steveklabnik (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@steveklabnik steveklabnik merged commit e703c70 into rust-lang:master Nov 28, 2016
@steveklabnik
Copy link
Contributor

Great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants