Skip to content

Commit 9d51d6b

Browse files
committed
Fix tidy issues
1 parent e2f781c commit 9d51d6b

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

src/librustc_resolve/build_reduced_graph.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,10 @@ impl<'a> Resolver<'a> {
424424
fn build_reduced_graph_for_block(&mut self, block: &Block) {
425425
let parent = self.current_module;
426426
if self.block_needs_anonymous_module(block) {
427-
let module =
428-
self.new_module(parent, ModuleKind::Block(block.id), parent.normal_ancestor_id, block.span);
427+
let module = self.new_module(parent,
428+
ModuleKind::Block(block.id),
429+
parent.normal_ancestor_id,
430+
block.span);
429431
self.block_map.insert(block.id, module);
430432
self.current_module = module; // Descend into the block.
431433
}

src/librustc_resolve/lib.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,10 @@ pub struct ModuleData<'a> {
873873
pub type Module<'a> = &'a ModuleData<'a>;
874874

875875
impl<'a> ModuleData<'a> {
876-
fn new(parent: Option<Module<'a>>, kind: ModuleKind, normal_ancestor_id: DefId, span: Span) -> Self {
876+
fn new(parent: Option<Module<'a>>,
877+
kind: ModuleKind,
878+
normal_ancestor_id: DefId,
879+
span: Span) -> Self {
877880
ModuleData {
878881
parent: parent,
879882
kind: kind,
@@ -1434,8 +1437,13 @@ impl<'a> Resolver<'a> {
14341437
self.crate_loader.postprocess(krate);
14351438
}
14361439

1437-
fn new_module(&self, parent: Module<'a>, kind: ModuleKind, normal_ancestor_id: DefId, span: Span)
1438-
-> Module<'a> {
1440+
fn new_module(
1441+
&self,
1442+
parent: Module<'a>,
1443+
kind: ModuleKind,
1444+
normal_ancestor_id: DefId,
1445+
span: Span,
1446+
) -> Module<'a> {
14391447
self.arenas.alloc_module(ModuleData::new(Some(parent), kind, normal_ancestor_id, span))
14401448
}
14411449

0 commit comments

Comments
 (0)