rollup merge of #19520: csouth3/derefmut-unsized

Right now, `DerefMut` is not `for Sized?`, so you can't impl `DerefMut<T> for Foo` where `Foo` is unsized.  However, there is no reason that it can't be `for Sized?`, so this pull request fixes the issue.

Closes #19493.
This commit is contained in:
Corey Richardson
2014-12-05 10:07:47 -08:00
+1 -1
View File
@@ -787,7 +787,7 @@ fn deref(&self) -> &T { *self }
/// }
/// ```
#[lang="deref_mut"]
pub trait DerefMut<Sized? Result>: Deref<Result> {
pub trait DerefMut<Sized? Result> for Sized? : Deref<Result> {
/// The method called to mutably dereference a value
fn deref_mut<'a>(&'a mut self) -> &'a mut Result;
}