diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2017-11-26 22:43:56 +0100 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2017-11-26 22:45:28 +0100 |
| commit | 5e11c8fc2bae9f9453ef79fef012c46645a24986 (patch) | |
| tree | 503196764909b2e8034a3cee7ae6cacfc01505e3 /src/libcore | |
| parent | 71da1c21ebc79f19e749344c8b4e2c13f533872e (diff) | |
| download | rust-5e11c8fc2bae9f9453ef79fef012c46645a24986.tar.gz rust-5e11c8fc2bae9f9453ef79fef012c46645a24986.zip | |
Deprecate the Formatter::flags method, fix #46237
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/fmt/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libcore/fmt/mod.rs b/src/libcore/fmt/mod.rs index 897222747f5..660cd0d6dd1 100644 --- a/src/libcore/fmt/mod.rs +++ b/src/libcore/fmt/mod.rs @@ -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 |
