File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/libsyntax/ext/deriving Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -91,11 +91,11 @@ fn cs_clone(
91
91
all_fields = af ;
92
92
} ,
93
93
EnumNonMatching ( * ) => cx. span_bug ( span ,
94
- ~ "Non -matching enum variants in `deriving( " +
95
- name + " ) `" ) ,
94
+ fmt ! ( "Non-matching enum variants in `deriving(%s)`" ,
95
+ name ) ) ,
96
96
StaticEnum ( * ) | StaticStruct ( * ) => cx. span_bug( span,
97
- ~ "Static method in `deriving( " +
98
- name + " ) `" )
97
+ fmt ! ( "Static method in `deriving(%s)`" ,
98
+ name ) )
99
99
}
100
100
101
101
match * all_fields {
@@ -110,8 +110,8 @@ fn cs_clone(
110
110
let ident = match o_id {
111
111
Some ( i) => i ,
112
112
None => cx. span_bug( span,
113
- ~ "unnamed field in normal struct \
114
- in `deriving ( " + name + " ) `" )
113
+ fmt ! ( "unnamed field in normal struct in `deriving(%s)`" ,
114
+ name) )
115
115
} ;
116
116
build:: Field { ident : ident, ex : subcall( self_f) }
117
117
} ;
You can’t perform that action at this time.
0 commit comments