Skip to content

Commit

Permalink
Deprecate the Formatter::flags method, fix #46237
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Nov 26, 2017
1 parent 71da1c2 commit 5e11c8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libcore/fmt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1305,6 +1305,9 @@ impl<'a> Formatter<'a> {

/// Flags for formatting
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_deprecated(since = "1.24.0",
reason = "use the `sign_plus`, `sign_minus`, `alternate`, \
or `sign_aware_zero_pad` methods instead")]
pub fn flags(&self) -> u32 { self.flags }

/// Character used as 'fill' whenever there is alignment
Expand Down

0 comments on commit 5e11c8f

Please sign in to comment.