File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 26
26
- nightly
27
27
- 1.59
28
28
runs-on : ubuntu-latest
29
+ env :
30
+ # rustup prioritizes environment variables over rust-toolchain.toml files.
31
+ RUSTUP_TOOLCHAIN : ${{ matrix.rust }}
29
32
steps :
30
33
- uses : actions/checkout@v4
31
34
- uses : dtolnay/rust-toolchain@master
Original file line number Diff line number Diff line change @@ -193,7 +193,8 @@ impl<const MAX: usize> GlobalDescriptorTable<MAX> {
193
193
///
194
194
/// Panics if the GDT doesn't have enough free entries.
195
195
#[ inline]
196
- pub const fn append ( & mut self , entry : Descriptor ) -> SegmentSelector {
196
+ #[ rustversion:: attr( since( 1.83 ) , const ) ]
197
+ pub fn append ( & mut self , entry : Descriptor ) -> SegmentSelector {
197
198
let index = match entry {
198
199
Descriptor :: UserSegment ( value) => {
199
200
if self . len > self . table . len ( ) . saturating_sub ( 1 ) {
@@ -245,7 +246,8 @@ impl<const MAX: usize> GlobalDescriptorTable<MAX> {
245
246
}
246
247
247
248
#[ inline]
248
- const fn push ( & mut self , value : u64 ) -> usize {
249
+ #[ rustversion:: attr( since( 1.83 ) , const ) ]
250
+ fn push ( & mut self , value : u64 ) -> usize {
249
251
let index = self . len ;
250
252
self . table [ index] = Entry :: new ( value) ;
251
253
self . len += 1 ;
You can’t perform that action at this time.
0 commit comments