fix: include caller module name in use Tesla deprecation warning#832
Conversation
The deprecation warning for `use Tesla` / `use Tesla.Builder` now includes the name of the module invoking the macro, making it easier to locate and migrate deprecated usages in large codebases. Made-with: Cursor
PR SummaryLow Risk Overview Written by Cursor Bugbot for commit d4da0dc. This will update automatically on new commits. Configure here. |
There was a problem hiding this comment.
Pull request overview
Updates Tesla’s use Tesla / use Tesla.Builder deprecation warning to include the caller module name, making deprecated macro usages easier to locate during compilation.
Changes:
- Capture the invoking module via
__CALLER__.moduleinsideTesla.Builder.__using__/1. - Include the caller module name in the emitted
IO.warn/1deprecation message.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The deprecation warning for
use Tesla/use Tesla.Buildernow includes the name of the module invoking the macro, making it easier to locate and migrate deprecated usages in large codebases.