From 255eb217e9f5eeb72fc0f10386c2d55f37b10bc8 Mon Sep 17 00:00:00 2001 From: Deadbeef Date: Mon, 20 Feb 2023 06:26:28 +0000 Subject: [PATCH] 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 --- compiler/rustc_serialize/src/serialize.rs | 5 ----- 1 file changed, 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 + Copy> Decodable for Cell { } } -// FIXME: #15036 -// Should use `try_borrow`, returning an -// `encoder.error("attempting to Encode borrowed RefCell")` -// from `encode` when `try_borrow` returns `None`. - impl> Encodable for RefCell { fn encode(&self, s: &mut S) { self.borrow().encode(s);