mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Add #[privatize] to allow enforcing private fields for struct definitions
This commit is contained in:
parent
c87f34f877
commit
5b72087944
2 changed files with 25 additions and 1 deletions
|
@ -27,6 +27,7 @@ mod jstraceable;
|
|||
pub fn plugin_registrar(reg: &mut Registry) {
|
||||
reg.register_lint_pass(box lints::TransmutePass as LintPassObject);
|
||||
reg.register_lint_pass(box lints::UnrootedPass as LintPassObject);
|
||||
reg.register_lint_pass(box lints::PrivatizePass as LintPassObject);
|
||||
reg.register_syntax_extension(intern("jstraceable"), Decorator(box jstraceable::expand_jstraceable))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue