about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-09-29 20:35:32 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-10-01 21:57:09 +1100
commit2369adc5d802f2d2d49b0dbd1cea7dc1fae3c4db (patch)
tree6a4056afbed2ed59b7c64c1166a9a7ec8d8ce001
parentddb742225ac76f38ea415f2b7cf1b727f9e0812d (diff)
downloadrust-2369adc5d802f2d2d49b0dbd1cea7dc1fae3c4db.tar.gz
rust-2369adc5d802f2d2d49b0dbd1cea7dc1fae3c4db.zip
Remove unnecessary `pub`s.
-rw-r--r--compiler/rustc_abi/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_abi/src/lib.rs b/compiler/rustc_abi/src/lib.rs
index 11aa94db777..31566c221cc 100644
--- a/compiler/rustc_abi/src/lib.rs
+++ b/compiler/rustc_abi/src/lib.rs
@@ -970,21 +970,21 @@ impl WrappingRange {
 
     /// Returns `self` with replaced `start`
     #[inline(always)]
-    pub fn with_start(mut self, start: u128) -> Self {
+    fn with_start(mut self, start: u128) -> Self {
         self.start = start;
         self
     }
 
     /// Returns `self` with replaced `end`
     #[inline(always)]
-    pub fn with_end(mut self, end: u128) -> Self {
+    fn with_end(mut self, end: u128) -> Self {
         self.end = end;
         self
     }
 
     /// Returns `true` if `size` completely fills the range.
     #[inline]
-    pub fn is_full_for(&self, size: Size) -> bool {
+    fn is_full_for(&self, size: Size) -> bool {
         let max_value = size.unsigned_int_max();
         debug_assert!(self.start <= max_value && self.end <= max_value);
         self.start == (self.end.wrapping_add(1) & max_value)