diff options
| author | Frank Steffahn <frank.steffahn@stu.uni-kiel.de> | 2021-08-22 12:41:53 +0200 |
|---|---|---|
| committer | Frank Steffahn <frank.steffahn@stu.uni-kiel.de> | 2021-08-24 02:28:38 +0200 |
| commit | 6248dbcf70fbae9cf6fda9e2b2ba55aeb5837b36 (patch) | |
| tree | cb6ab6faa1dcaef8261d33c3f02ea2df690ac8bb /compiler/rustc_data_structures/src | |
| parent | b823dc1bbd57c6525b2cc2420c87795a7264edb4 (diff) | |
| download | rust-6248dbcf70fbae9cf6fda9e2b2ba55aeb5837b36.tar.gz rust-6248dbcf70fbae9cf6fda9e2b2ba55aeb5837b36.zip | |
Also fix “a `OwningRef`”
Diffstat (limited to 'compiler/rustc_data_structures/src')
| -rw-r--r-- | compiler/rustc_data_structures/src/owning_ref/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/owning_ref/mod.rs b/compiler/rustc_data_structures/src/owning_ref/mod.rs index 4689a027895..e7397bf13ba 100644 --- a/compiler/rustc_data_structures/src/owning_ref/mod.rs +++ b/compiler/rustc_data_structures/src/owning_ref/mod.rs @@ -5,7 +5,7 @@ This crate provides the _owning reference_ types `OwningRef` and `OwningRefMut` that enables it to bundle a reference together with the owner of the data it points to. -This allows moving and dropping of a `OwningRef` without needing to recreate the reference. +This allows moving and dropping of an `OwningRef` without needing to recreate the reference. This can sometimes be useful because Rust borrowing rules normally prevent moving a type that has been moved from. For example, this kind of code gets rejected: |
