| commit | dbc5377e9f3c6d29cf82fcf4732005ce17872475 | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Wed Oct 28 17:28:51 2020 -0700 |
| committer | David Tolnay <dtolnay@gmail.com> | Wed Oct 28 17:28:51 2020 -0700 |
| tree | 11804ac636eae2438341ecc27b39c60decf4e713 | |
| parent | cca5215060cb472902d52fba9414fdd0ea9009d9 [diff] [blame] |
Avoid repeating the underlined type in the label
diff --git a/syntax/check.rs b/syntax/check.rs index ced1570..25183c9 100644 --- a/syntax/check.rs +++ b/syntax/check.rs
@@ -67,7 +67,8 @@ && !cx.types.cxx.contains(ident) && !cx.types.rust.contains(ident) { - cx.error(ident, &format!("unsupported type: {}", ident)); + let msg = format!("unsupported type: {}", ident); + cx.error(ident, &msg); } }