Skip to content

Commit 4598de9

Browse files
committed
Bump Rust version to 1.81
1 parent f28f007 commit 4598de9

File tree

6 files changed

+11
-8
lines changed

6 files changed

+11
-8
lines changed

Cargo.toml

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "aoc"
33
version = "2023.12.25"
44
edition = "2021"
5-
rust-version = "1.80"
5+
rust-version = "1.81"
66

77
[features]
88
frivolity = []
@@ -45,8 +45,8 @@ variant_size_differences = "warn"
4545
[lints.clippy]
4646
absolute_paths = "warn"
4747
alloc_instead_of_core = "warn"
48-
allow_attributes = "warn"
49-
allow_attributes_without_reason = "warn"
48+
allow_attributes = "allow"
49+
allow_attributes_without_reason = "allow"
5050
arithmetic_side_effects = "allow"
5151
as_conversions = "allow"
5252
as_underscore = "warn"
@@ -62,6 +62,7 @@ cast_possible_wrap = "allow"
6262
cast_precision_loss = "warn"
6363
cast_ptr_alignment = "warn"
6464
cast_sign_loss = "allow"
65+
cfg_not_test = "warn"
6566
checked_conversions = "warn"
6667
clone_on_ref_ptr = "warn"
6768
cloned_instead_of_copied = "warn"
@@ -91,6 +92,7 @@ expl_impl_clone_on_copy = "warn"
9192
explicit_deref_methods = "warn"
9293
explicit_into_iter_loop = "warn"
9394
explicit_iter_loop = "warn"
95+
field_scoped_visibility_modifiers = "warn"
9496
filetype_is_file = "warn"
9597
filter_map_next = "warn"
9698
flat_map_option = "warn"
@@ -224,6 +226,7 @@ semicolon_if_nothing_returned = "warn"
224226
semicolon_inside_block = "warn"
225227
semicolon_outside_block = "warn"
226228
separated_literal_suffix = "allow"
229+
set_contains_or_insert = "warn"
227230
shadow_reuse = "allow"
228231
shadow_same = "allow"
229232
shadow_unrelated = "allow"

src/util/md5.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ pub mod simd {
155155
use std::simd::{LaneCount, Simd, SupportedLaneCount};
156156

157157
#[inline]
158-
#[allow(clippy::too_many_lines)]
158+
#[expect(clippy::too_many_lines)]
159159
pub fn hash<const N: usize>(
160160
buffers: &mut [[u8; 64]],
161161
size: usize,

src/year2015/day04.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ mod simd {
107107
use crate::util::md5::simd::hash;
108108
use std::simd::{LaneCount, SupportedLaneCount};
109109

110-
#[allow(clippy::needless_range_loop)]
110+
#[expect(clippy::needless_range_loop)]
111111
fn check_hash_simd<const N: usize>(
112112
buffers: &mut [[u8; 64]],
113113
size: usize,

src/year2016/day05.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ mod simd {
118118
use crate::util::md5::simd::hash;
119119
use std::simd::{LaneCount, SupportedLaneCount};
120120

121-
#[allow(clippy::needless_range_loop)]
121+
#[expect(clippy::needless_range_loop)]
122122
fn check_hash_simd<const N: usize>(
123123
buffers: &mut [[u8; 64]],
124124
size: usize,

src/year2016/day14.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ fn worker(shared: &Shared<'_>) {
8383

8484
/// Use SIMD to compute hashes in parallel in blocks of 32.
8585
#[cfg(feature = "simd")]
86-
#[allow(clippy::needless_range_loop)]
86+
#[expect(clippy::needless_range_loop)]
8787
fn worker(shared: &Shared<'_>) {
8888
let mut result = ([0; 32], [0; 32], [0; 32], [0; 32]);
8989
let mut buffers = [[0; 64]; 32];

src/year2023/day23.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ pub fn part2(input: &Input) -> u32 {
119119
input.extra + state.result
120120
}
121121

122-
#[allow(clippy::needless_range_loop)]
122+
#[expect(clippy::needless_range_loop)]
123123
fn graph_to_grid(
124124
start: Point,
125125
end: Point,

0 commit comments

Comments
 (0)