mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: fix compilation errors after rename
This commit is contained in:
@@ -1253,11 +1253,11 @@ fn emit_hir_ty(
|
||||
|
||||
enum Variant {
|
||||
Unit,
|
||||
Record(trap::Label<generated::RecordFieldList>),
|
||||
Record(trap::Label<generated::StructFieldList>),
|
||||
Tuple(trap::Label<generated::TupleFieldList>),
|
||||
}
|
||||
|
||||
impl From<Variant> for Option<trap::Label<generated::RecordFieldList>> {
|
||||
impl From<Variant> for Option<trap::Label<generated::StructFieldList>> {
|
||||
fn from(val: Variant) -> Self {
|
||||
match val {
|
||||
Variant::Record(label) => Some(label),
|
||||
@@ -1309,7 +1309,7 @@ fn emit_variant_data(trap: &mut TrapFile, db: &dyn HirDatabase, variant_id: Vari
|
||||
})
|
||||
})
|
||||
.collect();
|
||||
Variant::Record(trap.emit(generated::RecordFieldList {
|
||||
Variant::Record(trap.emit(generated::StructFieldList {
|
||||
id: trap::TrapId::Star,
|
||||
fields,
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user