In function Table::as_ref, a reference of vector is force cast to slice. There are multiple problems here:
Vec::shrink_to_fit. The function requires a mutable reference, so we have to force cast from immutable to mutable, which is UB.&Vec<T> and &[T] still might not have the same layout. Treating them equally may lead to UB.{
"license": "CC0-1.0"
}