diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-01-14 15:27:20 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-14 15:27:20 +0000 |
commit | 540edee3cd11d45a03abc072bb9b6f01b59bcb25 (patch) | |
tree | 7d86fca4364984808724ccc5694aef20a43d686c /crates/syntax | |
parent | aeacaeed4e49dd71ba0de30a21d9f3d1cc153cec (diff) | |
parent | 8dc68ecdfcc764c7c0dcf5fcedcb51b092d99620 (diff) |
Merge #7270
7270: Introduce more appropriate assertion mechanism r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/syntax')
-rw-r--r-- | crates/syntax/src/display.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/syntax/src/display.rs b/crates/syntax/src/display.rs index 391647fc6..cd956d950 100644 --- a/crates/syntax/src/display.rs +++ b/crates/syntax/src/display.rs | |||
@@ -80,7 +80,7 @@ pub fn macro_label(node: &ast::Macro) -> String { | |||
80 | let name = node.name().map(|name| name.syntax().text().to_string()).unwrap_or_default(); | 80 | let name = node.name().map(|name| name.syntax().text().to_string()).unwrap_or_default(); |
81 | match node { | 81 | match node { |
82 | ast::Macro::MacroRules(node) => { | 82 | ast::Macro::MacroRules(node) => { |
83 | let vis = if node.has_atom_attr("macro_export") { "#[macro_export]\n" } else { "" }; | 83 | let vis = if node.has_atom_attr("macro_export") { "#[macro_export] " } else { "" }; |
84 | format!("{}macro_rules! {}", vis, name) | 84 | format!("{}macro_rules! {}", vis, name) |
85 | } | 85 | } |
86 | ast::Macro::MacroDef(node) => { | 86 | ast::Macro::MacroDef(node) => { |