Auto merge of #113546 - cjgillot:unused-query, r=compiler-errors
Querify unused trait check. This code transitively loads information for all bodies, and from resolutions. As it does not return a value, it should be beneficial to have it as a query.
This commit is contained in:
commit
1554942cdc
4 changed files with 15 additions and 5 deletions
|
@ -898,6 +898,10 @@ rustc_queries! {
|
|||
desc { |tcx| "linting {}", describe_as_module(key, tcx) }
|
||||
}
|
||||
|
||||
query check_unused_traits(_: ()) -> () {
|
||||
desc { "checking unused trait imports in crate" }
|
||||
}
|
||||
|
||||
/// Checks the attributes in the module.
|
||||
query check_mod_attrs(key: LocalDefId) -> () {
|
||||
desc { |tcx| "checking attributes in {}", describe_as_module(key, tcx) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue