Update for language changes

`~T` -> `Box<T>`, `~t` -> `box t`
Update for language changes