Changed NonCamelCaseTypes lint to warn by default
Added allow(non_camel_case_types) to librustc where necesary Tried to fix problems with non_camel_case_types outside rustc fixed failing tests Docs updated Moved #[allow(non_camel_case_types)] a level higher. markdown.rs reverted Fixed timer that was failing tests Fixed another timer
This commit is contained in:
parent
d70f909fa3
commit
70319f7b25
42 changed files with 122 additions and 68 deletions
|
|
@ -24,6 +24,8 @@
|
|||
//! // ... something using html
|
||||
//! ```
|
||||
|
||||
#[allow(non_camel_case_types)];
|
||||
|
||||
use std::cast;
|
||||
use std::fmt;
|
||||
use std::io;
|
||||
|
|
|
|||
|
|
@ -15,12 +15,12 @@ use dl = std::unstable::dynamic_lib;
|
|||
|
||||
pub type PluginJson = Option<(~str, json::Json)>;
|
||||
pub type PluginResult = (clean::Crate, PluginJson);
|
||||
pub type plugin_callback = extern fn (clean::Crate) -> PluginResult;
|
||||
pub type PluginCallback = extern fn (clean::Crate) -> PluginResult;
|
||||
|
||||
/// Manages loading and running of plugins
|
||||
pub struct PluginManager {
|
||||
priv dylibs: ~[dl::DynamicLibrary],
|
||||
priv callbacks: ~[plugin_callback],
|
||||
priv callbacks: ~[PluginCallback],
|
||||
/// The directory plugins will be loaded from
|
||||
prefix: Path,
|
||||
}
|
||||
|
|
@ -53,7 +53,7 @@ impl PluginManager {
|
|||
///
|
||||
/// This is to run passes over the cleaned crate. Plugins run this way
|
||||
/// correspond to the A-aux tag on Github.
|
||||
pub fn add_plugin(&mut self, plugin: plugin_callback) {
|
||||
pub fn add_plugin(&mut self, plugin: PluginCallback) {
|
||||
self.callbacks.push(plugin);
|
||||
}
|
||||
/// Run all the loaded plugins over the crate, returning their results
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue