about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-09-19 11:47:47 +0200
committerGitHub <noreply@github.com>2020-09-19 11:47:47 +0200
commit46bb884cf3c698ed231d2521fe5a19ee0b8a5e55 (patch)
tree2532a205ff8dbadbcbb933f26350d4e4f8e886ca /compiler/rustc_codegen_llvm/src
parentfef332404341e89e4fe09416d01d82a99f7e8c5f (diff)
parent15eb638dc9c9f663ab9e596a838c33821ae7f772 (diff)
downloadrust-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