Skip to content
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

Convert libstd to use the Drop trait #3962

Closed
wants to merge 1 commit into from

Conversation

bstrie
Copy link
Contributor

@bstrie bstrie commented Nov 14, 2012

With this code I've seen some intermittent failures when running make -j8 check. pcwalton seems to think this is to do with some parallel check going wrong, as I can't seem to reproduce the errors with just a usual make check (but they're nondeterministic errors in the first place, so that doesn't really say much). So there could be something lurking in here, but it's beyond my ken to track it down.

@bstrie
Copy link
Contributor Author

bstrie commented Nov 14, 2012

Working towards #3944

@brson
Copy link
Contributor

brson commented Nov 14, 2012

I suspect that the issue you are seeing is because of this rule: https://github.com/mozilla/rust/blob/incoming/mk/tests.mk#L95. If cleantestlibs and check-stage2 run in parallel they could end up stepping on each other.

@brson
Copy link
Contributor

brson commented Nov 14, 2012

Merged.

@brson brson closed this Nov 14, 2012
@brson
Copy link
Contributor

brson commented Nov 14, 2012

Thanks, @bstrie

@brson brson reopened this Nov 14, 2012
@brson
Copy link
Contributor

brson commented Nov 14, 2012

@brson
Copy link
Contributor

brson commented Nov 14, 2012

thread_pool is the culprit

@brson
Copy link
Contributor

brson commented Nov 15, 2012

I changed thread_pool back to drop blocks and pushed the rest to incoming

@brson brson closed this Nov 15, 2012
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 20, 2020
fix a false positive in two `interior_mutable_const` lints where a constant with enums gets linted
even if it uses a clearly unfrozen variant. Note that the code uses the MIR interpreter, which
the author of rust-lang#3962 thought unlikely to be a solution. This might be over-engineering;
but, I think it's important to be able to work with the 'http' crate (rust-lang#3825).
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 20, 2020
…=llogiq

"Respect" enums in `interior_mutable_const`

fixes rust-lang#3962
fixes rust-lang#3825

Hello,

It might not be a good idea to submit another relatively large PR while I have an opened PR; but, I've finished this anyway. This may be able to wait for months.

Note: the code uses the MIR interpreter, which the author of rust-lang#3962 thought unlikely to be a solution. This might be over-engineering; but, I think it's important to be able to work with the 'http' crate (rust-lang#3825). (And, I don't want to write a MIR visitor)

---

changelog: fix a false positive in two `interior_mutable_const` lints where a constant with enums gets linted
even if it uses a clearly unfrozen variant
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.

None yet

2 participants