Address more feedback, clean up code

This commit is contained in:
Mark McCaskey
2020-10-06 12:13:59 -07:00
parent 439e73fcc5
commit aa2e8f7b4d
10 changed files with 135 additions and 146 deletions

View File

@@ -411,8 +411,11 @@ impl Module {
&self.artifact.module_ref()
}
/// Temporary function to implement this; we probably want to implement the functionality
/// dependent on the `Artifact` as individual hidden methods on the `Module`.
/// Gets the [`Artifact`] used internally by the Module.
///
/// This API is hidden because it's not necessarily stable;
/// this functionality is required for some core functionality though, like
/// the object file engine.
#[doc(hidden)]
pub fn artifact(&self) -> &Arc<dyn Artifact> {
&self.artifact