Removing this restriction will make it handy to explore local submodule visibility without c++ being turned on. We're currently testing it out with C/ObjC.
Can you also add a basic test that this works in C? Thanks!