We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
generic_extensions
1 parent a935481 commit e382267Copy full SHA for e382267
src/libsyntax/ext/tt/macro_rules.rs
@@ -139,9 +139,9 @@ fn generic_extension<'cx>(cx: &'cx ExtCtxt,
139
macro_ident: name
140
})
141
}
142
- Failure(sp, ref msg) => if sp.lo >= best_fail_spot.lo {
+ Failure(sp, msg) => if sp.lo >= best_fail_spot.lo {
143
best_fail_spot = sp;
144
- best_fail_msg = (*msg).clone();
+ best_fail_msg = msg;
145
},
146
Error(err_sp, ref msg) => {
147
cx.span_fatal(err_sp.substitute_dummy(sp), &msg[..])
0 commit comments