Add deprecated_name argument to the register lint group functions

This commit is contained in:
flip1995 2018-08-27 23:24:42 +02:00 committed by Manish Goregaokar
parent 9521deecc4
commit ce173c12e6
6 changed files with 43 additions and 19 deletions

View file

@ -49,5 +49,5 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
#[plugin_registrar]
pub fn plugin_registrar(reg: &mut Registry) {
reg.register_late_lint_pass(box Pass);
reg.register_lint_group("lint_me", vec![TEST_LINT, PLEASE_LINT]);
reg.register_lint_group("lint_me", None, vec![TEST_LINT, PLEASE_LINT]);
}