diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-02-20 22:12:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-20 22:12:19 +0100 |
| commit | 02842d4f69e75ab32488800c4435b9ab5bfdb62e (patch) | |
| tree | 6b00c00171b583f291d6c6b118fca1fe6897b55b | |
| parent | 7022ae4f8c5df525e7dc3912dd56bd2565d47794 (diff) | |
| parent | 255eb217e9f5eeb72fc0f10386c2d55f37b10bc8 (diff) | |
Rollup merge of #108257 - fee1-dead-contrib:fixme-1, r=tmiasko
Remove old FIXME that no longer applies it looks like Encodable was fallible at some point, but that was changed which means that this FIXME is no longer applicable
| -rw-r--r-- | compiler/rustc_serialize/src/serialize.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_serialize/src/serialize.rs b/compiler/rustc_serialize/src/serialize.rs index 751b209f11a..377c364961b 100644 --- a/compiler/rustc_serialize/src/serialize.rs +++ b/compiler/rustc_serialize/src/serialize.rs @@ -430,11 +430,6 @@ impl<D: Decoder, T: Decodable<D> + Copy> Decodable<D> for Cell<T> { } } -// FIXME: #15036 -// Should use `try_borrow`, returning an -// `encoder.error("attempting to Encode borrowed RefCell")` -// from `encode` when `try_borrow` returns `None`. - impl<S: Encoder, T: Encodable<S>> Encodable<S> for RefCell<T> { fn encode(&self, s: &mut S) { self.borrow().encode(s); |
