Skip to content

Commit

Permalink
Prepare for a breaking change in the Rust compiler.
Browse files Browse the repository at this point in the history
The soundness fix in rust-lang/rust#115008 will cause axum-starter to break, even though it is not unsound. The missing bound is very hard to abuse, but still a soundness hole in our type system.

It will likely take 12 weeks before a stable compiler with the soundness fix is shipped.
  • Loading branch information
oli-obk committed Sep 21, 2023
1 parent defc108 commit 5123f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl<'a, A: Allocator + Clone> Context<'a, A> {
self.drain_comments_before(line_index + 1)
}

pub fn peek_comments_before(&self, line_index: usize) -> impl Iterator<Item = &'a Comment> {
pub fn peek_comments_before(&self, line_index: usize) -> impl Iterator<Item = &'_ Comment> {
self.comments
.range(
..self
Expand Down

0 comments on commit 5123f52

Please sign in to comment.