Skip to content

Commit

Permalink
Auto merge of #46284 - SimonSapin:deprecate-formatter-flags, r=sfackler
Browse files Browse the repository at this point in the history
Deprecate the Formatter::flags method, fix #46237

This fixes #46237.
  • Loading branch information
bors committed Nov 27, 2017
2 parents 73df30d + 5e11c8f commit 8270faf
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 8270faf

Please sign in to comment.