fmt
This commit is contained in:
parent
19b0bb9b54
commit
ccd680ee01
2 changed files with 7 additions and 2 deletions
|
|
@ -424,7 +424,11 @@ impl<'history, 'ecx, 'tcx> DiagnosticCx<'history, 'ecx, 'tcx> {
|
|||
}
|
||||
|
||||
#[inline(never)] // This is only called on fatal code paths
|
||||
pub(super) fn protector_error(&self, item: &Item, kind: ProtectorKind) -> InterpErrorKind<'tcx> {
|
||||
pub(super) fn protector_error(
|
||||
&self,
|
||||
item: &Item,
|
||||
kind: ProtectorKind,
|
||||
) -> InterpErrorKind<'tcx> {
|
||||
let protected = match kind {
|
||||
ProtectorKind::WeakProtector => "weakly protected",
|
||||
ProtectorKind::StrongProtector => "strongly protected",
|
||||
|
|
|
|||
|
|
@ -433,7 +433,8 @@ fn replace_vptr() {
|
|||
}
|
||||
|
||||
fn drop_principal() {
|
||||
use std::{alloc::Layout, any::Any};
|
||||
use std::alloc::Layout;
|
||||
use std::any::Any;
|
||||
|
||||
const fn yeet_principal(x: Box<dyn Any + Send>) -> Box<dyn Send> {
|
||||
x
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue