1. 05 3月, 2016 1 次提交
  2. 18 2月, 2016 1 次提交
  3. 09 2月, 2016 2 次提交
    • K
      Implement fmt::Pointer for pointers to unsized types · c5f73ed8
      Kamal Marhubi 提交于
      This allows printing pointers to unsized types with the {:p} formatting
      directive. The following impls are extended to unsized types:
       - impl<'a, T: ?Sized> Pointer for &'a T
       - impl<'a, T: ?Sized> Pointer for &'a mut T
       - impl<T: ?Sized> Pointer for *const T
       - impl<T: ?Sized> Pointer for *mut T
       - impl<T: ?Sized> fmt::Pointer for Box<T>
       - impl<T: ?Sized> fmt::Pointer for Rc<T>
       - impl<T: ?Sized> fmt::Pointer for Arc<T>
      c5f73ed8
    • A
      Remove old #[allow(trivial_casts)] annotations · 696a1da8
      Alex Crichton 提交于
      These were added a long time ago but we long since switched the lint back to
      allow-by-default, so these annotations shouldn't be necessary.
      696a1da8
  4. 17 1月, 2016 1 次提交
    • A
      std: Stabilize APIs for the 1.7 release · 9a4f43b9
      Alex Crichton 提交于
      This commit stabilizes and deprecates the FCP (final comment period) APIs for
      the upcoming 1.7 beta release. The specific APIs which changed were:
      
      Stabilized
      
      * `Path::strip_prefix` (renamed from `relative_from`)
      * `path::StripPrefixError` (new error type returned from `strip_prefix`)
      * `Ipv4Addr::is_loopback`
      * `Ipv4Addr::is_private`
      * `Ipv4Addr::is_link_local`
      * `Ipv4Addr::is_multicast`
      * `Ipv4Addr::is_broadcast`
      * `Ipv4Addr::is_documentation`
      * `Ipv6Addr::is_unspecified`
      * `Ipv6Addr::is_loopback`
      * `Ipv6Addr::is_unique_local`
      * `Ipv6Addr::is_multicast`
      * `Vec::as_slice`
      * `Vec::as_mut_slice`
      * `String::as_str`
      * `String::as_mut_str`
      * `<[T]>::clone_from_slice` - the `usize` return value is removed
      * `<[T]>::sort_by_key`
      * `i32::checked_rem` (and other signed types)
      * `i32::checked_neg` (and other signed types)
      * `i32::checked_shl` (and other signed types)
      * `i32::checked_shr` (and other signed types)
      * `i32::saturating_mul` (and other signed types)
      * `i32::overflowing_add` (and other signed types)
      * `i32::overflowing_sub` (and other signed types)
      * `i32::overflowing_mul` (and other signed types)
      * `i32::overflowing_div` (and other signed types)
      * `i32::overflowing_rem` (and other signed types)
      * `i32::overflowing_neg` (and other signed types)
      * `i32::overflowing_shl` (and other signed types)
      * `i32::overflowing_shr` (and other signed types)
      * `u32::checked_rem` (and other unsigned types)
      * `u32::checked_neg` (and other unsigned types)
      * `u32::checked_shl` (and other unsigned types)
      * `u32::saturating_mul` (and other unsigned types)
      * `u32::overflowing_add` (and other unsigned types)
      * `u32::overflowing_sub` (and other unsigned types)
      * `u32::overflowing_mul` (and other unsigned types)
      * `u32::overflowing_div` (and other unsigned types)
      * `u32::overflowing_rem` (and other unsigned types)
      * `u32::overflowing_neg` (and other unsigned types)
      * `u32::overflowing_shl` (and other unsigned types)
      * `u32::overflowing_shr` (and other unsigned types)
      * `ffi::IntoStringError`
      * `CString::into_string`
      * `CString::into_bytes`
      * `CString::into_bytes_with_nul`
      * `From<CString> for Vec<u8>`
      * `From<CString> for Vec<u8>`
      * `IntoStringError::into_cstring`
      * `IntoStringError::utf8_error`
      * `Error for IntoStringError`
      
      Deprecated
      
      * `Path::relative_from` - renamed to `strip_prefix`
      * `Path::prefix` - use `components().next()` instead
      * `os::unix::fs` constants - moved to the `libc` crate
      * `fmt::{radix, Radix, RadixFmt}` - not used enough to stabilize
      * `IntoCow` - conflicts with `Into` and may come back later
      * `i32::{BITS, BYTES}` (and other integers) - not pulling their weight
      * `DebugTuple::formatter` - will be removed
      * `sync::Semaphore` - not used enough and confused with system semaphores
      
      Closes #23284
      cc #27709 (still lots more methods though)
      Closes #27712
      Closes #27722
      Closes #27728
      Closes #27735
      Closes #27729
      Closes #27755
      Closes #27782
      Closes #27798
      9a4f43b9
  5. 15 1月, 2016 1 次提交
  6. 12 1月, 2016 1 次提交
  7. 24 12月, 2015 1 次提交
  8. 06 12月, 2015 1 次提交
    • A
      std: Stabilize APIs for the 1.6 release · 464cdff1
      Alex Crichton 提交于
      This commit is the standard API stabilization commit for the 1.6 release cycle.
      The list of issues and APIs below have all been through their cycle-long FCP and
      the libs team decisions are listed below
      
      Stabilized APIs
      
      * `Read::read_exact`
      * `ErrorKind::UnexpectedEof` (renamed from `UnexpectedEOF`)
      * libcore -- this was a bit of a nuanced stabilization, the crate itself is now
        marked as `#[stable]` and the methods appearing via traits for primitives like
        `char` and `str` are now also marked as stable. Note that the extension traits
        themeselves are marked as unstable as they're imported via the prelude. The
        `try!` macro was also moved from the standard library into libcore to have the
        same interface. Otherwise the functions all have copied stability from the
        standard library now.
      * The `#![no_std]` attribute
      * `fs::DirBuilder`
      * `fs::DirBuilder::new`
      * `fs::DirBuilder::recursive`
      * `fs::DirBuilder::create`
      * `os::unix::fs::DirBuilderExt`
      * `os::unix::fs::DirBuilderExt::mode`
      * `vec::Drain`
      * `vec::Vec::drain`
      * `string::Drain`
      * `string::String::drain`
      * `vec_deque::Drain`
      * `vec_deque::VecDeque::drain`
      * `collections::hash_map::Drain`
      * `collections::hash_map::HashMap::drain`
      * `collections::hash_set::Drain`
      * `collections::hash_set::HashSet::drain`
      * `collections::binary_heap::Drain`
      * `collections::binary_heap::BinaryHeap::drain`
      * `Vec::extend_from_slice` (renamed from `push_all`)
      * `Mutex::get_mut`
      * `Mutex::into_inner`
      * `RwLock::get_mut`
      * `RwLock::into_inner`
      * `Iterator::min_by_key` (renamed from `min_by`)
      * `Iterator::max_by_key` (renamed from `max_by`)
      
      Deprecated APIs
      
      * `ErrorKind::UnexpectedEOF` (renamed to `UnexpectedEof`)
      * `OsString::from_bytes`
      * `OsStr::to_cstring`
      * `OsStr::to_bytes`
      * `fs::walk_dir` and `fs::WalkDir`
      * `path::Components::peek`
      * `slice::bytes::MutableByteVector`
      * `slice::bytes::copy_memory`
      * `Vec::push_all` (renamed to `extend_from_slice`)
      * `Duration::span`
      * `IpAddr`
      * `SocketAddr::ip`
      * `Read::tee`
      * `io::Tee`
      * `Write::broadcast`
      * `io::Broadcast`
      * `Iterator::min_by` (renamed to `min_by_key`)
      * `Iterator::max_by` (renamed to `max_by_key`)
      * `net::lookup_addr`
      
      New APIs (still unstable)
      
      * `<[T]>::sort_by_key` (added to mirror `min_by_key`)
      
      Closes #27585
      Closes #27704
      Closes #27707
      Closes #27710
      Closes #27711
      Closes #27727
      Closes #27740
      Closes #27744
      Closes #27799
      Closes #27801
      cc #27801 (doesn't close as `Chars` is still unstable)
      Closes #28968
      464cdff1
  9. 18 11月, 2015 2 次提交
  10. 17 11月, 2015 1 次提交
  11. 13 11月, 2015 1 次提交
  12. 26 10月, 2015 1 次提交
    • A
      std: Stabilize library APIs for 1.5 · ff497332
      Alex Crichton 提交于
      This commit stabilizes and deprecates library APIs whose FCP has closed in the
      last cycle, specifically:
      
      Stabilized APIs:
      
      * `fs::canonicalize`
      * `Path::{metadata, symlink_metadata, canonicalize, read_link, read_dir, exists,
         is_file, is_dir}` - all moved to inherent methods from the `PathExt` trait.
      * `Formatter::fill`
      * `Formatter::width`
      * `Formatter::precision`
      * `Formatter::sign_plus`
      * `Formatter::sign_minus`
      * `Formatter::alternate`
      * `Formatter::sign_aware_zero_pad`
      * `string::ParseError`
      * `Utf8Error::valid_up_to`
      * `Iterator::{cmp, partial_cmp, eq, ne, lt, le, gt, ge}`
      * `<[T]>::split_{first,last}{,_mut}`
      * `Condvar::wait_timeout` - note that `wait_timeout_ms` is not yet deprecated
        but will be once 1.5 is released.
      * `str::{R,}MatchIndices`
      * `str::{r,}match_indices`
      * `char::from_u32_unchecked`
      * `VecDeque::insert`
      * `VecDeque::shrink_to_fit`
      * `VecDeque::as_slices`
      * `VecDeque::as_mut_slices`
      * `VecDeque::swap_remove_front` - (renamed from `swap_front_remove`)
      * `VecDeque::swap_remove_back` - (renamed from `swap_back_remove`)
      * `Vec::resize`
      * `str::slice_mut_unchecked`
      * `FileTypeExt`
      * `FileTypeExt::{is_block_device, is_char_device, is_fifo, is_socket}`
      * `BinaryHeap::from` - `from_vec` deprecated in favor of this
      * `BinaryHeap::into_vec` - plus a `Into` impl
      * `BinaryHeap::into_sorted_vec`
      
      Deprecated APIs
      
      * `slice::ref_slice`
      * `slice::mut_ref_slice`
      * `iter::{range_inclusive, RangeInclusive}`
      * `std::dynamic_lib`
      
      Closes #27706
      Closes #27725
      cc #27726 (align not stabilized yet)
      Closes #27734
      Closes #27737
      Closes #27742
      Closes #27743
      Closes #27772
      Closes #27774
      Closes #27777
      Closes #27781
      cc #27788 (a few remaining methods though)
      Closes #27790
      Closes #27793
      Closes #27796
      Closes #27810
      cc #28147 (not all parts stabilized)
      ff497332
  13. 13 10月, 2015 1 次提交
  14. 02 10月, 2015 1 次提交
  15. 01 10月, 2015 2 次提交
  16. 30 9月, 2015 1 次提交
  17. 29 9月, 2015 1 次提交
  18. 24 9月, 2015 1 次提交
  19. 13 9月, 2015 1 次提交
  20. 16 8月, 2015 1 次提交
  21. 15 8月, 2015 1 次提交
  22. 10 8月, 2015 1 次提交
    • T
      Replace many uses of `mem::transmute` with more specific functions · 22ec5f4a
      Tobias Bucher 提交于
      The replacements are functions that usually use a single `mem::transmute` in
      their body and restrict input and output via more concrete types than `T` and
      `U`. Worth noting are the `transmute` functions for slices and the `from_utf8*`
      family for mutable slices. Additionally, `mem::transmute` was often used for
      casting raw pointers, when you can already cast raw pointers just fine with
      `as`.
      22ec5f4a
  23. 04 8月, 2015 1 次提交
    • A
      syntax: Implement #![no_core] · 5cccf3cd
      Alex Crichton 提交于
      This commit is an implementation of [RFC 1184][rfc] which tweaks the behavior of
      the `#![no_std]` attribute and adds a new `#![no_core]` attribute. The
      `#![no_std]` attribute now injects `extern crate core` at the top of the crate
      as well as the libcore prelude into all modules (in the same manner as the
      standard library's prelude). The `#![no_core]` attribute disables both std and
      core injection.
      
      [rfc]: https://github.com/rust-lang/rfcs/pull/1184
      5cccf3cd
  24. 28 7月, 2015 1 次提交
  25. 11 7月, 2015 1 次提交
  26. 09 7月, 2015 2 次提交
  27. 07 7月, 2015 1 次提交
    • S
      Significantly improve formatter trait docs · 3a6cd649
      Steve Klabnik 提交于
      Each formatting trait now has an example of implementation, as well as a
      fuller description of what it's supposed to output.
      
      It also contains a link to the module-level documentation which
      
      Fixes #25765
      3a6cd649
  28. 01 7月, 2015 1 次提交
  29. 30 6月, 2015 1 次提交
  30. 18 6月, 2015 1 次提交
    • A
      core: Split apart the global `core` feature · c14d86fd
      Alex Crichton 提交于
      This commit shards the broad `core` feature of the libcore library into finer
      grained features. This split groups together similar APIs and enables tracking
      each API separately, giving a better sense of where each feature is within the
      stabilization process.
      
      A few minor APIs were deprecated along the way:
      
      * Iterator::reverse_in_place
      * marker::NoCopy
      c14d86fd
  31. 14 6月, 2015 1 次提交
  32. 11 6月, 2015 2 次提交
  33. 29 5月, 2015 1 次提交
  34. 20 5月, 2015 1 次提交
  35. 19 5月, 2015 1 次提交