22:34:21
2017-12-06 16:58:14 らりお (進捗垢)の投稿 loliconductor@mastodon.cardina1.red
icon

このアカウントは、notestockで公開設定になっていません。

22:34:48
icon

Transmutes -
doc.rust-lang.org/nomicon/tran
>Transmuting between non-repr(C) types is UB
なるほど

22:37:21
icon

まずいなあ。自分もRocketに実質的にtransmuteを含むコミットを投げてしまっているのだが……
Add conversion methods for `Box<UncasedStr>` by dmizuk · Pull Request #373 · SergioBenitez/Rocket
github.com/SergioBenitez/Rocke

Web site image
Add conversion methods for `Box` by tesaguri ?? Pull Request #373 ?? rwf2/Rocket
22:40:49
icon

UncasedStr::new is undefined behavior · Issue #494 · SergioBenitez/Rocket
github.com/SergioBenitez/Rocke
>Same thing for these transmutes, which all assume #[repr(C)].
>UncasedStr::into_uncased
>Uncased::into_boxed_uncased
あっ、とても申し訳ない

Web site image
UncasedStr::new is undefined behavior ?? Issue #494 ?? rwf2/Rocket