about summary refs log tree commit diff
path: root/src/librustc/lint/internal.rs
AgeCommit message (Collapse)AuthorLines
2020-01-11{rustc::lint -> rustc_lint}::internalMazdak Farrokhzad-241/+0
2020-01-11lints: promote levels.rs to lint.rs & extract passes.rsMazdak Farrokhzad-1/+2
2020-01-11prepare moving HardwiredLints to rustc_sessionMazdak Farrokhzad-4/+2
2020-01-10nix syntax::errors & prefer rustc_errors over errorsMazdak Farrokhzad-1/+1
2020-01-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-1/+1
2020-01-02Normalize `syntax::symbol` imports.Mazdak Farrokhzad-1/+1
2019-12-27Syntax for hir::Ty.Camille GILLOT-5/+5
2019-12-22Format the worldMark Rousskov-3/+4
2019-12-201. ast::Mutability::{Mutable -> Mut, Immutable -> Not}.Mazdak Farrokhzad-1/+1
2. mir::Mutability -> ast::Mutability.
2019-12-03Move early lint declarations to librustc_sessionMark Rousskov-0/+1
2019-11-10Merge hir::Mutability into ast::Mutability.Camille GILLOT-1/+1
2019-09-26Rename `Item.node` to `Item.kind`varkor-1/+1
2019-09-26Rename `Ty.node` to `Ty.kind`varkor-2/+2
2019-08-30Add a "diagnostic item" schemeOliver Scherer-11/+5
This allows lints and other diagnostics to refer to items by a unique ID instead of relying on whacky path resolution schemes that may break when items are relocated.
2019-08-15hygiene: `ExpnInfo` -> `ExpnData`Vadim Petrochenkov-4/+4
For naming consistency with everything else in this area
2019-08-15hygiene: Remove `Option`s from functions returning `ExpnInfo`Vadim Petrochenkov-22/+11
The expansion info is not optional and should always exist
2019-08-15syntax_pos: Introduce a helper for checking whether a span comes from expansionVadim Petrochenkov-1/+1
2019-08-14Handle cfg(bootstrap) throughoutMark Rousskov-1/+1
2019-07-11Rename some things in `syntax_pos/hygiene`Vadim Petrochenkov-2/+2
More consistent with other naming: ExpnFormat -> ExpnKind ExpnKind::name -> ExpnKind::descr DesugaringKind::name -> DesugaringKind::descr Shorter, no tautology: CompilerDesugaring -> Desugaring CompilerDesugaringKind -> DesugaringKind
2019-06-24Turn internal lints into tool lintsflip1995-11/+11
2019-06-24Allow default_hash_types in some cratesflip1995-1/+1
2019-06-24Only allow {declare,impl}_lint_pass macros for implementing LintPassflip1995-10/+24
2019-06-24Implement initernal lint LINT_PASS_IMPL_WITHOUT_MACROflip1995-17/+33
2019-05-29Introduce and use `SyntaxContext::outer_expn_info()`.Nicholas Nethercote-1/+1
It reduces two `hygiene_data` accesses to one on some hot paths.
2019-05-27Use `Symbol` more in lint APIsOliver Scherer-10/+16
2019-05-03rustc: rename hir::def::Def to Res (short for "resolution").Eduard-Mihai Burtescu-3/+3
2019-04-28Implement internal lintsflip1995-10/+122
- USAGE_OF_QUALIFIED_TY - TY_PASS_BY_REFERENCE
2019-04-12Uplift `get_def_path` from Clippyflip1995-1/+1
This uplifts `get_def_path` from Clippy. This is a follow up on the implementation of internal lints: #59316 The internal lint implementation also copied the implementation of the `AbsolutePathPrinter`. To get rid of this code duplication this also uplifts the `get_def_path` function from Clippy. This also renames `match_path` to `match_def_path`, as it was originally named in Clippy.
2019-04-05Move match_path from DefId to lint::LateContextflip1995-1/+1
2019-04-04Use declare_lint_pass! and impl_lint_pass! in more placeshgallagher1993-20/+2
2019-04-03Deduplicate code in TyKind lintflip1995-48/+30
2019-04-03Fix bug in TyKind lintflip1995-5/+8
2019-04-03Make internal lints allow-by-defaultflip1995-2/+2
2019-04-03use check_path instead of check_exprflip1995-49/+27
2019-04-03Fix rebase falloutflip1995-16/+15
2019-04-03Add internal lints default_hash_types and usage_of_ty_tykindflip1995-0/+165