about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src/check_unused.rs
AgeCommit message (Collapse)AuthorLines
2023-03-22Move useless_anynous_reexport lint into unused_importsGuillaume Gomez-2/+40
2023-02-25Address review.Camille GILLOT-10/+6
2023-02-22Remove some resolver outputs.Camille GILLOT-1/+0
2023-02-22Move the unused extern crate check back to the resolver.Camille GILLOT-13/+125
2023-02-20Prepare for adding a `TyCtxt` to `Resolver`Oli Scherer-2/+2
2023-02-14Separate the lifetime of the session and the arena in the resolverOli Scherer-5/+5
2023-01-19Use UnordMap instead of FxHashMap in define_id_collections!().Michael Woerister-5/+5
2022-10-31resolve: Not all imports have their own `NodeId`Vadim Petrochenkov-4/+4
2022-09-27rustc_typeck to rustc_hir_analysislcnr-1/+1
2022-08-27rustc_middle: Remove `Visibility::Invisible`Vadim Petrochenkov-1/+1
2022-06-14Make ResolverAstLowering a struct.Camille GILLOT-1/+0
2022-05-20Remove `crate` visibility usage in compilerJacob Pratt-1/+1
2022-05-17Omit unnecessary help to add `#[cfg(test)]` when already annotatedKen Matsui-14/+21
2022-04-05span: move `MultiSpan`David Wood-2/+2
`MultiSpan` contains labels, which are more complicated with the introduction of diagnostic translation and will use types from `rustc_errors` - however, `rustc_errors` depends on `rustc_span` so `rustc_span` cannot use types like `DiagnosticMessage` without dependency cycles. Introduce a new `rustc_error_messages` crate that can contain `DiagnosticMessage` and `MultiSpan`. Signed-off-by: David Wood <david.wood@huawei.com>
2021-12-16suggest adding a `#[cfg(test)]` to test modulesTakayuki Maeda-1/+19
remove a empty line import `module_to_string` use `contains("test")` show a suggestion in case module starts_with/ends_with "test" replace `parent` with `containing`
2021-11-09Add `ty::Visibility::is_public()`inquisitivecrystal-2/+1
2021-08-22Stop tracking namespce in used_imports.Mara Bos-2/+1
The information was tracked, but unused.
2021-08-12Include attributes in removal span for unused imports.Mara Bos-1/+1
2020-09-10Attach `TokenStream` to `ast::Visibility`Aaron Hill-1/+1
A `Visibility` does not have outer attributes, so we only capture tokens when parsing a `macro_rules!` matcher
2020-08-30mv compiler to compiler/mark-0/+328