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_middle/src/util | |
| parent | 8e6af16192b754f86defbad2bdb76940cb15c901 (diff) | |
ty::KContainer -> ty::AssocItemContainer::K
Diffstat (limited to 'compiler/rustc_middle/src/util')
| -rw-r--r-- | compiler/rustc_middle/src/util/call_kind.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/util/call_kind.rs b/compiler/rustc_middle/src/util/call_kind.rs index fe30cbfae4e..ed27a880562 100644 --- a/compiler/rustc_middle/src/util/call_kind.rs +++ b/compiler/rustc_middle/src/util/call_kind.rs @@ -72,8 +72,8 @@ pub fn call_kind<'tcx>( let parent = tcx.opt_associated_item(method_did).and_then(|assoc| { let container_id = assoc.container_id(tcx); match assoc.container { - AssocItemContainer::ImplContainer => tcx.trait_id_of_impl(container_id), - AssocItemContainer::TraitContainer => Some(container_id), + AssocItemContainer::Impl => tcx.trait_id_of_impl(container_id), + AssocItemContainer::Trait => Some(container_id), } }); |
