Files
tubestation/servo/components/plugins/lib.rs
Anthony Ramine 442a3a5980 servo: Merge #15584 - Move script lints to script_plugins (from nox:plugin); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: a099d27f99dadf3f7c26d997e43c1a12e0c5bd0e
2017-02-16 10:58:19 -08:00

23 lines
653 B
Rust

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
//! Exists only to hook into clippy.
#![cfg_attr(feature = "clippy", feature(plugin, plugin_registrar, rustc_private))]
#![deny(unsafe_code)]
#[cfg(feature = "clippy")]
extern crate clippy_lints;
#[cfg(feature = "clippy")]
extern crate rustc_plugin;
#[cfg(feature = "clippy")]
use rustc_plugin::Registry;
#[cfg(feature = "clippy")]
#[plugin_registrar]
pub fn plugin_registrar(reg: &mut Registry) {
::clippy_lints::register_plugins(reg);
}