aboutsummaryrefslogtreecommitdiffstats
path: root/components/plugins/lib.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2017-02-14 17:35:39 +0100
committerAnthony Ramine <n.oxyde@gmail.com>2017-02-15 10:24:01 +0100
commit8bcf36b9a59b4f30fd54fceb85eeb51b1d4dee4f (patch)
tree16f762e408981f2130095470fc4c7b868f9011c2 /components/plugins/lib.rs
parent19c645ff68f517929308d1f22728d72231e9a543 (diff)
downloadservo-8bcf36b9a59b4f30fd54fceb85eeb51b1d4dee4f.tar.gz
servo-8bcf36b9a59b4f30fd54fceb85eeb51b1d4dee4f.zip
Change #[privatize] into #[derive(DenyPublicFields)]
Diffstat (limited to 'components/plugins/lib.rs')
-rw-r--r--components/plugins/lib.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/components/plugins/lib.rs b/components/plugins/lib.rs
index 43995876599..7b897cb10e0 100644
--- a/components/plugins/lib.rs
+++ b/components/plugins/lib.rs
@@ -6,11 +6,11 @@
//!
//! Attributes this crate provides:
//!
-//! - `#[privatize]` : Forces all fields in a struct/enum to be private
+//! - `#[derive(DenyPublicFields)]` : Forces all fields in a struct/enum to be private
//! - `#[derive(JSTraceable)]` : Auto-derives an implementation of `JSTraceable` for a struct in the script crate
//! - `#[must_root]` : Prevents data of the marked type from being used on the stack.
//! See the lints module for more details
-//! - `#[dom_struct]` : Implies `#[privatize]`,`#[derive(JSTraceable)]`, and `#[must_root]`.
+//! - `#[dom_struct]` : Implies #[derive(JSTraceable, DenyPublicFields)]`, and `#[must_root]`.
//! Use this for structs that correspond to a DOM type
@@ -44,13 +44,11 @@ pub fn plugin_registrar(reg: &mut Registry) {
MultiModifier(box jstraceable::expand_dom_struct));
reg.register_late_lint_pass(box lints::unrooted_must_root::UnrootedPass::new());
- reg.register_late_lint_pass(box lints::privatize::PrivatizePass);
reg.register_late_lint_pass(box lints::inheritance_integrity::InheritancePass);
reg.register_early_lint_pass(box lints::ban::BanPass);
reg.register_attribute("_dom_struct_marker".to_string(), Whitelisted);
reg.register_attribute("allow_unrooted_interior".to_string(), Whitelisted);
reg.register_attribute("must_root".to_string(), Whitelisted);
- reg.register_attribute("privatize".to_string(), Whitelisted);
reg.register_attribute("servo_lang".to_string(), Whitelisted);
register_clippy(reg);
}