Skip to content

Commit 08ef293

Browse files
authored
Merge pull request #248 from evq/2018-keywords
Add rust 2018 keywords to sanitization list
2 parents 92634bf + 88dcf2f commit 08ef293

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ci/svd2rust-regress/src/tests.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ impl ToSanitizedSnakeCase for str {
104104
abstract,
105105
alignof,
106106
as,
107+
async,
108+
await,
107109
become,
108110
box,
109111
break,
@@ -143,6 +145,7 @@ impl ToSanitizedSnakeCase for str {
143145
super,
144146
trait,
145147
true,
148+
try,
146149
type,
147150
typeof,
148151
unsafe,

src/util.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ impl ToSanitizedSnakeCase for str {
4949
abstract,
5050
alignof,
5151
as,
52+
async,
53+
await,
5254
become,
5355
box,
5456
break,
@@ -88,6 +90,7 @@ impl ToSanitizedSnakeCase for str {
8890
super,
8991
trait,
9092
true,
93+
try,
9194
type,
9295
typeof,
9396
unsafe,

0 commit comments

Comments
 (0)