hackndev / zinc

The bare metal stack for rust
zinc.rs
Apache License 2.0
1k stars 100 forks source link

Fix nightly fallout #258

Closed 0xc0170 closed 9 years ago

0xc0170 commented 9 years ago

In progress, currently in green state for k20, all the other platforms need to be done and also will need to run tests + some hw tests

Summary of this PR (or what has changed in rustc):

And one error which we should carefully review, is the one operate on borrowed type error, was no able to track why it suddenly failed.

0xc0170 commented 9 years ago

I overstated above, k20 app are green , not tests :-) More to come

btw, unknow label means?

0xc0170 commented 9 years ago

@bgamari Why zeroed was implemented with Copy() ? Please review, thanks

This fixes errors, there is dozen of warnings, due to copy opt-in. we can fix those after this one goes in.

bgamari commented 9 years ago

@0xc0170 sorry for the latency. I was away from keyboard for most of the weekend and have been struggling to build a working rust toolchain. Looking at it again now.

bgamari commented 9 years ago

@0xc0170 I'm not sure I understand your question concerning zeroed. Could you clarify?

bgamari commented 9 years ago

Ahh, do you mean zeroed_safe in ioreg::test? mem::zeroed requires Copy as you can only use it to construct plain old data. Things that aren't Copy will likely have additional invariants that render zeroed unsafe. At least this is my inference.

bgamari commented 9 years ago

@0xc0170 you'll likely want to pull this on to your branch.

bgamari commented 9 years ago

The correct solution here is likely to add Copy impls for the types generated by ioregs!. I've started doing this on my fork of your branch. Unfortunately debugging macros is terrible.

0xc0170 commented 9 years ago

Yes, that was the error indicated, implement Copy for ioregs! .

Share with us the progress, I have checked your branch , seems you are on track.

bgamari commented 9 years ago

I think I finally have ioregs! working again. I'll be opening a new version of this pull request shortly.

0xc0170 commented 9 years ago

Awesome!

bgamari commented 9 years ago

Closing in favor of #260.