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

Implement static mut #7291

Merged
merged 3 commits into from
Jun 25, 2013
Merged

Implement static mut #7291

merged 3 commits into from
Jun 25, 2013

Conversation

alexcrichton
Copy link
Member

This adds both static mut items and static mut foreign items. This involved changing far less code than I thought it was going to, but the tests seem to pass and the variables seem functional.

I'm more than willing to write more tests, so suggestions are welcome!

Closes #553

@Aatch
Copy link
Contributor

Aatch commented Jun 22, 2013

Awesome, test coverage seems fine to me. I'd r+ it, but @bors has gone mad.

@jdm
Copy link
Contributor

jdm commented Jun 22, 2013

\o/

@brson
Copy link
Contributor

brson commented Jun 23, 2013

🎆

@graydon
Copy link
Contributor

graydon commented Jun 23, 2013

Excellent, thanks!

@thestinger
Copy link
Contributor

@alexcrichton: sadly, already needs a rebase

@alexcrichton
Copy link
Member Author

@thestinger, should be ready to go again

bors added a commit that referenced this pull request Jun 25, 2013
This adds both `static mut` items and `static mut` foreign items. This involved changing far less code than I thought it was going to, but the tests seem to pass and the variables seem functional.

I'm more than willing to write more tests, so suggestions are welcome!

Closes #553
@bors bors closed this Jun 25, 2013
@bors bors merged commit b94f89f into rust-lang:master Jun 25, 2013
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 24, 2024
Added new `non_zero_suggestions` lint

Created lint based on the suggestions in rust-lang#7291

- \[x] Followed [lint naming conventions][lint_naming]
- \[x] Added passing UI tests (including committed `.stderr` file)
- \[x] `cargo test` passes locally
- \[x] Executed `cargo dev update_lints`
- \[x] Added lint documentation
- \[x] Run `cargo dev fmt`

----

changelog: new [`non_zero_suggestions`] lint
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.

Add global variables to unsafe
9 participants