Skip to content

Remove global mutable config to allow for concurrency #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2015
Merged

Remove global mutable config to allow for concurrency #112

merged 1 commit into from
Jun 23, 2015

Conversation

marcusklaas
Copy link
Contributor

This should make it possible to run idempotence/ system tests concurrently.

@@ -14,7 +14,7 @@ use {NewlineStyle, BraceStyle, ReturnIndent};
use lists::SeparatorTactic;
use issues::ReportTactic;

#[derive(RustcDecodable)]
#[derive(RustcDecodable, Clone, Copy)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be Copy - it might get more complex in the future and is already too big to morally be copy-able

@nrc
Copy link
Member

nrc commented Jun 22, 2015

This is a good idea, the only change I would make is to not copy the config around (see the comment on deriving copy). That is going to require changing a few of the uses to references and will need a few lifetime params scattered around, but should work.

@marcusklaas
Copy link
Contributor Author

It luckily was very little work!

@nrc
Copy link
Member

nrc commented Jun 23, 2015

Needs a rebase now

@marcusklaas
Copy link
Contributor Author

@nrc Rebasified!

nrc added a commit that referenced this pull request Jun 23, 2015
Remove global mutable config to allow for concurrency
@nrc nrc merged commit 66c6fe5 into rust-lang:master Jun 23, 2015
@marcusklaas marcusklaas deleted the config-fix branch September 11, 2015 09:23
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.

2 participants