Don't pass reference to mutable slice Upstream-commit: 95510551cea4a1211070ecdc5f1319f5aa2c9a7c Component: engine