diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-07-19 11:38:54 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-19 11:38:54 +0530 |
| commit | d00646b8219e9c5894cccfcd15efb51ea1e710bb (patch) | |
| tree | c24714b735d96ed14aa8ec21652304c1e83b58cc /compiler/rustc_middle/src/infer/mod.rs | |
| parent | 9f6a2fde347430323898baa5d36ac9a028ed37a2 (diff) | |
| parent | 136f017258f9c08ef36c0ea705ddd9ffd75c5b28 (diff) | |
| download | rust-d00646b8219e9c5894cccfcd15efb51ea1e710bb.tar.gz rust-d00646b8219e9c5894cccfcd15efb51ea1e710bb.zip | |
Rollup merge of #99347 - compiler-errors:opaque-type-key-local-def-id, r=oli-obk
Use `LocalDefId` in `OpaqueTypeKey` Addresses a `// FIXME(oli-obk): make this a LocalDefId` r? ``@oli-obk``
Diffstat (limited to 'compiler/rustc_middle/src/infer/mod.rs')
| -rw-r--r-- | compiler/rustc_middle/src/infer/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/infer/mod.rs b/compiler/rustc_middle/src/infer/mod.rs index 55e00c4c0d8..8b2f9bdfd48 100644 --- a/compiler/rustc_middle/src/infer/mod.rs +++ b/compiler/rustc_middle/src/infer/mod.rs @@ -4,7 +4,7 @@ pub mod unify_key; use crate::ty::Region; use crate::ty::Ty; use rustc_data_structures::sync::Lrc; -use rustc_hir::def_id::DefId; +use rustc_hir::def_id::LocalDefId; use rustc_span::Span; /// Requires that `region` must be equal to one of the regions in `choice_regions`. @@ -16,7 +16,7 @@ use rustc_span::Span; #[derive(Debug, Clone, HashStable, TypeFoldable, TypeVisitable, Lift)] pub struct MemberConstraint<'tcx> { /// The `DefId` of the opaque type causing this constraint: used for error reporting. - pub opaque_type_def_id: DefId, + pub opaque_type_def_id: LocalDefId, /// The span where the hidden type was instantiated. pub definition_span: Span, |
