Split #[ into separate tokens

This commit is contained in:
David Tolnay 2016-09-04 14:42:34 -07:00
parent 686b59b4f7
commit fbef23468b
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -91,7 +91,8 @@ mod printing {
impl ToTokens for Attribute {
fn to_tokens(&self, tokens: &mut Tokens) {
tokens.append("#[");
tokens.append("#");
tokens.append("[");
self.value.to_tokens(tokens);
tokens.append("]");
}