Skip to content

Commit ce1da84

Browse files
committed
Rebase fallout.
1 parent 11e2966 commit ce1da84

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clippy_lints/src/methods/manual_split_once.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ fn parse_iter_usage(
182182
},
183183
_,
184184
) => {
185-
let parent_span = e.span.parent().unwrap();
185+
let parent_span = e.span.parent_callsite().unwrap();
186186
if parent_span.ctxt() == ctxt {
187187
(Some(UnwrapKind::QuestionMark), parent_span)
188188
} else {

clippy_lints/src/module_style.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl EarlyLintPass for ModStyle {
120120
correct.push("mod.rs");
121121
cx.struct_span_lint(
122122
SELF_NAMED_MODULE_FILES,
123-
Span::new(file.start_pos, file.start_pos, SyntaxContext::root()),
123+
Span::new(file.start_pos, file.start_pos, SyntaxContext::root(), None),
124124
|build| {
125125
let mut lint =
126126
build.build(&format!("`mod.rs` files are required, found `{}`", path.display()));
@@ -167,7 +167,7 @@ fn check_self_named_mod_exists(cx: &EarlyContext<'_>, path: &Path, file: &Source
167167

168168
cx.struct_span_lint(
169169
MOD_MODULE_FILES,
170-
Span::new(file.start_pos, file.start_pos, SyntaxContext::root()),
170+
Span::new(file.start_pos, file.start_pos, SyntaxContext::root(), None),
171171
|build| {
172172
let mut lint = build.build(&format!("`mod.rs` files are not allowed, found `{}`", path.display()));
173173
lint.help(&format!("move `{}` to `{}`", path.display(), mod_file.display(),));

0 commit comments

Comments
 (0)