diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-02-26 20:48:50 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-04-03 15:59:21 +0000 |
| commit | fea7b59d12ad34f18e03c2c6646cd8971dc2f216 (patch) | |
| tree | 8584b04d04d6dd3c8f3ecb7b79ecc9da158244ba /compiler/rustc_interface/src | |
| parent | 17675855094906ba90aca2f119be8fb7afc4d456 (diff) | |
| download | rust-fea7b59d12ad34f18e03c2c6646cd8971dc2f216.tar.gz rust-fea7b59d12ad34f18e03c2c6646cd8971dc2f216.zip | |
Make check_match take a LocalDefId.
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 413b40ab808..8d4892470ac 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -765,7 +765,7 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> { parallel!( { sess.time("match_checking", || { - tcx.hir().par_body_owners(|def_id| tcx.ensure().check_match(def_id.to_def_id())) + tcx.hir().par_body_owners(|def_id| tcx.ensure().check_match(def_id)) }); }, { |
