diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2020-10-29 17:05:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-29 17:05:28 +0100 |
| commit | 48c4afbf9c29880dd946067d1c9aee1e7f75834a (patch) | |
| tree | 4edb3ac88fd5324a1b070600afced7d02ac4134c /compiler/rustc_interface/src | |
| parent | a01e5f8c0dcf27462f93a174b179c0595eab3e43 (diff) | |
| parent | 1f6f917f73a4372f098e9b19560b5945be145dc3 (diff) | |
| download | rust-48c4afbf9c29880dd946067d1c9aee1e7f75834a.tar.gz rust-48c4afbf9c29880dd946067d1c9aee1e7f75834a.zip | |
Rollup merge of #78499 - SkiFire13:fix-string-retain, r=m-ou-se
Prevent String::retain from creating non-utf8 strings when abusing panic Fixes #78498 The idea is the same as `Vec::drain`, set the len to 0 so that nobody can observe the broken invariant if it escapes the function (in this case if `f` panics)
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions
