From e2807a4565575c6a08a2a65c76ee37bf3f48c841 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Thu, 19 Sep 2013 15:04:03 +1000 Subject: Replace unreachable() calls with unreachable!(). This is the second of two parts of #8991, now possible as a new snapshot has been made. (The first part implemented the unreachable!() macro; it was #8992, 6b7b8f2682.) ``std::util::unreachable()`` is removed summarily; any code which used it should now use the ``unreachable!()`` macro. Closes #9312. Closes #8991. --- src/libstd/rt/io/extensions.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libstd/rt') diff --git a/src/libstd/rt/io/extensions.rs b/src/libstd/rt/io/extensions.rs index 1c48d6e7f1e..99634b532b0 100644 --- a/src/libstd/rt/io/extensions.rs +++ b/src/libstd/rt/io/extensions.rs @@ -21,7 +21,6 @@ use rt::io::{Reader, Writer, Decorator}; use rt::io::{read_error, standard_error, EndOfFile, DEFAULT_BUF_SIZE}; use option::{Option, Some, None}; use unstable::finally::Finally; -use util; use cast; use io::{u64_to_le_bytes, u64_to_be_bytes}; @@ -293,7 +292,7 @@ impl ReaderUtil for T { self.read_byte() } Some(1) => Some(buf[0]), - Some(_) => util::unreachable(), + Some(_) => unreachable!(), None => None } } -- cgit 1.4.1-3-g733a5