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

Debug-only dynamic checks for layout and GC use of DOMRefCell #3797

Merged
merged 6 commits into from Oct 25, 2014

Commits on Oct 24, 2014

  1. Customize RefCell instead of wrapping it

    This gets rid of a dubious transmute:
    
        let val = mem::transmute::<&RefCell<T>, &T>(&self.base);
    
    The code duplication will be reduced once rust-lang/rust#18131 is fixed.
    kmcallister committed Oct 24, 2014
  2. Ignore the HTML parser's borrow flag in GC tracing

    Adds some other dynamic checks in debug builds.
    kmcallister committed Oct 24, 2014
  3. task_state: Generate the list of task types

    Also fix warnings.
    kmcallister committed Oct 24, 2014
  4. Provide safety check helpers in release builds

    debug_assert! uses
    
        if cfg!(not(ndebug)) { ... }
    
    so the body in a release build is dead code, but it still needs to compile.
    kmcallister committed Oct 24, 2014
You can’t perform that action at this time.