rustc: Fix indentation in ty_param_count_and_ty_for_def()
This commit is contained in:
parent
594c70f788
commit
525a5c582f
1 changed files with 5 additions and 5 deletions
|
|
@ -136,19 +136,19 @@ fn ty_param_count_and_ty_for_def(&@fn_ctxt fcx, &ast::span sp, &ast::def defn)
|
|||
}
|
||||
case (ast::def_fn(?id)) {
|
||||
ret ty::lookup_item_type(fcx.ccx.sess, fcx.ccx.tcx,
|
||||
fcx.ccx.type_cache, id);
|
||||
fcx.ccx.type_cache, id);
|
||||
}
|
||||
case (ast::def_native_fn(?id)) {
|
||||
ret ty::lookup_item_type(fcx.ccx.sess, fcx.ccx.tcx,
|
||||
fcx.ccx.type_cache, id);
|
||||
fcx.ccx.type_cache, id);
|
||||
}
|
||||
case (ast::def_const(?id)) {
|
||||
ret ty::lookup_item_type(fcx.ccx.sess, fcx.ccx.tcx,
|
||||
fcx.ccx.type_cache, id);
|
||||
fcx.ccx.type_cache, id);
|
||||
}
|
||||
case (ast::def_variant(_, ?vid)) {
|
||||
ret ty::lookup_item_type(fcx.ccx.sess, fcx.ccx.tcx,
|
||||
fcx.ccx.type_cache, vid);
|
||||
fcx.ccx.type_cache, vid);
|
||||
}
|
||||
case (ast::def_binding(?id)) {
|
||||
// assert (fcx.locals.contains_key(id));
|
||||
|
|
@ -156,7 +156,7 @@ fn ty_param_count_and_ty_for_def(&@fn_ctxt fcx, &ast::span sp, &ast::def defn)
|
|||
}
|
||||
case (ast::def_obj(?id)) {
|
||||
ret ty::lookup_item_type(fcx.ccx.sess, fcx.ccx.tcx,
|
||||
fcx.ccx.type_cache, id);
|
||||
fcx.ccx.type_cache, id);
|
||||
}
|
||||
|
||||
case (ast::def_mod(_)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue