mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Suggest {to,from}_ne_bytes for transmutations between arrays and integers, etc
This commit is contained in:
+2
-6
@@ -1,6 +1,6 @@
|
||||
#![feature(no_core, unboxed_closures)]
|
||||
#![no_core]
|
||||
#![allow(dead_code)]
|
||||
#![allow(dead_code, unnecessary_transmutes)]
|
||||
|
||||
extern crate mini_core;
|
||||
|
||||
@@ -11,11 +11,7 @@ fn abc(a: u8) -> u8 {
|
||||
}
|
||||
|
||||
fn bcd(b: bool, a: u8) -> u8 {
|
||||
if b {
|
||||
a * 2
|
||||
} else {
|
||||
a * 3
|
||||
}
|
||||
if b { a * 2 } else { a * 3 }
|
||||
}
|
||||
|
||||
fn call() {
|
||||
|
||||
Reference in New Issue
Block a user