diff options
| author | Miguel Guarniz <mi9uel9@gmail.com> | 2022-07-19 17:06:52 -0400 |
|---|---|---|
| committer | Miguel Guarniz <mi9uel9@gmail.com> | 2022-07-29 18:26:10 -0400 |
| commit | 16513d689e4fe30e58a37dd773af5be9210ebcbd (patch) | |
| tree | 3b4375ba578709ef3142542c85d2ef411987ddea /compiler/rustc_trait_selection/src | |
| parent | 25bdc8965e7a80cb3a72da79ca568953738fe433 (diff) | |
| download | rust-16513d689e4fe30e58a37dd773af5be9210ebcbd.tar.gz rust-16513d689e4fe30e58a37dd773af5be9210ebcbd.zip | |
Rename local_did to def_id
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
Diffstat (limited to 'compiler/rustc_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs index b000774ed2a..03a8de7c760 100644 --- a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs +++ b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs @@ -1783,7 +1783,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> { let generator_body = generator_did .as_local() - .and_then(|local_did| hir.maybe_body_owned_by(local_did)) + .and_then(|def_id| hir.maybe_body_owned_by(def_id)) .map(|body_id| hir.body(body_id)); let is_async = match generator_did.as_local() { Some(_) => generator_body |
