about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2020-10-15 21:45:09 +0200
committerGitHub <noreply@github.com>2020-10-15 21:45:09 +0200
commitdf95dcebf5f98cefdc60c9b9d818fb285ac07d5b (patch)
treef8fddd3d446522efd8a21b882efca2f7b7005dfb
parentf83446b836900ce9afbaa0816a5b4feda654b51e (diff)
downloadrust-df95dcebf5f98cefdc60c9b9d818fb285ac07d5b.tar.gz
rust-df95dcebf5f98cefdc60c9b9d818fb285ac07d5b.zip
Add missing `mut`.
Co-authored-by: David Tolnay <dtolnay@gmail.com>
-rw-r--r--library/core/src/pin.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/pin.rs b/library/core/src/pin.rs
index 633e96eb7d8..b73cd046e5a 100644
--- a/library/core/src/pin.rs
+++ b/library/core/src/pin.rs
@@ -795,7 +795,7 @@ impl<T: ?Sized> Pin<&'static T> {
     }
 }
 
-impl<T: ?Sized> Pin<&'static T> {
+impl<T: ?Sized> Pin<&'static mut T> {
     /// Get a pinned mutable reference from a static mutable reference.
     ///
     /// This is safe, because `T` is borrowed for the `'static` lifetime, which