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

A bit cleanup of NEXT_NAMESPACE_ID #3127

Merged
merged 1 commit into from Sep 26, 2018
Merged

A bit cleanup of NEXT_NAMESPACE_ID #3127

merged 1 commit into from Sep 26, 2018

Conversation

@sotaroikeda
Copy link
Contributor

sotaroikeda commented Sep 26, 2018

Initialization becomes simpler with AtomicUsize::new(1).


This change is Reviewable

@gw3583
Copy link
Collaborator

gw3583 commented Sep 26, 2018

I think it used to be this way due to a restriction in rustc. Is the minimum rustc version required by Gecko sufficient to support this change now?

@sotaroikeda
Copy link
Contributor Author

sotaroikeda commented Sep 26, 2018

Ah, I recalled #1882 (comment).

feature(const_atomic_usize_new) was already removed by rust-lang/rust#46287. And AtomicUsize::new(1) is stabilized API and could be used on gecko.

https://gitlab.redox-os.org/redox-os/rust/commit/28b39f5d7aec44176b06fbbad0d5fc6e711d28f3?view=inline&w=1#efb3a8f27841e02c096caf40976056107478ba0e_1_42

@gw3583
Copy link
Collaborator

gw3583 commented Sep 26, 2018

@bors-servo r+

Thanks!

@bors-servo
Copy link
Contributor

bors-servo commented Sep 26, 2018

📌 Commit 6e85020 has been approved by gw3583

@bors-servo
Copy link
Contributor

bors-servo commented Sep 26, 2018

Testing commit 6e85020 with merge a0779f2...

bors-servo added a commit that referenced this pull request Sep 26, 2018
A bit cleanup of NEXT_NAMESPACE_ID

Initialization becomes simpler with AtomicUsize::new(1).

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/3127)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Sep 26, 2018

☀️ Test successful - status-appveyor, status-taskcluster
Approved by: gw3583
Pushing a0779f2 to master...

@bors-servo bors-servo merged commit 6e85020 into servo:master Sep 26, 2018
3 checks passed
3 checks passed
Taskcluster (pull_request) TaskGroup: success
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.