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

Segfault with simple twiddle objects #5192

Closed
brson opened this issue Mar 2, 2013 · 3 comments
Closed

Segfault with simple twiddle objects #5192

brson opened this issue Mar 2, 2013 · 3 comments
Labels
A-codegen Area: Code generation A-trait-system Area: Trait system
Milestone

Comments

@brson
Copy link
Contributor

brson commented Mar 2, 2013

pub trait EventLoop {
}

pub struct UvEventLoop {
    uvio: int
}

pub impl UvEventLoop {
    static fn new() -> UvEventLoop {
        UvEventLoop {
            uvio: 0
        }
    }
}

impl EventLoop for UvEventLoop {
}

pub struct Scheduler {
    event_loop: ~EventLoop,
}

pub impl Scheduler {

    static fn new(event_loop: ~EventLoop) -> Scheduler {
        Scheduler {
            event_loop: event_loop,
        }
    }
}

fn main() {
    let mut sched = Scheduler::new(~UvEventLoop::new() as ~EventLoop);
}

Blocks #4419

bors added a commit that referenced this issue Mar 12, 2013
r?

Followup to #5022. This is the same, but everything is in `core::rt` now. `std::uv_ll` is moved to `core::unstable::uvll`, with the intent that it eventually move into its own crate (blocked on #5192 at least). I've had to disable the uv tests because of #2064. All of `core::rt` is disabled on platforms that aren't mac or linux until I complete the windows thread local storage bindings and ARM context switching.

My immediate next priorities will be to fix #2064 and clean up the uv bindings, get everything building on all platforms.
@graydon
Copy link
Contributor

graydon commented May 1, 2013

possibly addressed by #5597 ? not sure

@graydon
Copy link
Contributor

graydon commented May 1, 2013

assigning bug; change assignment if you disagree

@catamorphism
Copy link
Contributor

This seems to be fixed. I'll check in the test case.

@ghost ghost assigned catamorphism Jun 26, 2013
bors added a commit to rust-lang-ci/rust that referenced this issue May 2, 2020
…-fn, r=flip1995

Prevent `missing_const_for_fn` on functions with const generic params

`const` functions cannot have const generic parameters so prevent the
`missing_const_for_fn` lint from firing in that case.

changelog: Fix false positive in `missing_const_for_fn`

Fixes rust-lang#5192
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation A-trait-system Area: Trait system
Projects
None yet
Development

No branches or pull requests

4 participants