Repository navigation
feat: restore may_dangle drop support - #762
Conversation
|
Hi maintainers, this PR restores |
|
this can indeed be made simpler if we had a prepend function for the unsafe, then we would just have cfg_attrs and it'd be much simpler give me some time to think about it |
|
alright with #764 this should be much easier to implement it is simply a conditional everything else stays the same and we cut 50 lines of code |
|
#764 merged, go ahead |
|
no worries, I'll take it myself thanks for your contributions @Chandana5599 |
Signed-off-by: Alejandro Vaz <alejandro.vaz.myt@gmail.com>
Signed-off-by: Alejandro Vaz <alejandro.vaz.myt@gmail.com>
Signed-off-by: Alejandro Vaz <alejandro.vaz.myt@gmail.com>
Signed-off-by: Alejandro Vaz <alejandro.vaz.myt@gmail.com>
Signed-off-by: Alejandro Vaz <alejandro.vaz.myt@gmail.com>
Signed-off-by: Alejandro Vaz <alejandro.vaz.myt@gmail.com>
Signed-off-by: Alejandro Vaz <alejandro.vaz.myt@gmail.com>
Signed-off-by: Alejandro Vaz <alejandro.vaz.myt@gmail.com>
Signed-off-by: Alejandro Vaz <alejandro.vaz.myt@gmail.com>
Refactor comments for clarity in spec_from_iter function. Signed-off-by: Alejandro Vaz <alejandro.vaz.myt@gmail.com>
Summary
may_danglesupport behind an opt-in feature flag.Dropimplementation when the feature is disabled.SmallVec#756.Testing
cargo test --features allocator-api2cargo +nightly test --features "allocator-api2 may_dangle"cargo +nightly fmt --checkgit diff --checkFixes #756