diff options
| author | marmeladema <xademax@gmail.com> | 2020-04-18 15:19:56 +0100 |
|---|---|---|
| committer | marmeladema <xademax@gmail.com> | 2020-04-27 23:55:41 +0100 |
| commit | 49d0b727ea40973e5d2e8547d766190a16146e11 (patch) | |
| tree | 51127f90f8baf35d474ec477807d88da9aec442f /src/librustc_middle | |
| parent | 9e3bb615d5659c62133de5dbf9398be2c9bc6d69 (diff) | |
| download | rust-49d0b727ea40973e5d2e8547d766190a16146e11.tar.gz rust-49d0b727ea40973e5d2e8547d766190a16146e11.zip | |
Accept `LocalDefId` as key for `lint_mod` query
Diffstat (limited to 'src/librustc_middle')
| -rw-r--r-- | src/librustc_middle/query/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_middle/query/mod.rs b/src/librustc_middle/query/mod.rs index fbacda50b97..30c3082f231 100644 --- a/src/librustc_middle/query/mod.rs +++ b/src/librustc_middle/query/mod.rs @@ -403,8 +403,8 @@ rustc_queries! { } Other { - query lint_mod(key: DefId) -> () { - desc { |tcx| "linting {}", describe_as_module(key, tcx) } + query lint_mod(key: LocalDefId) -> () { + desc { |tcx| "linting {}", describe_as_module(key.to_def_id(), tcx) } } /// Checks the attributes in the module. |
