mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: remove reduntant Item superclass from Adt subclasses
This commit is contained in:
@@ -1040,7 +1040,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(Enum)
|
||||
@annotate(Enum, replace_bases={Item: None}) # still an Item via Adt
|
||||
class _:
|
||||
"""
|
||||
An enum declaration.
|
||||
@@ -1835,7 +1835,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(Struct)
|
||||
@annotate(Struct, replace_bases={Item: None}) # still an Item via Adt
|
||||
class _:
|
||||
"""
|
||||
A Struct. For example:
|
||||
@@ -2014,7 +2014,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(Union)
|
||||
@annotate(Union, replace_bases={Item: None}) # still an Item via Adt
|
||||
class _:
|
||||
"""
|
||||
A union declaration.
|
||||
|
||||
Reference in New Issue
Block a user