Store independent rust name and c++ name for extern functions
diff --git a/syntax/ident.rs b/syntax/ident.rs
index 74e7799..66f7365 100644
--- a/syntax/ident.rs
+++ b/syntax/ident.rs
@@ -37,7 +37,7 @@
                 check(cx, &ety.ident);
             }
             Api::CxxFunction(efn) | Api::RustFunction(efn) => {
-                check(cx, &efn.ident);
+                check(cx, &efn.ident.rust);
                 for arg in &efn.args {
                     check(cx, &arg.ident);
                 }