File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
branches/dist-snap/src/librustdoc Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
- refs/heads/dist-snap: e53e86a3f35a7d36308c758d67238c2cdc927ed3
9
+ refs/heads/dist-snap: 7b382e58b1b2cbacf8d70fa4bb759db5050a2e8a
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
12
12
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
Original file line number Diff line number Diff line change @@ -1123,6 +1123,8 @@ fn lit_to_str(lit: &ast::lit) -> ~str {
1123
1123
1124
1124
fn name_from_pat ( p: & ast:: Pat ) -> ~str {
1125
1125
use syntax:: ast:: * ;
1126
+ debug ! ( "Trying to get a name from pattern: {:?}" , p) ;
1127
+
1126
1128
match p. node {
1127
1129
PatWild => ~"_",
1128
1130
PatWildMulti => ~"..",
@@ -1134,9 +1136,12 @@ fn name_from_pat(p: &ast::Pat) -> ~str {
1134
1136
PatBox ( p) => name_from_pat( p) ,
1135
1137
PatUniq ( p) => name_from_pat( p) ,
1136
1138
PatRegion ( p) => name_from_pat( p) ,
1137
- PatLit ( ..) => fail!( "tried to get argument name from pat_lit, \
1138
- which is not allowed in function arguments") ,
1139
- PatRange ( ..) => fail!( "tried to get argument name from pat_range, \
1139
+ PatLit ( ..) => {
1140
+ warn!( "tried to get argument name from PatLit , \
1141
+ which is silly in function arguments") ;
1142
+ ~"( ) "
1143
+ } ,
1144
+ PatRange ( ..) => fail!( "tried to get argument name from PatRange , \
1140
1145
which is not allowed in function arguments") ,
1141
1146
PatVec ( ..) => fail!( "tried to get argument name from pat_vec, \
1142
1147
which is not allowed in function arguments")
You can’t perform that action at this time.
0 commit comments