Skip to content

Commit 02842d4

Browse files
authored
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
2 parents 7022ae4 + 255eb21 commit 02842d4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

compiler/rustc_serialize/src/serialize.rs

-5
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)