diff options
author | ThiƩbaud Weksteen <tweek@google.com> | 2020-06-24 11:32:48 +0200 |
---|---|---|
committer | ThiƩbaud Weksteen <tweek@google.com> | 2020-06-24 11:56:33 +0200 |
commit | 1f7f70fe39137360c9983c4c702e68ebd2677807 (patch) | |
tree | 91b67a56033ad6e7b33ef13732936dfc56e35509 /rust/coverage.go | |
parent | a5d1fab176645ec93cbbfc4e270b22ec2354fa42 (diff) |
Remove moduleContextImpl struct
The moduleContextImpl structure contains duplicate information on the
contexts. BaseModuleContext, ModuleContext and DepsContext can already
surface which Module is being processed via Module(). Because most of
the Rust-specific methods on the *Context structures simply forward to
the Module methods, expose a RustModule() method.
Test: cd external/rust/crates; mma
Change-Id: Ifee90825d54081fc5e9a8df0b7c4580412e9158c
Diffstat (limited to 'rust/coverage.go')
-rw-r--r-- | rust/coverage.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/coverage.go b/rust/coverage.go index 4e3977be3..223ba4f19 100644 --- a/rust/coverage.go +++ b/rust/coverage.go @@ -67,6 +67,6 @@ func (cov *coverage) begin(ctx BaseModuleContext) { // Host coverage not yet supported. } else { // Update useSdk and sdkVersion args if Rust modules become SDK aware. - cov.Properties = cc.SetCoverageProperties(ctx, cov.Properties, ctx.nativeCoverage(), false, "") + cov.Properties = cc.SetCoverageProperties(ctx, cov.Properties, ctx.RustModule().nativeCoverage(), false, "") } } |