Skip to content

Commit 3871cc7

Browse files
committed
expand comment
1 parent cd3b29b commit 3871cc7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • crates/anodized-core/src/instrument

crates/anodized-core/src/instrument/impls.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ use crate::{
1212
};
1313

1414
impl Mode {
15-
/// Expand impl items.
15+
/// Expand items inside an inherent impl.
16+
///
17+
/// Reasons why impl functions must be treated differently from free-standing functions:
18+
/// - The `__anodized_split_*` function must be qualified as `Self::` inside an impl.
1619
pub fn instrument_impl(&self, spec: DataSpec, mut the_impl: ItemImpl) -> Result<ItemImpl> {
1720
if the_impl.trait_.is_some() {
1821
return Err(make_item_error(&the_impl, "trait impl"));

0 commit comments

Comments
 (0)