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 /src/tools/clippy/clippy_utils | |
| parent | 8e6af16192b754f86defbad2bdb76940cb15c901 (diff) | |
| download | rust-be4b0261c2d1beb2676bab585556b8893d1cee1a.tar.gz rust-be4b0261c2d1beb2676bab585556b8893d1cee1a.zip | |
ty::KContainer -> ty::AssocItemContainer::K
Diffstat (limited to 'src/tools/clippy/clippy_utils')
| -rw-r--r-- | src/tools/clippy/clippy_utils/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/clippy/clippy_utils/src/lib.rs b/src/tools/clippy/clippy_utils/src/lib.rs index ad85dfa2d1e..2b91f528807 100644 --- a/src/tools/clippy/clippy_utils/src/lib.rs +++ b/src/tools/clippy/clippy_utils/src/lib.rs @@ -3340,8 +3340,8 @@ pub fn get_path_from_caller_to_method_type<'tcx>( let assoc_item = tcx.associated_item(method); let def_id = assoc_item.container_id(tcx); match assoc_item.container { - rustc_ty::TraitContainer => get_path_to_callee(tcx, from, def_id), - rustc_ty::ImplContainer => { + rustc_ty::AssocItemContainer::Trait => get_path_to_callee(tcx, from, def_id), + rustc_ty::AssocItemContainer::Impl => { let ty = tcx.type_of(def_id).instantiate_identity(); get_path_to_ty(tcx, from, ty, args) }, |
