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

Fix lazy_static Usage #260

Merged
merged 1 commit into from
May 15, 2016
Merged

Fix lazy_static Usage #260

merged 1 commit into from
May 15, 2016

Conversation

indiv0
Copy link
Contributor

@indiv0 indiv0 commented May 14, 2016

Issue

Due to RFC 1440, having types with destructors being used in static items and in const functions requires enabling the drop_types_in_const feature on nightly.

Since we use the lazy_static! macro to lazily create a static Regex, and lazy_static uses UnsafeCell internally, then as of rust-lang/rust/pull/33130, this change affects us. In the latest nightly versions, we require the drop_types_in_const feature to be enabled in order to compile.

Solution

This PR enables the drop_types_in_const feature on nightly builds.

Resources

Enables the `drop_types_in_const` nightly feature to re-allow the use of
`lazy_static`.
@jimmycuadra jimmycuadra merged commit edb110e into rusoto:master May 15, 2016
@indiv0 indiv0 deleted the bug-fix-lazy_static-usage branch May 15, 2016 19:56
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