Skip to content

List of TODOs blocked on MSRV #67

Open
@joshlf

Description

@joshlf

This issue is a repository of TODOs which are blocked on updating to a particular MSRV. In addition to those listed here, also see TODO(#67) comments in the source code.

  • In FromZeroes::new_box_slice_zeroed, remove defensive programming which currently works around a bug in Layout::from_size_align
  • Make MaybeValid::as_slice (pending in #279) const once our MSRV is >= 1.64.0, when slice_from_raw_parts was stabilized as const
  • Some instances of #[allow(clippy::as_conversions)] (pending in the current draft of #196) are spurious, and more recent versions of Clippy don't fire in those locations.
  • Some unsafe blocks in macros are marked with #[allow(clippy::undocumented_unsafe_blocks)]; more recent versions of Clippy don't fire in those locations.
  • Once our MSRV is 1.64, we can use this feature to mimic this setting in zerocopy-derive's Cargo.toml in order to cut down on duplication between it and zerocopy's Cargo.toml. This should also allow us to remove some of the CI logic that verifies that metadata in both files matches, since this will be true automatically.
  • Make any functions that use these const: Stabilize const_maybe_uninit_zeroed and const_mem_zeroed rust-lang/rust#116218
  • Use ptr::from_ref and ptr::from_mut
  • Use &mut references in a const context
  • 1.81: Replace #[allow(...)] with #[expect(...)] where appropriate

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions