Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup

This commit is contained in:
Philipp Krones
2022-08-11 19:42:16 +02:00
parent f719599c0f
commit dc29cfb8d5
182 changed files with 2240 additions and 827 deletions

View File

@@ -438,7 +438,7 @@ fn setup_mod_file(path: &Path, lint: &LintData<'_>) -> io::Result<&'static str>
let mut lint_context = None;
let mut iter = rustc_lexer::tokenize(&file_contents).map(|t| {
let range = offset..offset + t.len;
let range = offset..offset + t.len as usize;
offset = range.end;
LintDeclSearchResult {