зеркало из https://github.com/mozilla/gecko-dev.git
servo: Merge #2373 - Remove an unused field from CodegenRust.py (from zwarich:remove-default-visibility); r=Ms2ger
The defaultVisibility field was cloned from the C++ implementation, where it tracks the difference between struct and class visibility. Since no similar concept exists in Rust, it should be removed. Source-Repo: https://github.com/servo/servo Source-Revision: 6d381959db18acc5c2f0c1891df8afe5df8372cb
This commit is contained in:
Родитель
8c3de38943
Коммит
2117ef4b83
|
@ -3250,7 +3250,6 @@ class CGClass(CGThing):
|
|||
self.isStruct = isStruct
|
||||
self.disallowCopyConstruction = disallowCopyConstruction
|
||||
self.indent = indent
|
||||
self.defaultVisibility ='pub' if isStruct else 'priv'
|
||||
self.decorators = decorators
|
||||
self.extradeclarations = extradeclarations
|
||||
self.extradefinitions = extradefinitions
|
||||
|
|
Загрузка…
Ссылка в новой задаче