about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-04-19 21:06:52 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-04-19 21:06:52 +0200
commitae4b6d6c65c32d41d8017b4e3765a8a1871e8519 (patch)
treeb54151b29b114f080c5e0aabf507da2e3d210b09 /compiler
parent2ef78586529b5f68cc42bcbe9b10b4afe56a942a (diff)
downloadrust-ae4b6d6c65c32d41d8017b4e3765a8a1871e8519.tar.gz
rust-ae4b6d6c65c32d41d8017b4e3765a8a1871e8519.zip
Update docs for `AssocItems::filter_by_name_unhygienic`
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_middle/src/ty/assoc.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/ty/assoc.rs b/compiler/rustc_middle/src/ty/assoc.rs
index 0c44fd2758d..78b2e265b48 100644
--- a/compiler/rustc_middle/src/ty/assoc.rs
+++ b/compiler/rustc_middle/src/ty/assoc.rs
@@ -246,6 +246,8 @@ impl AssocItems {
     }
 
     /// Returns an iterator over all associated items with the given name, ignoring hygiene.
+    ///
+    /// Panics if `name.is_empty()` returns `true`.
     pub fn filter_by_name_unhygienic(
         &self,
         name: Symbol,