diff options
author | 2020-06-16 10:26:57 -0400 | |
---|---|---|
committer | 2020-06-16 10:28:25 -0400 | |
commit | 8a23fa48191b7accc14963ff1870c3e192467dbd (patch) | |
tree | 9ea0ff26cda97fcc686070c503e7f345483e493a /rust/proc_macro.go | |
parent | 2752d926a9aa78f68c0713af6ecda11b5b02b583 (diff) |
[Rust] Remove unused variables and deduplicate.
Bug: 158731826
Test: cd external/rust/crates; mma
Change-Id: I8c9e5cfeaf941b9676b92451b227c15db9a41bbc
Diffstat (limited to 'rust/proc_macro.go')
-rw-r--r-- | rust/proc_macro.go | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/rust/proc_macro.go b/rust/proc_macro.go index 10ea1e380..42c8537a9 100644 --- a/rust/proc_macro.go +++ b/rust/proc_macro.go @@ -23,20 +23,12 @@ func init() { } type ProcMacroCompilerProperties struct { - // path to the source file that is the main entry point of the program (e.g. src/lib.rs) - Srcs []string `android:"path,arch_variant"` - - // set name of the procMacro - Stem *string `android:"arch_variant"` - Suffix *string `android:"arch_variant"` } type procMacroDecorator struct { *baseCompiler - Properties ProcMacroCompilerProperties - distFile android.OptionalPath - unstrippedOutputFile android.Path + Properties ProcMacroCompilerProperties } type procMacroInterface interface { @@ -70,7 +62,7 @@ func (procMacro *procMacroDecorator) compile(ctx ModuleContext, flags Flags, dep fileName := procMacro.getStem(ctx) + ctx.toolchain().ProcMacroSuffix() outputFile := android.PathForModuleOut(ctx, fileName) - srcPath := srcPathFromModuleSrcs(ctx, procMacro.Properties.Srcs) + srcPath := srcPathFromModuleSrcs(ctx, procMacro.baseCompiler.Properties.Srcs) procMacro.unstrippedOutputFile = outputFile |