Refactor rustc lint API
This commit is contained in:
parent
65445a571c
commit
a8f7e244b7
64 changed files with 1760 additions and 1555 deletions
|
@ -266,9 +266,8 @@ pub(super) fn generics_of(tcx: TyCtxt<'_>, def_id: DefId) -> ty::Generics {
|
|||
lint::builtin::INVALID_TYPE_PARAM_DEFAULT,
|
||||
param.hir_id,
|
||||
param.span,
|
||||
|lint| {
|
||||
lint.build(TYPE_DEFAULT_NOT_ALLOWED).emit();
|
||||
},
|
||||
TYPE_DEFAULT_NOT_ALLOWED,
|
||||
|lint| lint,
|
||||
);
|
||||
}
|
||||
Defaults::Deny => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue