Skip to content

Commit a298014

Browse files
committed
Miscellaneous reformatttings and renamings.
1 parent efef81e commit a298014

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

src/librustc/middle/borrowck/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ pub type LoanDataFlow<'a, 'tcx> = DataFlowContext<'a, 'tcx, LoanDataFlowOperator
6565

6666
impl<'a, 'tcx, 'v> Visitor<'v> for BorrowckCtxt<'a, 'tcx> {
6767
fn visit_fn(&mut self, fk: FnKind<'v>, fd: &'v FnDecl,
68-
b: &'v Block, s: Span, n: NodeId) {
69-
borrowck_fn(self, fk, fd, b, s, n);
68+
b: &'v Block, s: Span, id: ast::NodeId) {
69+
borrowck_fn(self, fk, fd, b, s, id);
7070
}
7171

7272
fn visit_item(&mut self, item: &ast::Item) {

src/librustc/middle/check_match.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ impl<'a, 'tcx, 'v> Visitor<'v> for MatchCheckCtxt<'a, 'tcx> {
139139
check_local(self, l);
140140
}
141141
fn visit_fn(&mut self, fk: FnKind<'v>, fd: &'v FnDecl,
142-
b: &'v Block, s: Span, _: NodeId) {
143-
check_fn(self, fk, fd, b, s);
142+
b: &'v Block, s: Span, n: NodeId) {
143+
check_fn(self, fk, fd, b, s, n);
144144
}
145145
}
146146

@@ -920,7 +920,8 @@ fn check_fn(cx: &mut MatchCheckCtxt,
920920
kind: FnKind,
921921
decl: &FnDecl,
922922
body: &Block,
923-
sp: Span) {
923+
sp: Span,
924+
_: NodeId) {
924925
visit::walk_fn(cx, kind, decl, body, sp);
925926
for input in decl.inputs.iter() {
926927
is_refutable(cx, &*input.pat, |pat| {

src/librustc/middle/liveness.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,8 @@ fn live_node_kind_to_string(lnk: LiveNodeKind, cx: &ty::ctxt) -> String {
187187
}
188188

189189
impl<'a, 'tcx, 'v> Visitor<'v> for IrMaps<'a, 'tcx> {
190-
fn visit_fn(&mut self, fk: FnKind<'v>, fd: &'v FnDecl,
191-
b: &'v Block, s: Span, n: NodeId) {
192-
visit_fn(self, fk, fd, b, s, n);
190+
fn visit_fn(&mut self, fk: FnKind<'v>, fd: &'v FnDecl, b: &'v Block, s: Span, id: ast::NodeId) {
191+
visit_fn(self, fk, fd, b, s, id);
193192
}
194193
fn visit_local(&mut self, l: &ast::Local) { visit_local(self, l); }
195194
fn visit_expr(&mut self, ex: &Expr) { visit_expr(self, ex); }
@@ -374,9 +373,8 @@ fn visit_fn(ir: &mut IrMaps,
374373
decl: &FnDecl,
375374
body: &Block,
376375
sp: Span,
377-
id: NodeId) {
378-
debug!("visit_fn: id={}", id);
379-
let _i = ::util::common::indenter();
376+
id: ast::NodeId) {
377+
debug!("visit_fn");
380378

381379
// swap in a new set of IR maps for this function body:
382380
let mut fn_maps = IrMaps::new(ir.tcx);

src/librustc_trans/save/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ impl<'l, 'tcx, 'v> Visitor<'v> for DxrVisitor<'l, 'tcx> {
10951095
fd: &'v ast::FnDecl,
10961096
b: &'v ast::Block,
10971097
s: Span,
1098-
_: NodeId) {
1098+
_: ast::NodeId) {
10991099
if generated_code(s) {
11001100
return;
11011101
}

0 commit comments

Comments
 (0)