Skip to content

Commit 2369adc

Browse files
committed
Remove unnecessary pubs.
1 parent ddb7422 commit 2369adc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_abi/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -970,21 +970,21 @@ impl WrappingRange {
970970

971971
/// Returns `self` with replaced `start`
972972
#[inline(always)]
973-
pub fn with_start(mut self, start: u128) -> Self {
973+
fn with_start(mut self, start: u128) -> Self {
974974
self.start = start;
975975
self
976976
}
977977

978978
/// Returns `self` with replaced `end`
979979
#[inline(always)]
980-
pub fn with_end(mut self, end: u128) -> Self {
980+
fn with_end(mut self, end: u128) -> Self {
981981
self.end = end;
982982
self
983983
}
984984

985985
/// Returns `true` if `size` completely fills the range.
986986
#[inline]
987-
pub fn is_full_for(&self, size: Size) -> bool {
987+
fn is_full_for(&self, size: Size) -> bool {
988988
let max_value = size.unsigned_int_max();
989989
debug_assert!(self.start <= max_value && self.end <= max_value);
990990
self.start == (self.end.wrapping_add(1) & max_value)

0 commit comments

Comments
 (0)