mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: extract dummy Function body
This commit is contained in:
@@ -94,10 +94,15 @@ impl CrateTranslator<'_> {
|
||||
ModuleDef::Function(function) => {
|
||||
let name = function.name(self.db);
|
||||
let location = self.emit_location(function);
|
||||
let body = self.trap.emit(generated::MissingExpr {
|
||||
id: TrapId::Star,
|
||||
location: None,
|
||||
});
|
||||
labels.push(self.trap.emit(generated::Function {
|
||||
id: trap_key![module_label, name.as_str()],
|
||||
location,
|
||||
name: name.as_str().into(),
|
||||
body,
|
||||
}));
|
||||
}
|
||||
ModuleDef::Adt(_) => {}
|
||||
|
||||
Reference in New Issue
Block a user