mirror of
https://github.com/servo/servo.git
synced 2025-06-10 17:43:16 +00:00
Update doc comment for script_plugins/lib.rs
script_plugins no longer provides any macros. It currently only provides the must_root lint.
This commit is contained in:
parent
5245f9ff27
commit
40a6aad6b9
1 changed files with 2 additions and 8 deletions
|
@ -4,14 +4,8 @@
|
|||
|
||||
//! Servo's compiler plugin/macro crate
|
||||
//!
|
||||
//! Attributes this crate provides:
|
||||
//!
|
||||
//! - `#[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
|
||||
//! - `#[unrooted_must_root_lint::must_root]` : Prevents data of the marked type from being used on the stack.
|
||||
//! See the lints module for more details
|
||||
//! - `#[dom_struct]` : Implies #[derive(JSTraceable, DenyPublicFields)]`, and `#[unrooted_must_root_lint::must_root]`.
|
||||
//! Use this for structs that correspond to a DOM type
|
||||
//! This crate provides the `#[unrooted_must_root_lint::must_root]` lint. This lint prevents data
|
||||
//! of the marked type from being used on the stack. See the source for more details.
|
||||
|
||||
#![deny(unsafe_code)]
|
||||
#![feature(plugin)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue