Skip to content

Commit 4f271b1

Browse files
authored
change some ::AbstractString fields to ::String (#40569)
1 parent 1fbb536 commit 4f271b1

File tree

15 files changed

+18
-18
lines changed

15 files changed

+18
-18
lines changed

base/array.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The objects called do not have matching dimensionality. Optional argument `msg`
99
descriptive error string.
1010
"""
1111
struct DimensionMismatch <: Exception
12-
msg::AbstractString
12+
msg::String
1313
end
1414
DimensionMismatch() = DimensionMismatch("")
1515

base/channels.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ function close_chnl_on_taskdone(t::Task, c::Channel)
295295
end
296296

297297
struct InvalidStateException <: Exception
298-
msg::AbstractString
298+
msg::String
299299
state::Symbol
300300
end
301301

base/compiler/validation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const SIGNATURE_NARGS_MISMATCH = "method signature does not match number of meth
5151
const SLOTNAMES_NARGS_MISMATCH = "CodeInfo for method contains fewer slotnames than the number of method arguments"
5252

5353
struct InvalidCodeError <: Exception
54-
kind::AbstractString
54+
kind::String
5555
meta::Any
5656
end
5757
InvalidCodeError(kind::AbstractString) = InvalidCodeError(kind, nothing)

base/errorshow.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This method is used to display the exception after a call to [`throw`](@ref).
99
# Examples
1010
```jldoctest
1111
julia> struct MyException <: Exception
12-
msg::AbstractString
12+
msg::String
1313
end
1414
1515
julia> function Base.showerror(io::IO, err::MyException)

base/io.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ struct EOFError <: Exception end
1515
A system call failed with an error code (in the `errno` global variable).
1616
"""
1717
struct SystemError <: Exception
18-
prefix::AbstractString
18+
prefix::String
1919
errnum::Int32
2020
extrainfo
2121
SystemError(p::AbstractString, e::Integer, extrainfo) = new(p, e, extrainfo)

base/iostream.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Mostly used to represent files returned by [`open`](@ref).
1313
mutable struct IOStream <: IO
1414
handle::Ptr{Cvoid}
1515
ios::Array{UInt8,1}
16-
name::AbstractString
16+
name::String
1717
mark::Int64
1818
lock::ReentrantLock
1919
_dolock::Bool

base/libuv.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ end
7474
## Libuv error handling ##
7575

7676
struct IOError <: Exception
77-
msg::AbstractString
77+
msg::String
7878
code::Int32
7979
IOError(msg::AbstractString, code::Integer) = new(msg, code)
8080
end

base/meta.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ The expression passed to the [`parse`](@ref) function could not be interpreted a
188188
expression.
189189
"""
190190
struct ParseError <: Exception
191-
msg::AbstractString
191+
msg::String
192192
end
193193

194194
function _parse_string(text::AbstractString, filename::AbstractString,

base/missing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ where it is not supported. The error message, in the `msg` field
1212
may provide more specific details.
1313
"""
1414
struct MissingException <: Exception
15-
msg::AbstractString
15+
msg::String
1616
end
1717

1818
showerror(io::IO, ex::MissingException) =

base/simdloop.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export @simd, simd_outer_range, simd_inner_length, simd_index
88

99
# Error thrown from ill-formed uses of @simd
1010
struct SimdError <: Exception
11-
msg::AbstractString
11+
msg::String
1212
end
1313

1414
# Parse iteration space expression

0 commit comments

Comments
 (0)