Stream: t-compiler/wg-prioritization

Topic: test bisectbot


simulacrum (May 04 2020 at 19:02, on Zulip):

bisect-bot bisect start=2020-04-26 end=2020-04-28

use std::sync::{Arc, RwLock};

#[derive(Copy, Clone)]
pub struct Glfw;

fn fun_call<T>(val: T) -> T { val }

static mut GLFW: Option<Glfw> = None;
pub fn new() -> Result<Arc<RwLock<Glfw>>, Box<dyn std::error::Error>> {
    //TODO: Give the option to choose FAIL / LOG?
    let glfw = unsafe { if let Some(glfw) = GLFW {
        glfw
    } else {
        let glfw = fun_call(Glfw);
        GLFW = Some(glfw);
        glfw
    }};

    Ok(Arc::new(RwLock::new(glfw)))
}
simulacrum (May 04 2020 at 19:06, on Zulip):

bisect-bot bisect start=2020-04-26 end=2020-04-28

use std::sync::{Arc, RwLock};

#[derive(Copy, Clone)]
pub struct Glfw;

fn fun_call<T>(val: T) -> T { val }

static mut GLFW: Option<Glfw> = None;
pub fn new() -> Result<Arc<RwLock<Glfw>>, Box<dyn std::error::Error>> {
    //TODO: Give the option to choose FAIL / LOG?
    let glfw = unsafe { if let Some(glfw) = GLFW {
        glfw
    } else {
        let glfw = fun_call(Glfw);
        GLFW = Some(glfw);
        glfw
    }};

    Ok(Arc::new(RwLock::new(glfw)))
}
bjorn3 (May 04 2020 at 19:06, on Zulip):

bisection job 643951057 started: https://github.com/bjorn3/cargo-bisect-rustc-bot-jobs/runs/643951057

bjorn3 (May 04 2020 at 19:07, on Zulip):

bisection job 643951057 completed: https://github.com/bjorn3/cargo-bisect-rustc-bot-jobs/runs/643951057

Last update: Jun 05 2020 at 23:10UTC