diff options
| author | Michael Goulet <michael@errs.io> | 2024-11-03 21:47:56 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-11-04 04:45:52 +0000 |
| commit | be4b0261c2d1beb2676bab585556b8893d1cee1a (patch) | |
| tree | 412544ad28a0e8efe90d8af3ca01be24053ebe25 /compiler/rustc_ty_utils/src/ty.rs | |
| parent | 8e6af16192b754f86defbad2bdb76940cb15c901 (diff) | |
| download | rust-be4b0261c2d1beb2676bab585556b8893d1cee1a.tar.gz rust-be4b0261c2d1beb2676bab585556b8893d1cee1a.zip | |
ty::KContainer -> ty::AssocItemContainer::K
Diffstat (limited to 'compiler/rustc_ty_utils/src/ty.rs')
| -rw-r--r-- | compiler/rustc_ty_utils/src/ty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/ty.rs b/compiler/rustc_ty_utils/src/ty.rs index 731d42fc006..2127ba8a423 100644 --- a/compiler/rustc_ty_utils/src/ty.rs +++ b/compiler/rustc_ty_utils/src/ty.rs @@ -135,7 +135,7 @@ fn param_env(tcx: TyCtxt<'_>, def_id: DefId) -> ty::ParamEnv<'_> { if tcx.def_kind(def_id) == DefKind::AssocFn && let assoc_item = tcx.associated_item(def_id) - && assoc_item.container == ty::AssocItemContainer::TraitContainer + && assoc_item.container == ty::AssocItemContainer::Trait && assoc_item.defaultness(tcx).has_value() { let sig = tcx.fn_sig(def_id).instantiate_identity(); |
