summary refs log tree commit diff
path: root/src/libcollections/fmt.rs
AgeCommit message (Collapse)AuthorLines
2016-03-12std: Clean out deprecated APIsAlex Crichton-4/+0
Removes all unstable and deprecated APIs prior to the 1.8 release. All APIs that are deprecated in the 1.8 release are sticking around for the rest of this cycle. Some notable changes are: * The `dynamic_lib` module was moved into `rustc_back` as the compiler still relies on a few bits and pieces. * The `DebugTuple` formatter now special-cases an empty struct name with only one field to append a trailing comma.
2016-03-06Fix typos - mismatching parentheses in commentsGökhan Karabulut-5/+5
2016-01-19Rollup merge of #30981 - boblehest:tmp, r=alexcrichtonManish Goregaokar-2/+2
Original: #30968 (My first PR was targeting the wrong branch)
2016-01-17Fix typo in std::fmt docsJørn Lode-2/+2
2016-01-16std: Stabilize APIs for the 1.7 releaseAlex Crichton-1/+5
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
2015-11-18Review fixesVadim Petrochenkov-1/+3
2015-11-18Add missing annotations and some testsVadim Petrochenkov-0/+8
2015-11-12libcollections: deny warnings in doctestsKevin Butler-1/+2
2015-09-28Use code formatting for code-relevant values in std::fmt docsCarol (Nichols || Goulding)-13/+13
Especially when documenting the use of `0`, since zero looks very similar to `O` in fonts not meant for displaying code. Other literal characters, traits, etc should also use code formatting. This change makes this documentation more internally consistent.
2015-08-28re-export debug builders in `std::fmt`Andrew Paseltiner-0/+1
2015-07-30Rollup merge of #27352 - nagisa:illegal-to-invalid-docs, r=steveklabnikManish Goregaokar-9/+11
r? @steveklabnik
2015-07-28Replace occurences of illegal in user facing docsSimonas Kazlauskas-9/+11
2015-07-27Show appropriate feature flags in docsSteve Klabnik-1/+1
2015-06-30fmt: Update docs and mention :#? pretty-printingUlrik Sverdrup-22/+23
2015-06-17Fallout in tests and docs from feature renamingsAlex Crichton-2/+1
2015-05-28remove references to IoResultSteve Klabnik-2/+2
This is now std::io::Result
2015-05-19fmt.rs: add note about lack of padding support for some typesParker Moore-0/+4
2015-04-30Clarify intention wrt integersSteve Klabnik-1/+1
Fixes #24767
2015-04-24Whoops, please tidySteve Klabnik-9/+9
2015-04-24Add examples by @pnkfelix to fmt precisionSteve Klabnik-5/+62
Fixes #24656
2015-04-21rollup merge of #24636: alexcrichton/remove-deprecatedAlex Crichton-4/+4
Conflicts: src/libcore/result.rs
2015-04-21std: Bring back f32::from_str_radix as an unstable APIAlex Crichton-4/+4
This API was exercised in a few tests and mirrors the `from_str_radix` functionality of the integer types.
2015-04-21rollup merge of #24651: tamird/old-referencesAlex Crichton-2/+0
r? @alexcrichton
2015-04-21Remove references to `old_{path,io}`Tamir Duberstein-2/+0
2015-04-21Auto merge of #24620 - pczarn:model-lexer-issues, r=cmrbors-2/+0
Fixes #15679 Fixes #15878 Fixes #15882 Closes #15883
2015-04-21Model lexer: Fix remaining issuesPiotr Czarnecki-2/+0
2015-04-20Update reference to old_io in fmt docsMatt Brubeck-1/+1
2015-04-16Call write_fmt directly to format an Arguments value.Ryan Prichard-1/+1
It's just as convenient, but it's much faster. Using write! requires an extra call to fmt::write and a extra dynamically dispatched call to Arguments' Display format function.
2015-03-30Document the effect of `#` on array formattingMatt Brubeck-6/+6
2015-03-23Add #![feature] attributes to doctestsBrian Anderson-0/+3
2015-03-20std: Remove old_io/old_path from the preludeAlex Crichton-3/+4
This commit removes the reexports of `old_io` traits as well as `old_path` types and traits from the prelude. This functionality is now all deprecated and needs to be removed to make way for other functionality like `Seek` in the `std::io` module (currently reexported as `NewSeek` in the io prelude). Closes #23377 Closes #23378
2015-03-19Document {:.*}Steve Klabnik-5/+12
Fixes #22927
2015-03-19Small formatting fixes to fmt.rsSteve Klabnik-22/+23
2015-03-17Rollup merge of #23329 - jbcrail:rm-syntax-highlight, r=sanxiynManish Goregaokar-1/+1
As suggested by @steveklabnik in #23254, I removed the redundant Rust syntax highlighting from the documentation.
2015-03-16extract libcollections tests into libcollectionstestJorge Aparicio-12/+0
2015-03-13Remove explicit syntax highlight from docs.Joseph Crail-1/+1
2015-03-11Example -> ExamplesSteve Klabnik-1/+1
This brings comments in line with https://github.com/rust-lang/rfcs/blob/master/text/0505-api-comment-conventions.md#using-markdown
2015-03-09doc: Fix extraneous as_slice()'s in docstringsRicho Healey-1/+1
2015-03-05Remove integer suffixes where the types in compiled code are identical.Eduard Burtescu-1/+1
2015-03-01Addresses rust-lang/rust#22646Leonids Maslovs-1/+1
Removes deprecated `{:08d}` format from the module documentation. `{:08}` should be used instead now.
2015-02-21Kill fmt::Show and fmt::String with fire!Simonas Kazlauskas-1/+1
Toss the tomatoes!
2015-02-18Remove `i`, `is`, `u`, or `us` suffixes that are not necessary.Niko Matsakis-4/+4
2015-02-17Auto merge of #22311 - lfairy:consistent-fmt, r=alexcrichtonbors-2/+2
This brings it in line with its namesake in `std::io`. [breaking-change] r? @aturon
2015-02-14Rename `fmt::Writer` to `fmt::Write`Chris Wong-2/+2
This brings it in line with its namesake in `std::io`. [breaking-change]
2015-02-13more int and cloned cleanup in collectionsAlexis-6/+6
2015-02-11rustc: Fix a number of stability lint holesAlex Crichton-1/+1
There are a number of holes that the stability lint did not previously cover, including: * Types * Bounds on type parameters on functions and impls * Where clauses * Imports * Patterns (structs and enums) These holes have all been fixed by overriding the `visit_path` function on the AST visitor instead of a few specialized cases. This change also necessitated a few stability changes: * The `collections::fmt` module is now stable (it was already supposed to be). * The `thread_local::imp::Key` type is now stable (it was already supposed to be). * The `std::rt::{begin_unwind, begin_unwind_fmt}` functions are now stable. These are required via the `panic!` macro. * The `std::old_io::stdio::{println, println_args}` functions are now stable. These are required by the `print!` and `println!` macros. * The `ops::{FnOnce, FnMut, Fn}` traits are now `#[stable]`. This is required to make bounds with these traits stable. Note that manual implementations of these traits are still gated by default, this stability only allows bounds such as `F: FnOnce()`. Additionally, the compiler now has special logic to ignore its own generated `__test` module for the `--test` harness in terms of stability. Closes #8962 Closes #16360 Closes #20327 [breaking-change]
2015-02-07Make std::fmt a simple re-export from collectionsKeegan McAllister-9/+401
2015-02-07Don't use std:: paths in syntax extensions when compiling a #![no_std] crateKeegan McAllister-0/+56
Fixes #16803. Fixes #14342. Fixes half of #21827 -- slice syntax is still broken.