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 handling of where clauses #1

Merged
merged 1 commit into from
Oct 13, 2020
Merged

Fix handling of where clauses #1

merged 1 commit into from
Oct 13, 2020

Conversation

alexanderlinne
Copy link
Contributor

@alexanderlinne alexanderlinne commented Oct 11, 2020

I noticed that where clauses from the original trait were missing in the derived impls. This can lead to compile errors if default impls within the trait rely on those constraints. I added the required code to the derive macros as well as test cases for it.

The error in the CI seems to be a result of a chanced rustc error message on the nightly toolchain.

@codecov
Copy link

codecov bot commented Oct 11, 2020

Codecov Report

Merging #1 into master will increase coverage by 0.70%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #1      +/-   ##
==========================================
+ Coverage   70.79%   71.50%   +0.70%     
==========================================
  Files           8        8              
  Lines         363      365       +2     
==========================================
+ Hits          257      261       +4     
+ Misses        106      104       -2     
Impacted Files Coverage Δ
src/derive/box.rs 100.00% <100.00%> (ø)
src/derive/mut.rs 100.00% <100.00%> (ø)
src/derive/rc.rs 100.00% <100.00%> (ø)
src/derive/ref.rs 100.00% <100.00%> (ø)
src/lib.rs 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5997fb5...008b027. Read the comment docs.

@althonos
Copy link
Owner

Good catch, thanks! The CI error is indeed unrelated, so I'll merge as-is.

@althonos althonos merged commit ef57d14 into althonos:master Oct 13, 2020
@althonos
Copy link
Owner

Released in v0.1.3.

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.

None yet

2 participants