Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion failure sometimes shows file+line number of macro, instead of use site #73119

Closed
RalfJung opened this issue Jun 8, 2020 · 2 comments
Labels
C-bug Category: This is a bug. F-track_caller `#![feature(track_caller)]`

Comments

@RalfJung
Copy link
Member

RalfJung commented Jun 8, 2020

Sometimes, when an assertion fails, the file+line point to the macro in libstd, instead of the place where the macro is used. See for example #73007 (comment), and @Mark-Simulacrum said they also saw this happen locally.

Currently, it is unclear how to reproduce this problem.

@jonas-schievink jonas-schievink added C-bug Category: This is a bug. F-track_caller `#![feature(track_caller)]` labels Jun 8, 2020
@Aaron1011
Copy link
Member

I believe this is a duplicate of #70963, and will be fixed by #72121

@RalfJung
Copy link
Member Author

RalfJung commented Jun 8, 2020

Sounds plausible, yeah. Closing then, thanks!

@RalfJung RalfJung closed this as completed Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. F-track_caller `#![feature(track_caller)]`
Projects
None yet
Development

No branches or pull requests

3 participants