about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2025-08-10 19:45:53 +1000
committerGitHub <noreply@github.com>2025-08-10 19:45:53 +1000
commitb30fe4bb8b009c0e9aa0b9d2713bd30a53531720 (patch)
tree0f0d6fb29936c458d79bbf66dbaf2734e38371e2 /compiler/rustc_trait_selection/src
parentb81be36719fa59b1ca2bb97eb6e136244fecf5c6 (diff)
parent2736d66a1f76e4829d95145a60b13bf695d5ef44 (diff)
downloadrust-b30fe4bb8b009c0e9aa0b9d2713bd30a53531720.tar.gz
rust-b30fe4bb8b009c0e9aa0b9d2713bd30a53531720.zip
Rollup merge of #145147 - fee1-dead-contrib:push-mxxpmlpmzmsz, r=compiler-errors
rename `TraitRef::from_method` to `from_assoc`

also add a note to `GenericArgs::truncate_to`
Diffstat (limited to 'compiler/rustc_trait_selection/src')
-rw-r--r--compiler/rustc_trait_selection/src/traits/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/mod.rs b/compiler/rustc_trait_selection/src/traits/mod.rs
index 08315dbd21f..a9fb16b8000 100644
--- a/compiler/rustc_trait_selection/src/traits/mod.rs
+++ b/compiler/rustc_trait_selection/src/traits/mod.rs
@@ -763,7 +763,7 @@ fn instantiate_and_check_impossible_predicates<'tcx>(
     // Specifically check trait fulfillment to avoid an error when trying to resolve
     // associated items.
     if let Some(trait_def_id) = tcx.trait_of_assoc(key.0) {
-        let trait_ref = ty::TraitRef::from_method(tcx, trait_def_id, key.1);
+        let trait_ref = ty::TraitRef::from_assoc(tcx, trait_def_id, key.1);
         predicates.push(trait_ref.upcast(tcx));
     }