@@ -77,6 +77,7 @@ impl<S: PageSize> Page<S> {
7777 Ok ( Page :: containing_address ( address) )
7878 }
7979
80+ // TODO: Remove const_fn! when our minimum supported stable Rust version is 1.61
8081 const_fn ! {
8182 /// Returns the page that starts at the given virtual address.
8283 ///
@@ -101,6 +102,7 @@ impl<S: PageSize> Page<S> {
101102 }
102103 }
103104
105+ // TODO: Remove const_fn! when our minimum supported stable Rust version is 1.61
104106 const_fn ! {
105107 /// Returns the start address of the page.
106108 #[ inline]
@@ -109,6 +111,7 @@ impl<S: PageSize> Page<S> {
109111 }
110112 }
111113
114+ // TODO: Remove const_fn! when our minimum supported stable Rust version is 1.61
112115 const_fn ! {
113116 /// Returns the size the page (4KB, 2MB or 1GB).
114117 #[ inline]
@@ -117,6 +120,7 @@ impl<S: PageSize> Page<S> {
117120 }
118121 }
119122
123+ // TODO: Remove const_fn! when our minimum supported stable Rust version is 1.61
120124 const_fn ! {
121125 /// Returns the level 4 page table index of this page.
122126 #[ inline]
@@ -125,6 +129,7 @@ impl<S: PageSize> Page<S> {
125129 }
126130 }
127131
132+ // TODO: Remove const_fn! when our minimum supported stable Rust version is 1.61
128133 const_fn ! {
129134 /// Returns the level 3 page table index of this page.
130135 #[ inline]
@@ -133,6 +138,7 @@ impl<S: PageSize> Page<S> {
133138 }
134139 }
135140
141+ // TODO: Remove const_fn! when our minimum supported stable Rust version is 1.61
136142 const_fn ! {
137143 /// Returns the table index of this page at the specified level.
138144 #[ inline]
@@ -141,6 +147,7 @@ impl<S: PageSize> Page<S> {
141147 }
142148 }
143149
150+ // TODO: Remove const_fn! when our minimum supported stable Rust version is 1.61
144151 const_fn ! {
145152 /// Returns a range of pages, exclusive `end`.
146153 #[ inline]
@@ -149,6 +156,7 @@ impl<S: PageSize> Page<S> {
149156 }
150157 }
151158
159+ // TODO: Remove const_fn! when our minimum supported stable Rust version is 1.61
152160 const_fn ! {
153161 /// Returns a range of pages, inclusive `end`.
154162 #[ inline]
@@ -159,6 +167,7 @@ impl<S: PageSize> Page<S> {
159167}
160168
161169impl < S : NotGiantPageSize > Page < S > {
170+ // TODO: Remove const_fn! when our minimum supported stable Rust version is 1.61
162171 const_fn ! {
163172 /// Returns the level 2 page table index of this page.
164173 #[ inline]
0 commit comments