diff --git a/src/bin/playbot.rs b/src/bin/playbot.rs index cff8579..c77b315 100644 --- a/src/bin/playbot.rs +++ b/src/bin/playbot.rs @@ -119,6 +119,22 @@ impl Playbot { let code = if self.conn.current_nickname().contains("mini") { String::from(code) + } else if channel == ReleaseChannel::Nightly { + format!(r#" +#![feature(core_intrinsics)] +#![allow(dead_code, unused_variables)] + +static VERSION: &'static str = "{version}"; + +fn show(e: T) {{ println!("{{:?}}", e) }} +fn show_type(_:T) -> &'static str {{ unsafe {{ std::intrinsics::type_name::() }}}} + +fn main() {{ + show({{ + {code} + }}); +}} +"#, version = self.rust_versions[channel as usize], code = code) } else { format!(r#" #![allow(dead_code, unused_variables)]