diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2018-07-26 15:03:49 +0200 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2018-07-30 18:18:23 +0200 |
| commit | 4ca77f702f813332defe15a0aa73707628bf592e (patch) | |
| tree | 9720df5b626870e9f4ef23fed70fe802acfa0fc9 /src/libstd/io/cursor.rs | |
| parent | d8b3c830fbcdd14d085209a8dcc3399151f3286a (diff) | |
| download | rust-4ca77f702f813332defe15a0aa73707628bf592e.tar.gz rust-4ca77f702f813332defe15a0aa73707628bf592e.zip | |
Remove unstable and deprecated APIs
Diffstat (limited to 'src/libstd/io/cursor.rs')
| -rw-r--r-- | src/libstd/io/cursor.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/libstd/io/cursor.rs b/src/libstd/io/cursor.rs index 3622df16b9d..14f20151dca 100644 --- a/src/libstd/io/cursor.rs +++ b/src/libstd/io/cursor.rs @@ -551,26 +551,6 @@ mod tests { } #[test] - #[allow(deprecated)] - fn test_read_char() { - let b = &b"Vi\xE1\xBB\x87t"[..]; - let mut c = Cursor::new(b).chars(); - assert_eq!(c.next().unwrap().unwrap(), 'V'); - assert_eq!(c.next().unwrap().unwrap(), 'i'); - assert_eq!(c.next().unwrap().unwrap(), 'ệ'); - assert_eq!(c.next().unwrap().unwrap(), 't'); - assert!(c.next().is_none()); - } - - #[test] - #[allow(deprecated)] - fn test_read_bad_char() { - let b = &b"\x80"[..]; - let mut c = Cursor::new(b).chars(); - assert!(c.next().unwrap().is_err()); - } - - #[test] fn seek_past_end() { let buf = [0xff]; let mut r = Cursor::new(&buf[..]); |
