Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46d6bbb commit 679d81aCopy full SHA for 679d81a
1 file changed
rust/extractor/src/translate.rs
@@ -94,10 +94,15 @@ impl CrateTranslator<'_> {
94
ModuleDef::Function(function) => {
95
let name = function.name(self.db);
96
let location = self.emit_location(function);
97
+ let body = self.trap.emit(generated::MissingExpr {
98
+ id: TrapId::Star,
99
+ location: None,
100
+ });
101
labels.push(self.trap.emit(generated::Function {
102
id: trap_key![module_label, name.as_str()],
103
location,
104
name: name.as_str().into(),
105
+ body,
106
}));
107
}
108
ModuleDef::Adt(_) => {}
0 commit comments