YJIT: Remove redundant extern crate
(#5869)
Follow up https://github.com/ruby/ruby/commit/0514d81 Rust YJIT requires Rust 1.60.0 or later. So, `extern crate` looks unnecessary because it can use the following Rust 2018 edition feature: https://doc.rust-lang.org/stable/edition-guide/rust-2018/path-changes.html#no-more-extern-crate It passes the following tests. ```console % cd yjit % cargo test --features asm_comments,disasm (snip) test result: ok. 56 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s ```
This commit is contained in:
parent
63932ec33e
commit
8587bacc25
Notes:
git
2022-05-02 23:05:37 +09:00
Merged-By: maximecb <maximecb@ruby-lang.org>
@ -404,7 +404,6 @@ fn test_xor() {
|
||||
#[cfg(feature = "disasm")]
|
||||
fn basic_capstone_usage() -> std::result::Result<(), capstone::Error> {
|
||||
// Test drive Capstone with simple input
|
||||
extern crate capstone;
|
||||
use capstone::prelude::*;
|
||||
let cs = Capstone::new()
|
||||
.x86()
|
||||
|
@ -66,7 +66,6 @@ fn disasm_iseq(iseq: IseqPtr) -> String {
|
||||
}
|
||||
|
||||
// Initialize capstone
|
||||
extern crate capstone;
|
||||
use capstone::prelude::*;
|
||||
let cs = Capstone::new()
|
||||
.x86()
|
||||
|
Loading…
x
Reference in New Issue
Block a user