]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_middle/src/ty/assoc.rs
New upstream version 1.59.0+dfsg1
[rustc.git] / compiler / rustc_middle / src / ty / assoc.rs
index 5cb2b90fe1116bb7a424ee59332f5008bfb3e8d0..bf5a3e68250a02e4aec066c0fb8c4159af062b92 100644 (file)
@@ -139,7 +139,7 @@ impl<'tcx> AssocItems<'tcx> {
     /// Multiple items may have the same name if they are in different `Namespace`s. For example,
     /// an associated type can have the same name as a method. Use one of the `find_by_name_and_*`
     /// methods below if you know which item you are looking for.
-    pub fn filter_by_name(
+    pub fn filter_by_name<'a>(
         &'a self,
         tcx: TyCtxt<'a>,
         ident: Ident,