-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Compile error (vector sorting) #25768
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
Smaller example: fn main() {
let mut new_map: Vec<*const str> = Vec::new();
new_map.sort();
} For anyone who stumbles on this bug, this is not the normal way of sorting strings. As far as I can determine, |
This triggers the ICE fn main() {
let y: *const str = "";
y == y;
} Apparently raw fat pointers exist, therefore I think |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Taken from (https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports):
I tried to compile code to sort a vector. Instead, it gave me a compile error.
I tried this code:
I expected to see this happen: Compile a program to sort a vector
Instead, this happened: Compile error
Meta
rustc --version --verbose
:rustc 1.0.0 (a59de37 2015-05-13) (built 2015-05-14)
binary: rustc
commit-hash: a59de37
commit-date: 2015-05-13
build-date: 2015-05-14
host: x86_64-apple-darwin
release: 1.0.0
Backtrace:
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with
RUST_BACKTRACE=1
for a backtracethread 'rustc' panicked at 'assertion failed: self.appropriate_rvalue_mode(bcx.ccx()) == ByValue', /Users/rustbuild/src/rust-buildbot/slave/stable-dist-rustc-mac/build/src/librustc_trans/trans/datum.rs:646
stack backtrace:
The text was updated successfully, but these errors were encountered: