Skip to content

(fix) Remove default type parameter#36

Merged
reem merged 2 commits intoreem:masterfrom
alex-gulyas:fix-compilation
May 28, 2017
Merged

(fix) Remove default type parameter#36
reem merged 2 commits intoreem:masterfrom
alex-gulyas:fix-compilation

Conversation

@alex-gulyas
Copy link
Contributor

Without this PR build fails on Rust 1.10:

src/lib.rs:185:18: 185:19 error: defaults for type parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions.
src/lib.rs:185 impl<'a, K: Key, A: ?Sized + UnsafeAnyExt + 'a = UnsafeAny> Entry<'a, K, A> {
                                ^
src/lib.rs:185:18: 185:19 warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
src/lib.rs:185:18: 185:19 note: for more information, see PR 30742 <https://github.com/rust-lang/rust/pull/30724>
src/lib.rs:1:23: 1:31 note: lint level defined here
src/lib.rs:1 #![deny(missing_docs, warnings)]
                                   ^~~~~~~~

@reem reem merged commit 9452d89 into reem:master May 28, 2017
@reem reem mentioned this pull request May 28, 2017
@alex-gulyas alex-gulyas deleted the fix-compilation branch May 28, 2017 19:40
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