Skip to content

Commit

Permalink
We did ask miri
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Oct 20, 2024
1 parent fc81756 commit 56c3a26
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions merde_core/src/deserialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,6 @@ mod mini_typeid {
}

/// Allows filling in a field of a struct while deserializing.
///
/// Enforces some type safety at runtime, by carrying lifetimes
/// around and making sure that at least the type_name matches.
/// There's a non-zero chance I messed something up and this is
/// actually badly UB though. I should ask miri.
pub struct FieldSlot<'s, 'borrow> {
option: *mut Option<()>,
type_id_of_field: TypeId,
Expand Down

0 comments on commit 56c3a26

Please sign in to comment.