-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.I-compiletimeIssue: Problems and improvements with respect to compile times.Issue: Problems and improvements with respect to compile times.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.
Description
The row and column aren't usually useful, because there's no context. An error pointing to unwrap
is almost completely useless. On platforms where backtraces are already working, it should replace the current failure messages. Failure indicates a logic error (bug) and context is important for tracking it down.
An abort
would be far more usable because it provides a whole core dump including a backtrace with all of the local variables.
Relocations from the bloated failure messages are the cause of over 50% of the time taken by rustc
for hello world on Windows. It's much less ridiculous on other platforms, but the bloat is still a very serious performance issue in many performance critical parts of the standard libraries and in user code.
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.I-compiletimeIssue: Problems and improvements with respect to compile times.Issue: Problems and improvements with respect to compile times.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.