Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit ae4b6d6

Browse files
Update docs for AssocItems::filter_by_name_unhygienic
1 parent 2ef7858 commit ae4b6d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_middle/src/ty/assoc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ impl AssocItems {
246246
}
247247

248248
/// Returns an iterator over all associated items with the given name, ignoring hygiene.
249+
///
250+
/// Panics if `name.is_empty()` returns `true`.
249251
pub fn filter_by_name_unhygienic(
250252
&self,
251253
name: Symbol,

0 commit comments

Comments
 (0)