diff options
| author | Niv Kaminer <nivkner@zoho.com> | 2018-08-18 12:52:38 +0300 |
|---|---|---|
| committer | Niv Kaminer <nivkner@zoho.com> | 2018-08-23 02:13:01 +0300 |
| commit | 6b47a6105c69c018792f07ae9d472b478a45bed9 (patch) | |
| tree | 1b813e517cf452ce5399006caed7be66301aa04a /src/liballoc | |
| parent | 8e9aad268ef0994a2edfb77b33cffc4d5a220970 (diff) | |
| download | rust-6b47a6105c69c018792f07ae9d472b478a45bed9.tar.gz rust-6b47a6105c69c018792f07ae9d472b478a45bed9.zip | |
allow unused mut for pinning explanation
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/pin.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liballoc/pin.rs b/src/liballoc/pin.rs index 8cb57ade865..f7c804b2aba 100644 --- a/src/liballoc/pin.rs +++ b/src/liballoc/pin.rs @@ -77,6 +77,7 @@ //! // The pointer should point to the correct location, //! // so long as the struct hasn't moved. //! // Meanwhile, we are free to move the pointer around. +//! # #[allow(unused_mut)] //! let mut still_unmoved = unmoved; //! assert_eq!(still_unmoved.slice, NonNull::from(&still_unmoved.data)); //! |
