mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Kill transmute-type-lint
This commit is contained in:
parent
f3bacf84f4
commit
19c645ff68
4 changed files with 0 additions and 66 deletions
|
@ -1,19 +0,0 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#![feature(plugin)]
|
||||
#![plugin(plugins)]
|
||||
#![allow(dead_code)]
|
||||
#![deny(transmute_type_lint)]
|
||||
|
||||
use std::mem::{self, transmute};
|
||||
|
||||
|
||||
fn main() {
|
||||
let _: &[u8] = unsafe { transmute("Rust") };
|
||||
//~^ ERROR Transmute to &[u8] from &'static str detected
|
||||
|
||||
let _: &[u8] = unsafe { mem::transmute("Rust") };
|
||||
//~^ ERROR Transmute to &[u8] from &'static str detected
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue