]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #97569 - thomcc:fill_with_isnt_memset, r=Amanieu
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Tue, 31 May 2022 05:57:37 +0000 (07:57 +0200)
committerGitHub <noreply@github.com>
Tue, 31 May 2022 05:57:37 +0000 (07:57 +0200)
commitefd2519e10e05ddeddc2bee7ed3819fcf6c69ef0
tree45da1d36f63d9b2c823bdd25903ce3f020321e99
parent5885e6d45358139d74c8b2a52df01708fac6bbc8
parentde3ac3c3f84672f6a7b930272e556609750d91b1
Rollup merge of #97569 - thomcc:fill_with_isnt_memset, r=Amanieu

Remove `memset` alias from `fill_with`.

In https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/Unsafe.20and.20Safe.20versions.20of.20APIs.20both.20getting.20the.20same.20alias/near/284413029 `@Amanieu` pointed out that we had this, which is not really right.

In our guidelines we say that we will "not add an alias for a function that's only somewhat similar or related", which applies here. Memset doesn't take a closure, not even conceptually.