@@ -431,10 +431,10 @@ pub enum Command<E: Extension> {
431
431
include_extra : bool ,
432
432
} ,
433
433
434
- /// Export to a `haxmeta` file, the internal binary format used by hax to
434
+ /// Serialize to a `haxmeta` file, the internal binary format used by hax to
435
435
/// store the ASTs produced by the hax exporter.
436
- #[ clap( name = "haxmeta" , hide = true ) ]
437
- HaxMeta {
436
+ #[ clap( hide = true ) ]
437
+ Serialize {
438
438
/// Whether the bodies are exported as THIR, built MIR, const
439
439
/// MIR, or a combination. Repeat this option to extract a
440
440
/// combination (e.g. `-k thir -k mir-built`). Pass `--kind`
@@ -462,15 +462,15 @@ impl<E: Extension> Command<E> {
462
462
pub fn body_kinds ( & self ) -> Vec < ExportBodyKind > {
463
463
match self {
464
464
Command :: JSON { kind, .. } => kind. clone ( ) ,
465
- Command :: HaxMeta { kind, .. } => kind. clone ( ) ,
465
+ Command :: Serialize { kind, .. } => kind. clone ( ) ,
466
466
Command :: Backend { .. } | Command :: CliExtension { .. } => vec ! [ ExportBodyKind :: Thir ] ,
467
467
}
468
468
}
469
469
pub fn backend_name ( & self ) -> Option < BackendName > {
470
470
match self {
471
471
Command :: Backend ( backend_options) => Some ( ( & backend_options. backend ) . into ( ) ) ,
472
472
Command :: JSON { .. } => None ,
473
- Command :: HaxMeta { backend, .. } => backend. clone ( ) ,
473
+ Command :: Serialize { backend, .. } => backend. clone ( ) ,
474
474
Command :: CliExtension ( _) => None ,
475
475
}
476
476
}
0 commit comments