-
Notifications
You must be signed in to change notification settings - Fork 13.3k
LLVM assert abort while trying to take address of raw pointer in static #13973
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
Comments
/cc @eddyb |
Triage:
|
Confirm. |
tl;dr: this bug still reproduces This still fails the llvm assertion that @steveklabnik mentioned. fn main() {
unsafe {
static BLOCK_UNSAFE_SAFE_PTR: &'static isize = &*(0xdeadbeef as *const isize);
}
} |
I am no longer able to reproduce this on |
This still fails (when LLVM assertions are enabled) with
|
This fails with a regular build error on the latest nightly:
|
Agreed! |
@alexcrichton is there a test for this? I didn't notice one. |
Probably not specifically, but PRs which often fix issues like this tend to have their own test cases anyway. |
Remove duplicate E0396 tests Resolves FIXME rust-lang#13973 (erroneously marked as rust-lang#13972). A test for E0396 already exists in `test/ui/const-deref-ptr.rs`.
Remove duplicate E0396 tests Resolves FIXME rust-lang#13973 (erroneously marked as rust-lang#13972). A test for E0396 already exists in `test/ui/const-deref-ptr.rs`.
Remove duplicate E0396 tests Resolves FIXME rust-lang#13973 (erroneously marked as rust-lang#13972). A test for E0396 already exists in `test/ui/const-deref-ptr.rs`.
minor: Fix `replace_arith` assist label
Testcase:
Output:
The text was updated successfully, but these errors were encountered: