Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Prevent aggressive project rebuilding by retaining RUSTFLAGS order #349

Merged
merged 1 commit into from
Jun 17, 2017

Conversation

Xanewok
Copy link
Member

@Xanewok Xanewok commented Jun 17, 2017

Fixes #330. Thanks to @nrc's suggestion, using BTreeMap instead of HashMap retains RUSTFLAGS order with which crate fingerprint has been made when compiling dep crates, thus not triggering complete project rebuild per each cargo run.

@Xanewok
Copy link
Member Author

Xanewok commented Jun 17, 2017

PR fails on test_reformat, but it seems like this isn't working as desired on master yet

@nrc nrc merged commit 9ca162f into rust-lang:master Jun 17, 2017
@nrc
Copy link
Member

nrc commented Jun 17, 2017

Awesome, thanks!

@Xanewok Xanewok deleted the rustflags-rebuild-fix branch June 18, 2017 12:20
@gentoo90
Copy link

Is this fix in nightly builds yet? The bug is still reproduced with build 2017-06-20.

@nrc
Copy link
Member

nrc commented Jun 20, 2017

@gentoo90 I don't think so. I just sent a PR to update the RLS submodule, so once that hits nightly it should be included (rust-lang/rust#42766).

@gentoo90
Copy link

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants