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

Upgrade to rust2018 #122

Merged
merged 9 commits into from
Mar 4, 2019
Merged

Upgrade to rust2018 #122

merged 9 commits into from
Mar 4, 2019

Conversation

faern
Copy link
Collaborator

@faern faern commented Mar 4, 2019

As we discussed on IRC. Let's upgrade all these three crates to Rust 2018 edition and get rid of some legacy conditional compilation etc.

Will greatly aid the work to integrate it into libstd over at #119

@@ -175,14 +168,9 @@ where
{
// Try to read from thread-local storage, but return None if the TLS has
// already been destroyed.
#[cfg(has_localkey_try_with)]
fn try_get_tls(key: &'static LocalKey<ThreadData>) -> Option<*const ThreadData> {
key.try_with(|x| x as *const ThreadData).ok()
}
Copy link
Owner

Choose a reason for hiding this comment

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

There isn't much point keeping that as a separate function now.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

True. Removed.

src/condvar.rs Outdated Show resolved Hide resolved
src/once.rs Outdated Show resolved Hide resolved
core/src/parking_lot.rs Show resolved Hide resolved
@faern faern force-pushed the upgrade-to-rust2018 branch 2 times, most recently from a14f10e to e889de9 Compare March 4, 2019 21:19
@faern faern force-pushed the upgrade-to-rust2018 branch 2 times, most recently from c395a9e to c828135 Compare March 4, 2019 21:40
@faern faern force-pushed the upgrade-to-rust2018 branch from c828135 to d88854d Compare March 4, 2019 21:45
@Amanieu Amanieu merged commit 66d67bb into Amanieu:master Mar 4, 2019
@faern faern deleted the upgrade-to-rust2018 branch March 4, 2019 22:43
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