]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #64996 - lzutao:inline-ptr-null, r=oli-obk
authorMazdak Farrokhzad <twingoow@gmail.com>
Sun, 20 Oct 2019 10:40:15 +0000 (12:40 +0200)
committerGitHub <noreply@github.com>
Sun, 20 Oct 2019 10:40:15 +0000 (12:40 +0200)
commitf01ffbc7f14c5e80c130d679e99c3507591e4bab
treeb99009d35d372e0a4b6007e4be1a5dec035772f9
parent7bf377f289a4f79829309ed69dccfe33f20b089c
parentd0862ec9b0c4107b773dcb0197f1877468ce14ad
Rollup merge of #64996 - lzutao:inline-ptr-null, r=oli-obk

Inline `ptr::null(_mut)` even in debug builds

I think we should treat `ptr::null(_mut)` as a constant. As It may help reduce code size
in debug build.
link: https://godbolt.org/z/b9YMtD