Fix dogfood failures by refactoring open_options
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#![feature(plugin_registrar, box_syntax)]
|
||||
#![feature(rustc_private, collections)]
|
||||
#![feature(num_bits_bytes, iter_arith)]
|
||||
#![feature(custom_attribute)]
|
||||
#![allow(unknown_lints)]
|
||||
|
||||
// this only exists to allow the "dogfood" integration test to work
|
||||
@@ -77,6 +78,7 @@ mod reexport {
|
||||
}
|
||||
|
||||
#[plugin_registrar]
|
||||
#[rustfmt_skip]
|
||||
pub fn plugin_registrar(reg: &mut Registry) {
|
||||
reg.register_late_lint_pass(box types::TypePass);
|
||||
reg.register_late_lint_pass(box misc::TopLevelRefPass);
|
||||
@@ -130,8 +132,8 @@ pub fn plugin_registrar(reg: &mut Registry) {
|
||||
reg.register_late_lint_pass(box array_indexing::ArrayIndexing);
|
||||
reg.register_late_lint_pass(box panic::PanicPass);
|
||||
|
||||
reg.register_lint_group("clippy_pedantic",
|
||||
vec![
|
||||
|
||||
reg.register_lint_group("clippy_pedantic", vec![
|
||||
methods::OPTION_UNWRAP_USED,
|
||||
methods::RESULT_UNWRAP_USED,
|
||||
methods::WRONG_PUB_SELF_CONVENTION,
|
||||
@@ -150,8 +152,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
|
||||
unicode::UNICODE_NOT_NFC,
|
||||
]);
|
||||
|
||||
reg.register_lint_group("clippy",
|
||||
vec![
|
||||
reg.register_lint_group("clippy", vec![
|
||||
approx_const::APPROX_CONSTANT,
|
||||
array_indexing::OUT_OF_BOUNDS_INDEXING,
|
||||
attrs::INLINE_ALWAYS,
|
||||
|
||||
Reference in New Issue
Block a user