Upgrade to Rust 1.17.
- Remove some uses of 'static in const and static globals that are no longer needed. - Use the new struct initialization shorthand.
This commit is contained in:
@@ -451,7 +451,7 @@ def emit_recipe_names(isa, fmt):
|
||||
This is used for pretty-printing encodings.
|
||||
"""
|
||||
with fmt.indented(
|
||||
'static RECIPE_NAMES: [&\'static str; {}] = ['
|
||||
'static RECIPE_NAMES: [&str; {}] = ['
|
||||
.format(len(isa.all_recipes)), '];'):
|
||||
for r in isa.all_recipes:
|
||||
fmt.line('"{}",'.format(r.name))
|
||||
|
||||
Reference in New Issue
Block a user