Skip to content

Guarantee comm primitives are not Freeze #11111

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
Dec 23, 2013

Conversation

alexcrichton
Copy link
Member

None of these primitives should be Freeze because sharing them in an Arc is a
very bad idea.

Closes #11039

None of these primitives should be Freeze because sharing them in an Arc is a
very bad idea.

Closes rust-lang#11039
bors added a commit that referenced this pull request Dec 23, 2013
None of these primitives should be Freeze because sharing them in an Arc is a
very bad idea.

Closes #11039
@bors bors closed this Dec 23, 2013
@bors bors merged commit 67c0222 into rust-lang:master Dec 23, 2013
@alexcrichton alexcrichton deleted the issue-11039 branch December 23, 2013 17:28
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jul 14, 2023
Fix regex lints for regex 1.9.0

regex 1.9.0 was [just released](https://blog.burntsushi.net/regex-internals/), which changes where the types are defined. Instead of updating the definitions to the ones in 1.9.0 this PR uses [`def_path_def_ids`](https://doc.rust-lang.org/nightly/nightly-rustc/clippy_utils/fn.def_path_def_ids.html) on the canonical paths so that we don't have to worry about third party crate internals

This means that it still works with older regex versions too, and will for any future layout changes. I tested it with 1.8.4 and 1.9.0

changelog: [`INVALID_REGEX`], [`TRIVIAL_REGEX`]: now works with regex 1.9.0
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.

SharedChan is not Freeze
3 participants