-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-codegenArea: Code generationArea: Code generationA-syntaxextArea: Syntax extensionsArea: Syntax extensionsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.Call for participation: Hard difficulty. Experience needed to fix: A lot.
Description
It would be great if when asserts failed they printed something more useful than the offending line. Currently they print something like:
Assertion 'x < y + bar() failed', src/foo.rs:561
It'd be way nicer if they printed the values of variables that they use and the results of the functions they call:
Assertion 'x{10} < y{2} + bar(){4} failed', src/foo.rs:561
Metadata
Metadata
Assignees
Labels
A-codegenArea: Code generationArea: Code generationA-syntaxextArea: Syntax extensionsArea: Syntax extensionsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.Call for participation: Hard difficulty. Experience needed to fix: A lot.