-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Missing filename and line number in error #811
Comments
Removing the curly braces around the Furthermore, this appears with
Given that, I'm going to assume for now that this is caused by or similar to rust-lang/rust#43081. As for resolving the error, |
Just to +1 onto this, I've recently been upgrading to 0.4, and it's been a bit of a nightmare, because I have dozens of errors with no indication of where they are coming from. I've had to resort to having a separate
|
@MetallicCloud Please report the source that resulted in losing spans. That'll help resolve this issue upstream. |
@SergioBenitez Hmm, I don't know how hopeful this is going to be. I've been trying to come up with a minimum reproducible set of code, however the issue keeps moving. For instance, in the code below I've moved RouteResult::Redirect from a String to rocket::http::uri::Origin for 0.4 (note user_login)...
I get the vague error:
However I had to go back a few commits to get that unspecific error. I've spent days moving to 0.4 and finally have it compiling, so when I replaced my impl solution with the above code in |
Do you geta better error message if you join the else with the { on the following line, as in |
@jebrosen No, that doesn't help. But I've seen it depend on the contents of the block. For instance, changing seemingly unrelated other parts of the code makes the above give the line number, however if I get it showing the line number, then replace the above else block with
It stops working again. |
@MetallicCloud @jminer Can you try the latest nightly and report whether you get the correct diagnostic output? |
I've confirmed that the original report is now resolved upstream by rust-lang/rust#55971. @MetallicCloud I'd bet your issues are resolved as well, but if you spot any more issues like this, please do report them! |
Sorry for the slow response. Yep, good as gold now. Thanks! |
Hi, I'm commenting on this old issue because the issue reappeared, I experience this with rocket Do you know what can be causing that ? Thanks |
@lroux-at-jellysmack It's a bug in |
I don't know if this is a rustc bug or Rocket bug, but since it is happening with a Rocket macro, I thought I'd start here. While updating Rocket to the newest version, I ran into a compile error with no file or line number.
Newest Rocket from git (983ee9b)
Windows 10 64-bit
Rust nightly 8b096314a 2018-11-02
This issue also happened with the Rocket and rustc from a week ago.
I get this error
which does not include the file or line number of the error. I've tried making some changes like removing the match so I'm ignoring the return value of create_user(), and then I do get file and line number. But with the code as is, it seems all errors in the function are missing file and line.
The text was updated successfully, but these errors were encountered: