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 undefined behaviour by removing MayebUninit usage (v2) #5

Merged
merged 8 commits into from
Oct 30, 2022
Merged

Conversation

juntyr
Copy link
Owner

@juntyr juntyr commented Oct 30, 2022

No description provided.

juntyr and others added 8 commits September 3, 2022 16:28
* Experiments with less uninit

* Some more experimentation

* Some progress on box, ptr, ref (still no mut ref)

* Upgraded MSRV to 1.60.0

* Added more examples

* Mutable ref with const uninit fn

* Clean up const generation

* Removed core->alloc dependency for ptr+ref

* Removed extraneous Static type alias

* Feature `const_ptr_offset_from` stabilised in 1.65.0

* Added back derive attrs for custom PhantomData

* Cleaned up some TODOs

* Added the ! type

* Added the ground attribute

* Use power tools in CI

* Add miri to CI

* Explicit miri component in CI

* Removed rust-toolchain

* Clarified unsafe uninit() API by constructing MaybeUninit

* Added initial inhabited calculation

* Implemented uninit() for uninhabited types

* Fixed enum + union uninit order with #[layout(bound)]
@codecov-commenter
Copy link

Codecov Report

Merging #5 (315a458) into main (ea8e270) will decrease coverage by 16.04%.
The diff coverage is 53.48%.

@@             Coverage Diff             @@
##             main       #5       +/-   ##
===========================================
- Coverage   68.90%   52.86%   -16.05%     
===========================================
  Files          19       20        +1     
  Lines         862     1188      +326     
===========================================
+ Hits          594      628       +34     
- Misses        268      560      +292     
Impacted Files Coverage Δ
src/impls/alloc/boxed.rs 0.00% <0.00%> (ø)
src/impls/core/array.rs 0.00% <0.00%> (ø)
src/impls/core/cell.rs 0.00% <0.00%> (ø)
src/impls/core/cmp.rs 0.00% <0.00%> (ø)
src/impls/core/convert.rs 0.00% <0.00%> (ø)
src/impls/core/ffi.rs 0.00% <0.00%> (ø)
src/impls/core/marker.rs 0.00% <0.00%> (ø)
src/impls/core/mem.rs 0.00% <0.00%> (ø)
src/impls/core/num.rs 0.00% <0.00%> (ø)
src/impls/core/option.rs 0.00% <0.00%> (ø)
... and 10 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@juntyr juntyr merged commit aa5ad03 into main Oct 30, 2022
@juntyr juntyr deleted the no-uninit branch October 30, 2022 19:20
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