@@ -575,8 +575,8 @@ fn expr_to_constr_arg(tcx: ty::ctxt, e: @expr) -> @constr_arg_use {
575
575
alt e. node {
576
576
expr_path ( p) {
577
577
alt tcx. def_map . find ( e. id ) {
578
- some ( def_local ( id) ) | some ( def_arg ( id, _) ) | some ( def_binding ( id ) ) |
579
- some ( def_upvar ( id, _, _) ) {
578
+ some ( def_local ( id, _ ) ) | some ( def_arg ( id, _) ) |
579
+ some ( def_binding ( id ) ) | some ( def_upvar ( id, _, _) ) {
580
580
ret @respan ( p. span ,
581
581
carg_ident ( { ident: p. node . idents [ 0 ] , node: id. node } ) ) ;
582
582
}
@@ -790,7 +790,8 @@ tag if_ty { if_check; plain_if; }
790
790
fn local_node_id_to_def_id_strict( fcx: fn_ctxt, sp: span, i: node_id) ->
791
791
def_id {
792
792
alt local_node_id_to_def( fcx, i) {
793
- some( def_local( id) ) | some( def_arg( id, _) ) | some( def_upvar( id, _, _) ) {
793
+ some( def_local( id, _) ) | some( def_arg( id, _) ) |
794
+ some( def_upvar( id, _, _) ) {
794
795
ret id;
795
796
}
796
797
some( _) {
@@ -813,7 +814,7 @@ fn local_node_id_to_def(fcx: fn_ctxt, i: node_id) -> option::t<def> {
813
814
814
815
fn local_node_id_to_def_id( fcx: fn_ctxt, i: node_id) -> option:: t < def_id > {
815
816
alt local_node_id_to_def( fcx, i) {
816
- some( def_local( id) ) | some( def_arg( id, _) ) | some( def_binding( id) ) |
817
+ some( def_local( id, _ ) ) | some( def_arg( id, _) ) | some( def_binding( id) ) |
817
818
some( def_upvar( id, _, _) ) {
818
819
some( id)
819
820
}
0 commit comments