Skip to content

Commit 4735b0a

Browse files
committed
Update to the latest Rust nightly.
1 parent 22b397d commit 4735b0a

File tree

4 files changed

+2
-20
lines changed

4 files changed

+2
-20
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
My solutions for Advent of Code 2023. Written in Rust 🦀.
66

77
- Clone the repository.
8-
- Make sure you have a nightly version of Rust around December 2023.
8+
- Make sure you have a nightly version of Rust around January 2024.
99
- `cargo run --release` for all days, `cargo run --release -- NN` for a specific
1010
day.
1111
- Want your own inputs?

framework/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
#![feature(array_windows)]
22
#![feature(auto_traits)]
33
#![feature(decl_macro)]
4-
#![feature(entry_insert)]
54
#![feature(hash_raw_entry)]
65
#![feature(let_chains)]
76
#![feature(maybe_uninit_array_assume_init)]
87
#![feature(maybe_uninit_uninit_array)]
98
#![feature(negative_impls)]
109
#![feature(non_null_convenience)]
1110
#![feature(slice_split_at_unchecked)]
12-
#![feature(split_array)]
13-
#![feature(stmt_expr_attributes)]
1411
#![feature(trait_alias)]
1512
#![feature(trusted_len)]
1613

framework/src/parsers/multi.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,7 @@ impl<'s, const N: usize> Parser<'s> for TakeN<N> {
105105
type Output = &'s [u8; N];
106106

107107
fn parse(&self, input: &'s [u8]) -> ParseResult<'s, Self::Output> {
108-
if input.len() < N {
109-
Err((ParseError::EmptyInput, input))
110-
} else {
111-
Ok(input.split_array_ref())
112-
}
108+
input.split_first_chunk().ok_or((ParseError::EmptyInput, input))
113109
}
114110
}
115111

src/main.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,11 @@
11
#![feature(array_chunks)]
2-
#![feature(array_windows)]
3-
#![feature(box_into_inner)]
42
#![feature(byte_slice_trim_ascii)]
53
#![feature(coroutines)]
6-
#![feature(decl_macro)]
7-
#![feature(generic_const_exprs)]
8-
#![feature(get_many_mut)]
94
#![feature(hash_raw_entry)]
105
#![feature(iter_from_coroutine)]
116
#![feature(iter_repeat_n)]
12-
#![feature(let_chains)]
137
#![feature(map_try_insert)]
14-
#![feature(never_type)]
158
#![feature(slice_partition_dedup)]
16-
#![feature(slice_take)]
17-
#![feature(stmt_expr_attributes)]
18-
19-
#![allow(incomplete_features)]
209

2110
#![feature(custom_test_frameworks)]
2211
#![cfg_attr(feature = "criterion", test_runner(criterion::runner))]

0 commit comments

Comments
 (0)