about summary refs log tree commit diff
path: root/compiler/rustc_session/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-10-26 22:26:12 +0200
committerGitHub <noreply@github.com>2023-10-26 22:26:12 +0200
commitc0b1c1aedf1f472fc5713f1334936c0873fb06af (patch)
treef8bff6b132c11f4ccd434d4d0ec493541f39cc45 /compiler/rustc_session/src/errors.rs
parent2656c987d6988c764a1b77a326096faff95979c3 (diff)
parent94ecabfc4eea1c58dfd412b00e4a518f0dc87431 (diff)
downloadrust-c0b1c1aedf1f472fc5713f1334936c0873fb06af.tar.gz
rust-c0b1c1aedf1f472fc5713f1334936c0873fb06af.zip
Rollup merge of #117243 - chfogelman:replace-not-swap-comment, r=thomcc
Explain implementation of mem::replace

This adds a comment to explain why `mem::replace` is not implemented in terms of `mem::swap` to prevent [naïfs like me](https://github.com/rust-lang/rust/pull/117189) from trying to "fix" it.
Diffstat (limited to 'compiler/rustc_session/src/errors.rs')
0 files changed, 0 insertions, 0 deletions