Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions clippy_utils/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#![feature(closure_track_caller)]
#![feature(deref_patterns)]
#![feature(macro_metavar_expr)]
#![feature(maybe_uninit_array_assume_init)]
#![feature(pattern)]
#![feature(rustc_private)]
#![recursion_limit = "512"]
#![expect(clippy::missing_errors_doc, clippy::missing_panics_doc, clippy::must_use_candidate)]
Expand Down
3 changes: 3 additions & 0 deletions clippy_utils/src/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#![expect(clippy::module_name_repetitions)]

pub mod v2;

use std::sync::Arc;

use rustc_ast::{LitKind, StrStyle};
Expand Down Expand Up @@ -297,6 +299,7 @@ fn map_range(
}
}

/// Checks if the last token of the string is either a line comment or an incomplete token.
fn ends_with_line_comment_or_broken(text: &str) -> bool {
let Some(last) = tokenize(text, FrontmatterAllowed::No).last() else {
return false;
Expand Down
Loading