about summary refs log tree commit diff
path: root/src/librustc/lint/mod.rs
AgeCommit message (Collapse)AuthorLines
2020-01-11lints: promote levels.rs to lint.rs & extract passes.rsMazdak Farrokhzad-316/+0
2020-01-11inline maybe_lint_level_rootMazdak Farrokhzad-6/+0
2020-01-11move struct_lint_level to levels.rsMazdak Farrokhzad-157/+1
2020-01-11move LintSource to levelsMazdak Farrokhzad-20/+2
2020-01-11move in_derive_expansion as Span methodMazdak Farrokhzad-8/+0
2020-01-11nix syntax::early_buffered_lintsMazdak Farrokhzad-1/+1
2020-01-11move {rustc -> rustc_session}::lint::builtinMazdak Farrokhzad-1/+1
2020-01-11prepare moving HardwiredLints to rustc_sessionMazdak Farrokhzad-39/+6
2020-01-11buffered lint infra -> rustc_sessionMazdak Farrokhzad-57/+2
2020-01-10nix syntax::errors & prefer rustc_errors over errorsMazdak Farrokhzad-1/+1
2020-01-08normalize rustc::hir::intravisit importsMazdak Farrokhzad-4/+3
2020-01-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-3/+3
2020-01-04move Node{Map,Set} -> rustc_session::node_idMazdak Farrokhzad-2/+2
2020-01-04Auto merge of #67788 - cjgillot:delint-day, r=Zoxcbors-124/+4
Move early and late lint mechanisms to librustc_lint. As requested, split from #67737 r? @Zoxc
2020-01-02Normalize `syntax::symbol` imports.Mazdak Farrokhzad-1/+1
2020-01-02Normalize `syntax::source_map` imports.Mazdak Farrokhzad-1/+1
2020-01-01Move lint levels machanism in librustc_lint.Camille GILLOT-120/+1
2020-01-01Move late lint machanism in librustc_lint.Camille GILLOT-2/+1
2020-01-01Move early lint machanism in librustc_lint.Camille GILLOT-4/+4
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-2/+2
2019-12-27Syntax for hir::Ty.Camille GILLOT-9/+9
2019-12-26Syntax for hir::Expr.Camille GILLOT-13/+13
2019-12-24x.py fmt after previous deignoreMark Rousskov-57/+71
2019-12-21Use Arena inside hir::Body.Camille GILLOT-4/+4
2019-12-21Use Arena inside hir::Mod.Camille GILLOT-2/+2
2019-12-21Use Arena inside hir::StructField.Camille GILLOT-2/+2
2019-12-21Use Arena inside hir::EnumDef.Camille GILLOT-5/+5
2019-12-21Use Arena inside hir::ImplItem.Camille GILLOT-3/+3
2019-12-21Use Arena inside hir::TraitItem.Camille GILLOT-3/+3
2019-12-21Use Arena inside hir::ForeignItem.Camille GILLOT-3/+3
2019-12-21Use Arena inside hir::Item.Camille GILLOT-3/+3
2019-12-21Use Arena inside hir::Crate.Camille GILLOT-3/+3
2019-12-12Remove `ast::{Impl,Trait}{Item,ItemKind}`.Mazdak Farrokhzad-4/+4
2019-12-03Move early lint declarations to librustc_sessionMark Rousskov-107/+1
2019-12-03Move Lint to rustc_sessionMark Rousskov-85/+1
This commit breaks early-lint registration, which will be fixed in the next commit. This movement will allow essentially all crates in the compiler tree to declare lints (though not lint passes).
2019-12-03Move Level to rustc_sessionMark Rousskov-41/+3
2019-11-19More HashStable.Camille GILLOT-15/+2
2019-11-03Delete lint buffer from SessionMark Rousskov-1/+1
2019-11-03Migrate resolver over to internal lint bufferMark Rousskov-0/+21
2019-11-03Only permit taking buffered lints inside lint internalsMark Rousskov-1/+1
2019-11-03Remove unused get_any methodMark Rousskov-5/+0
2019-10-27rustc, rustc_passes: don't depend on syntax_expand.Mazdak Farrokhzad-1/+1
This is done by moving some data definitions to syntax::expand.
2019-10-17Create lint store during plugin registrationMark Rousskov-2/+2
Remove lint store from Session
2019-10-17Remove all borrows of lint store from Session from librustcMark Rousskov-6/+9
Access through tcx is fine -- by that point, the lint store is frozen, but direct access through Session will go away in future commits, as lint store is still mutable in early stages of Session, and will be removed completely.
2019-10-17Access future incompatibility information directlyMark Rousskov-2/+1
Avoid querying LintStore when not necessary
2019-10-17Remove side table of future incompatibility infoMark Rousskov-2/+18
Moves this information to a direct field of Lint, which is where it belongs.
2019-10-17Make declare_lint take any amount of boolean fieldsMark Rousskov-6/+17
2019-10-17Move to storing constructor functions inside LintStoreMark Rousskov-3/+0
This stops storing the pass objects and instead stores constructor functions. The primary effect is that LintStore no longer has any interior mutability.
2019-10-17Make get_lints be a static functionMark Rousskov-21/+15
This moves from calling get_lints on instantiated pass objects to the raw object
2019-10-17Lints being from a plugin is dependent on the lint, not the registrationMark Rousskov-0/+5