diff options
| author | Ralf Jung <post@ralfj.de> | 2020-09-19 11:47:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-19 11:47:47 +0200 |
| commit | 46bb884cf3c698ed231d2521fe5a19ee0b8a5e55 (patch) | |
| tree | 2532a205ff8dbadbcbb933f26350d4e4f8e886ca /compiler/rustc_codegen_llvm/src | |
| parent | fef332404341e89e4fe09416d01d82a99f7e8c5f (diff) | |
| parent | 15eb638dc9c9f663ab9e596a838c33821ae7f772 (diff) | |
| download | rust-46bb884cf3c698ed231d2521fe5a19ee0b8a5e55.tar.gz rust-46bb884cf3c698ed231d2521fe5a19ee0b8a5e55.zip | |
Rollup merge of #76525 - fusion-engineering-forks:string-drain, r=dtolnay
Add as_str() to string::Drain.
Vec's Drain recently [had its `.as_slice()` stabilized](https://github.com/rust-lang/rust/pull/72584), but String's Drain was still missing the analogous `.as_str()`. This adds that.
Also improves the Debug implementation, which now shows the remaining data instead of just `"Drain { .. }"`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
