-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
column!
should return a fixed size integer
#19284
Comments
This is not backwards-compatible so let's change it before 1.0-final. |
I'd like to take a shot at this one. Could there be a plausible reason for it being a u64 over a u32? |
u32 should be fine. |
u32 should be fine. The |
Did you check |
@kmcallister Thanks, I was thinking the same thing too. |
In theory, very large source code file (> 4 GiB) might require |
This quickly turned into an interesting problem.. I modified I then modified the few places in I left the types as Looking for a thumbs-up or thumbs-down on this approach before continuing.. Thx |
(part of #20761) |
The Rust assertion and backtrace looked very similar to #21682 . |
@brooksbp Couldn't this be resolved using a temporary |
@vojtechkral @nick29581 With LLVM assertion in stage0:
Backtrace:
The diff I am working with is located in #21769. And here https://gist.github.com/brooksbp/babc8303ce5982311ef4 Any suggestions on how to further debug this would be appreciated. Thanks! |
@brooksbp I think it's because you changed the signature of EDIT: Nope, it's defined in |
@vojtechkral thanks. Still hitting the LLVM assertion after reverting the type change in the signature of pub fn panic_fmt(fmt: fmt::Arguments, file_line: &(&'static str, u32)) -> ! {
#[allow(improper_ctypes)]
extern {
#[lang = "panic_fmt"]
fn panic_impl(fmt: fmt::Arguments, file: &'static str, line: uint) -> !;
}
let (file, line) = *file_line;
unsafe { panic_impl(fmt, file, line as uint) }
} |
@brooksbp Finally found the real cause, it was by an indirect call from |
@vojtechkral Thanks. I have reproduced what you're seeing. I think more than the @vojtechkral How did you end up zero'ing in on the code in |
@brooksbp No, I don't really know how to debug those asserts to more detail. I found out that the |
This seems resolved. |
This was indeed fixed and can be closed. |
Currently
column!
returns auint
, which does not make sense, because the number of the column in the source code is not related to the pointer size. It should beu32
oru64
.The text was updated successfully, but these errors were encountered: