mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-06 09:36:56 +00:00
fmt
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user