Skip to content

Instantly share code, notes, and snippets.

View djkoloski's full-sized avatar
🦀
Destroying C++

David Koloski djkoloski

🦀
Destroying C++
View GitHub Profile
#0 rustc_infer::infer::generalize::{impl#3}::relate_item_args<rustc_infer::infer::generalize::CombineDelegate> (self=0x7f5461ee95e0, item_def_id=..., a_subst=<optimized out>, b_subst=<optimized out>) at compiler/rustc_infer/src/infer/generalize.rs:199
#1 0x00007f546b250d3d in rustc_middle::ty::relate::structurally_relate_tys::{closure#0}<rustc_infer::infer::generalize::Generalizer<rustc_infer::infer::generalize::CombineDelegate>> () at compiler/rustc_middle/src/ty/relate.rs:445
#2 rustc_middle::ty::relate::structurally_relate_tys<rustc_infer::infer::generalize::Generalizer<rustc_infer::infer::generalize::CombineDelegate>> (relation=0x7f5461ee95e0, a=..., b=...) at compiler/rustc_middle/src/ty/relate.rs:409
#3 0x00007f546b26e623 in rustc_infer::infer::generalize::{impl#3}::tys::{closure#0}<rustc_infer::infer::generalize::CombineDelegate> () at compiler/rustc_infer/src/infer/generalize.rs:312
#4 rustc_infer::infer::generalize::{impl#3}::tys<rustc_infer::infer::generalize::CombineDelegate> (self=0x7f5461ee9
@djkoloski
djkoloski / main.rs
Created February 11, 2022 14:25
rkyv Map wrapper type example
use std::{error::Error, hint::unreachable_unchecked, marker::PhantomData, ptr};
use rkyv::{
archived_root,
option::ArchivedOption,
out_field,
ser::{ScratchSpace, Serializer},
vec::{ArchivedVec, VecResolver},
with::{ArchiveWith, DeserializeWith, SerializeWith},
Archive, Deserialize, Fallible, Infallible, Serialize,
@djkoloski
djkoloski / aligned_serializer.rs
Created April 6, 2021 17:32
Aligned serializer for emplacement
pub struct AlignedSerializer {
inner: AlignedVec,
}
impl AlignedSerializer {
pub fn new() -> Self {
Self {
inner: AlignedVec::new(),
}
}
<?xml version="1.0" encoding="UTF-8"?>
<Layout version="1.6.1">
<Mode>Horizontal</Mode>
<X>78</X>
<Y>0</Y>
<VerticalWidth>342</VerticalWidth>
<VerticalHeight>315</VerticalHeight>
<HorizontalWidth>1719</HorizontalWidth>
<HorizontalHeight>45</HorizontalHeight>
<Settings>
install
cdrom
lang en_US.UTF-8
keyboard us
network --onboot yes --device eth0 --bootproto dhcp --noipv6
network --onboot yes --device eth1 --bootproto static --ip MachineConfig.internalIP --netmask 255.255.255.0
network --onboot yes --device eth2 --bootproto static --ip MachineConfig.internalIP --netmask 255.255.255.0
rootpw --iscrypted $6$.0EgXCh6xwtiRQNp$6cCQBRg3ND48P.ENJz7ise2saoDBSwWxAxI/Cb8Ced6ZYcj0A4M9ilEbNIJsScsKcIXhYWUlRn0aIzWuHNK/E.
firewall --service=ssh --service=http --service=https
authconfig --enableshadow --passalgo=sha512