-
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
Replace uint by usize in libcore/panicking.rs #22507
Replace uint by usize in libcore/panicking.rs #22507
Conversation
r? @huonw (rust_highfive has picked a reviewer for you, use r? to override) |
I suspect most of these should be |
@@ -34,25 +34,25 @@ use fmt; | |||
|
|||
#[cold] #[inline(never)] // this is the slow path, always | |||
#[lang="panic"] | |||
pub fn panic(expr_file_line: &(&'static str, &'static str, uint)) -> ! { | |||
pub fn panic(expr_file_line: &(&'static str, &'static str, usize)) -> ! { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be either u32
or u64
, you could make an argument for either -- I'd suggest u64
based on the maximum file length we report and the lack of performance issues here.
I was speaking with @aturon about the argument size, I was more for u32 but u64 seems better. |
cc #22240 |
Conflicts: src/libcore/panicking.rs
Conflicts: src/libcore/panicking.rs
I believe this actually ended up getting taken care of in #22853 actually, but thanks for the PR! |
Part of #22240.