Skip to content

Commit 255eb21

Browse files
committed
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
1 parent 96834f0 commit 255eb21

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

compiler/rustc_serialize/src/serialize.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -430,11 +430,6 @@ impl<D: Decoder, T: Decodable<D> + Copy> Decodable<D> for Cell<T> {
430430
}
431431
}
432432

433-
// FIXME: #15036
434-
// Should use `try_borrow`, returning an
435-
// `encoder.error("attempting to Encode borrowed RefCell")`
436-
// from `encode` when `try_borrow` returns `None`.
437-
438433
impl<S: Encoder, T: Encodable<S>> Encodable<S> for RefCell<T> {
439434
fn encode(&self, s: &mut S) {
440435
self.borrow().encode(s);

0 commit comments

Comments
 (0)