diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2021-01-12 16:13:31 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-12 16:13:31 +0900 |
| commit | 961a4386cd2c7dff31b9ab0cdbd33b98195a1e9f (patch) | |
| tree | 68ae4755830b4f832a4f4e61e1756fe0305a4f05 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | a9e3125f13aaf691e507f22e144f51050fa1f291 (diff) | |
| parent | 0be9d39336d8ec775d7effe12b91bf2e51bb7a85 (diff) | |
| download | rust-961a4386cd2c7dff31b9ab0cdbd33b98195a1e9f.tar.gz rust-961a4386cd2c7dff31b9ab0cdbd33b98195a1e9f.zip | |
Rollup merge of #80917 - epilys:patch-1, r=jyn514
core/slice: remove doc comment about scoped borrow There's no need to scope the borrow in the doc example due to NLL. [Playground link](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&code=fn%20main()%20%7B%0A%20%20%20%20let%20mut%20v%20%3D%20%5B1%2C%200%2C%203%2C%200%2C%205%2C%206%5D%3B%0A%0A%20%20%20%20let%20(left%2C%20right)%20%3D%20v.split_at_mut(2)%3B%0A%20%20%20%20assert_eq!(left%2C%20%5B1%2C%200%5D)%3B%0A%20%20%20%20assert_eq!(right%2C%20%5B3%2C%200%2C%205%2C%206%5D)%3B%0A%20%20%20%20left%5B1%5D%20%3D%202%3B%0A%20%20%20%20right%5B1%5D%20%3D%204%3B%0A%0A%20%20%20%20assert_eq!(v%2C%20%5B1%2C%202%2C%203%2C%204%2C%205%2C%206%5D)%3B%0A%7D%0A) where changed code compiles
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
