Skip to content

Commit b0f43c5

Browse files
EliasHolzmanngitbot
authored and
gitbot
committed
Revert "Turned public+unstable+hidden functions into private functions"
See rust-lang#118159 (comment) for context. This reverts commit 62078df.
1 parent 48060cf commit b0f43c5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

core/src/fmt/mod.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,10 @@ impl FormattingOptions {
459459
Formatter { options: self, buf: write }
460460
}
461461

462+
#[doc(hidden)]
463+
#[unstable(feature = "fmt_internals", reason = "internal to standard library", issue = "none")]
462464
/// Flags for formatting
463-
fn flags(&mut self, flags: u32) {
465+
pub fn flags(&mut self, flags: u32) {
464466
self.sign = if flags & (1 << rt::Flag::SignPlus as u32) != 0 {
465467
Some(Sign::Plus)
466468
} else if flags & (1 << rt::Flag::SignMinus as u32) != 0 {
@@ -478,8 +480,10 @@ impl FormattingOptions {
478480
None
479481
};
480482
}
483+
#[doc(hidden)]
484+
#[unstable(feature = "fmt_internals", reason = "internal to standard library", issue = "none")]
481485
/// Flags for formatting
482-
fn get_flags(&self) -> u32 {
486+
pub fn get_flags(&self) -> u32 {
483487
<bool as Into<u32>>::into(self.get_sign() == Some(Sign::Plus)) << rt::Flag::SignPlus as u32
484488
| <bool as Into<u32>>::into(self.get_sign() == Some(Sign::Minus))
485489
<< rt::Flag::SignMinus as u32

0 commit comments

Comments
 (0)