mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
move to 2018 edition
I want NLL :D
This commit is contained in:
@@ -9,6 +9,7 @@ repository = "https://github.com/solson/miri"
|
||||
version = "0.1.0"
|
||||
build = "build.rs"
|
||||
default-run = "miri"
|
||||
edition = "2018"
|
||||
|
||||
[lib]
|
||||
test = true # we have unit tests
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#![feature(rustc_private)]
|
||||
#![feature(rustc_private, extern_crate_item_prelude)]
|
||||
extern crate miri;
|
||||
extern crate getopts;
|
||||
extern crate rustc;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
#![feature(rustc_private)]
|
||||
#![feature(rustc_private, extern_crate_item_prelude)]
|
||||
|
||||
extern crate getopts;
|
||||
extern crate miri;
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
#![feature(rustc_private)]
|
||||
#![feature(rustc_private, extern_crate_item_prelude)]
|
||||
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(cast_lossless))]
|
||||
|
||||
@@ -253,7 +253,7 @@ fn into(self) -> MemoryKind<MiriMemoryKind> {
|
||||
impl MayLeak for MiriMemoryKind {
|
||||
#[inline(always)]
|
||||
fn may_leak(self) -> bool {
|
||||
use MiriMemoryKind::*;
|
||||
use self::MiriMemoryKind::*;
|
||||
match self {
|
||||
Rust | C => false,
|
||||
Env | MutStatic => true,
|
||||
|
||||
Reference in New Issue
Block a user