Skip to content

Commit 004db10

Browse files
JeffBezansonalyst
authored andcommitted
remove nearly all remaining deprecations (JuliaLang#28486)
* Fix at-inferred with a single dot-broadcast op * Mark .op type-inference-based completion of method signatures as broken REPLCompletions allows tab-completion to show the possible signatures of a given function when in the midst of writing its arguments. It uses inference to determine the possible types of the already-written arguments, subsetting the possible signatures. With the removal of `.op` as a function, it is no longer able to infer these types and thus no longer subsets the signatures as previously expected. The failure mode is very graceful here -- it just assumes `Any` and shows more signatures. This can be re-implemented later
1 parent 7273347 commit 004db10

File tree

7 files changed

+14
-642
lines changed

7 files changed

+14
-642
lines changed

base/broadcast.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,9 +1079,10 @@ function __dot__(x::Expr)
10791079
Expr(x.head, x.args[1], dotargs[2])
10801080
else
10811081
if x.head == :&& || x.head == :||
1082-
Base.depwarn("""
1083-
using $(x.head) expressions in @. is deprecated; in the future it will
1084-
become elementwise. Break the expression into smaller parts instead.""", nothing)
1082+
error("""
1083+
Using `&&` and `||` is disallowed in `@.` expressions.
1084+
Use `&` or `|` for elementwise logical operations.
1085+
""")
10851086
end
10861087
head = string(x.head)
10871088
if last(head) == '=' && first(head) != '.'

base/client.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@ function ip_matches_func(ip, func::Symbol)
9090
end
9191

9292
function display_error(io::IO, er, bt)
93-
if !isempty(bt)
94-
st = stacktrace(bt)
95-
if !isempty(st)
96-
io = redirect(io, log_error_to, st[1])
97-
end
98-
end
9993
printstyled(io, "ERROR: "; bold=true, color=Base.error_color())
10094
# remove REPL-related frames from interactive printing
10195
eval_ind = findlast(addr->ip_matches_func(addr, :eval), bt)

0 commit comments

Comments
 (0)