]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/check/mod.rs
Auto merge of #43737 - GuillaumeGomez:duplicate-method, r=eddyb
[rust.git] / src / librustc_typeck / check / mod.rs
index 2181906fc8bbe65361c7ae4865f9eff400710ea2..b9a9a954006572b7ea2433582460ad3ffa0e8f0d 100644 (file)
@@ -4016,7 +4016,7 @@ pub fn resolve_ty_and_def_ufcs<'b>(&self,
             Ok(def) => def,
             Err(error) => {
                 let def = match error {
-                    method::MethodError::PrivateMatch(def) => def,
+                    method::MethodError::PrivateMatch(def, _) => def,
                     _ => Def::Err,
                 };
                 if item_name != keywords::Invalid.name() {