Skip to content
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

ICE trying to deref a newtype struct implementing Drop #5451

Closed
ben0x539 opened this issue Mar 20, 2013 · 1 comment
Closed

ICE trying to deref a newtype struct implementing Drop #5451

ben0x539 opened this issue Mar 20, 2013 · 1 comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@ben0x539
Copy link
Contributor

struct S(int);

impl Drop for S {
    fn finalize(&self) {}
}

fn main() {
    *S(42);
}

$ RUST_LOG=rustc=1,::rt::backtrace rustc newtype_ice.rs
rust: ~"invoke at newtype_ice.rs:8:5: 8:11"
rust: task failed at 'assertion failed: adt::is_newtypeish(repr)', /home/ben/code/repos/rust/src/librustc/middle/trans/datum.rs:722
[...]

@Aatch
Copy link
Contributor

Aatch commented Apr 29, 2013

Fixed with 0.6

@Aatch Aatch closed this as completed Apr 29, 2013
oli-obk pushed a commit to oli-obk/rust that referenced this issue May 2, 2020
… r=phansch

Allow UUID style formatting for `inconsistent_digit_grouping` lint

This change adds a check to the `inconsistent_digit_grouping` to add a check for
NumericLiterals that follow the UUID format of 8-4-4-4-12.

If the NumericLiteral matches the UUID format, no further inconsistent grouping checks
will be performed.

Closes rust-lang#5431

changelog: Allow UUID style formatting for `inconsistent_digit_grouping` lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

2 participants