Skip to content

Commit 76d5664

Browse files
authored
Prepare for a breaking change in the Rust compiler. (#56)
The soundness fix in rust-lang/rust#115008 will cause schemat 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.
1 parent defc108 commit 76d5664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl<'a, A: Allocator + Clone> Context<'a, A> {
4949
self.drain_comments_before(line_index + 1)
5050
}
5151

52-
pub fn peek_comments_before(&self, line_index: usize) -> impl Iterator<Item = &'a Comment> {
52+
pub fn peek_comments_before(&self, line_index: usize) -> impl Iterator<Item = &'_ Comment> {
5353
self.comments
5454
.range(
5555
..self

0 commit comments

Comments
 (0)