Skip to content

Fix incorrect panic messages in MulAssign and DivAssign#23

Open
cyrusagent-staging[bot] wants to merge 1 commit intomainfrom
pack-341-find-a-small-improvement
Open

Fix incorrect panic messages in MulAssign and DivAssign#23
cyrusagent-staging[bot] wants to merge 1 commit intomainfrom
pack-341-find-a-small-improvement

Conversation

@cyrusagent-staging
Copy link

Summary

Fixed copy-paste errors in error messages for operator trait implementations in tensor/src/core/traits.rs.

Changes

  • Line 150 (MulAssign): Changed panic message from "inplace subtraction" → "inplace multiplication"
  • Line 192 (DivAssign): Changed panic message from "inplace subtraction" → "inplace division"

These were clear copy-paste errors that would confuse developers debugging shape mismatch errors during in-place tensor operations.

Additional Changes

  • Automatic formatting fixes from cargo fmt (import ordering and whitespace cleanup)

Test Plan

  • ✅ All 44 existing tests pass
  • ✅ Release build completes successfully
  • ✅ No functionality changes, only error message corrections

🤖 Generated with Claude Code

…ntations

Fixed copy-paste errors in error messages:
- MulAssign now correctly reports "inplace multiplication" instead of "inplace subtraction"
- DivAssign now correctly reports "inplace division" instead of "inplace subtraction"

Also includes automatic formatting fixes from cargo fmt (import ordering and whitespace).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants