Skip to content

Commit 9f11714

Browse files
committed
pacify the mercilous tidy
1 parent 60c4eb4 commit 9f11714

File tree

2 files changed

+29
-5
lines changed

2 files changed

+29
-5
lines changed

src/librustc_resolve/lib.rs

+21-3
Original file line numberDiff line numberDiff line change
@@ -1660,7 +1660,13 @@ impl<'a> Resolver<'a> {
16601660
PathResult::Module(module) => *def = module.def().unwrap(),
16611661
PathResult::NonModule(path_res) if path_res.unresolved_segments() == 0 =>
16621662
*def = path_res.base_def(),
1663-
PathResult::NonModule(..) => match self.resolve_path(&path, None, true, span, CrateLint::No) {
1663+
PathResult::NonModule(..) => match self.resolve_path(
1664+
&path,
1665+
None,
1666+
true,
1667+
span,
1668+
CrateLint::No,
1669+
) {
16641670
PathResult::Failed(span, msg, _) => {
16651671
error_callback(self, span, ResolutionError::FailedToResolve(&msg));
16661672
}
@@ -3175,7 +3181,13 @@ impl<'a> Resolver<'a> {
31753181
));
31763182
}
31773183

3178-
let result = match self.resolve_path(&path, Some(ns), true, span, CrateLint::SimplePath(id)) {
3184+
let result = match self.resolve_path(
3185+
&path,
3186+
Some(ns),
3187+
true,
3188+
span,
3189+
CrateLint::SimplePath(id),
3190+
) {
31793191
PathResult::NonModule(path_res) => path_res,
31803192
PathResult::Module(module) if !module.is_normal() => {
31813193
PathResolution::new(module.def().unwrap())
@@ -3212,7 +3224,13 @@ impl<'a> Resolver<'a> {
32123224
path[0].name != keywords::CrateRoot.name() &&
32133225
path[0].name != keywords::DollarCrate.name() {
32143226
let unqualified_result = {
3215-
match self.resolve_path(&[*path.last().unwrap()], Some(ns), false, span, CrateLint::No) {
3227+
match self.resolve_path(
3228+
&[*path.last().unwrap()],
3229+
Some(ns),
3230+
false,
3231+
span,
3232+
CrateLint::No,
3233+
) {
32163234
PathResult::NonModule(path_res) => path_res.base_def(),
32173235
PathResult::Module(module) => module.def().unwrap(),
32183236
_ => return Some(result),

src/librustc_resolve/resolve_imports.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub struct ImportDirective<'a> {
6060
/// In the case where the `ImportDirective` was expanded from a "nested" use tree,
6161
/// this id is the id of the leaf tree. For example:
6262
///
63-
/// ```rust,ignore
63+
/// ```ignore (pacify the mercilous tidy)
6464
/// use foo::bar::{a, b}
6565
/// ```
6666
///
@@ -737,7 +737,13 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
737737
}
738738
}
739739

740-
let module_result = self.resolve_path(&module_path, None, true, span, directive.crate_lint());
740+
let module_result = self.resolve_path(
741+
&module_path,
742+
None,
743+
true,
744+
span,
745+
directive.crate_lint(),
746+
);
741747
let module = match module_result {
742748
PathResult::Module(module) => module,
743749
PathResult::Failed(span, msg, false) => {

0 commit comments

Comments
 (0)