compiler do it so we do not have to
The inlined function would be inserted in the module where it is called
If the inlined function is only used in that module(internal linkage). Then it is safe to grant it an access to the "private" stuff of that module.