diff options
| author | Corey Richardson <corey@octayn.net> | 2014-12-05 10:07:47 -0800 |
|---|---|---|
| committer | Corey Richardson <corey@octayn.net> | 2014-12-05 10:07:47 -0800 |
| commit | c7d545e2f7d3604a7a3f33cebb0695bfcbea5d8b (patch) | |
| tree | 3b4b9ddf458f124703edbbb842c907871a189663 /src | |
| parent | d58aecb6b32bbedce22fa9dad36c4aa669f28cba (diff) | |
| parent | cddbb6a75bd4618e6e136e7ec5140b95899ad70b (diff) | |
| download | rust-c7d545e2f7d3604a7a3f33cebb0695bfcbea5d8b.tar.gz rust-c7d545e2f7d3604a7a3f33cebb0695bfcbea5d8b.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/ops.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index 4f4ec486797..fdc8b9e7400 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -787,7 +787,7 @@ impl<'a, Sized? T> Deref<T> for &'a mut T { /// } /// ``` #[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; } |
