Skip to content

Commit 4b54e6c

Browse files
committed
use using instead of import
1 parent ff5bcd0 commit 4b54e6c

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

benchmark/JETBenchmarkUtils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export
66
@freshexec,
77
@benchmark_freshexec
88

9-
import Base.Meta: isexpr
10-
import BenchmarkTools: @benchmarkable
9+
using Base.Meta: isexpr
10+
using BenchmarkTools: @benchmarkable
1111
using JET.JETInterface
1212

1313
"""

examples/dispatch_analysis.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
using JET.JETInterface
5454
const CC = Core.Compiler
55-
import JET: JET
55+
using JET: JET
5656

5757
struct DispatchAnalyzer{T} <: AbstractAnalyzer
5858
state::AnalyzerState

examples/find_unstable_api.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ end
219219

220220
# `UnstableAPIAnalyzer` can detect "unstable API"s even if they're imported binding or
221221
# nested reference (, which will be resolve to `getproperty`)
222-
import Base: hasgenerator
222+
using Base: hasgenerator
223223
report_unstable_api((Any,)) do mi
224224
## NOTE every function call appearing here is unstable
225225
ci = hasgenerator(mi) ? Core.Compiler.get_staged(mi) : Base.uncompressed_ast(mi)

test/test_JETInterface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module test_JETInterface
22

33
using JET.JETInterface, JET, Test, InteractiveUtils
4-
import JET: get_reports, BasicPass, UndefVarErrorReport
4+
using JET: get_reports, BasicPass, UndefVarErrorReport
55

66
# customized report pass
77
# ======================

test/test_Test.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ module test_Test
22

33
using Test, JET
44

5-
import Base.Meta: isexpr
6-
import MacroTools: @capture, postwalk
5+
using Base.Meta: isexpr
6+
using MacroTools: @capture, postwalk
77

88
# runs `f()` in an isolated testset, so that it doesn't influence the currently running test suite
99
function with_isolated_testset(f)

0 commit comments

Comments
 (0)