Skip to content

Commit c23d535

Browse files
committed
Mark macros_have_sourceloc from #355 for future deprecation
1 parent d1a7419 commit c23d535

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,6 @@ Currently, the `@compat` macro supports the following syntaxes:
360360

361361
* On versions of Julia that do not contain a Base.Threads module, Compat defines a Threads module containing a no-op `@threads` macro.
362362

363-
* The `Expr(:macrocall)` has an extra initial argument `__source__`, which can be tested for with `Compat.macros_have_sourceloc`.
364-
365363
## New types
366364

367365
* `Compat.AbstractDateTime` is an alias for `Compat.Dates.AbstractDateTime` as of ([#25227]) and `Compat.Dates.TimeType` prior to that.

src/Compat.jl

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ module TypeUtils
1111
export isabstract, parameter_upper_bound, typename
1212
end # module TypeUtils
1313
import Base.invokelatest
14+
const macros_have_sourceloc = true
1415

1516
include("compatmacro.jl")
1617

17-
# https://github.com/JuliaLang/julia/pull/21746
18-
const macros_have_sourceloc = VERSION >= v"0.7-" && length(:(@test).args) == 2
19-
2018
# 0.7.0-DEV.3155
2119
@static if !isdefined(Base, :pushfirst!)
2220
const pushfirst! = unshift!

0 commit comments

Comments
 (0)