C pointer slices are no longer allowzero (#4462)

* Slices from C pointers are no longer allowzero but instead insert a runtime assertion.

* Added a test, fixed code for cases with non-allowzero C pointers

* Create new type when flipping allow_zero, sometimes we get a cached value back from adjust_ptr_len.

* Added comments, changed panic message

* Added runtime safety test.
1b41f2d77eAlexandros Naskos committed on 2/29/2020, 6:36:42 AM· committed by GitHubparenta5a53a1
4 files changedLine totals unavailable