Open Bug 1666589 Opened 5 years ago Updated 5 years ago

Can't "go to definition" from rust code to an extern function that's defined in C++

Categories

(Webtools :: Searchfox, defect)

defect

Tracking

(Not tracked)

People

(Reporter: mstange, Unassigned)

Details

bindings.rs has a call to wr_compositor_attach_external_image(self.0, id, external_image);. This function is defined in RenderCompositor.cpp.
The menu that opens when clicking on wr_compositor_attach_external_image does not have a "Go to definition" item.

Summary: Can't "go to definition" from rust code to a an extern function that's defined in C++ → Can't "go to definition" from rust code to an extern function that's defined in C++

That's because we detect the other declaration here like a "definition" as well, so we end up thinking we have two of them.

We should probably take that just as a declaration.

You need to log in before you can comment on or make changes to this bug.