public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/julia] epel10: New upstream release 0.4.0
@ 2026-12-01 21:38 Milan Bouchet-Valat
  0 siblings, 0 replies; only message in thread
From: Milan Bouchet-Valat @ 2026-12-01 21:38 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/julia
Branch : epel10
Commit : 442e05aaf9ebcfb10a75c5dd2804fe51d934383b
Author : Milan Bouchet-Valat <nalimilan@club.fr>
Date   : 2015-10-09T22:16:48+02:00
Stats  : +11/-9588 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/julia/c/442e05aaf9ebcfb10a75c5dd2804fe51d934383b?branch=epel10

Log:
New upstream release 0.4.0

---
diff --git a/.gitignore b/.gitignore
index eb35dbd..b404838 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,4 @@
 /libuv-28f5f06b5ff6f010d666ec26552e0badaca5cdcd.tar.gz
 /Rmath-julia-0.1.tar.gz
 /julia-0.4.0-rc1_e5c6964a49.tar.gz
+/julia-0.4.0.tar.gz

diff --git a/julia-0.4-branch.patch b/julia-0.4-branch.patch
deleted file mode 100644
index 6c0821e..0000000
--- a/julia-0.4-branch.patch
+++ /dev/null
@@ -1,9573 +0,0 @@
-diff --git a/Makefile b/Makefile
-index 5d8ba3a..1a84526 100644
---- a/Makefile
-+++ b/Makefile
-@@ -54,7 +54,7 @@ julia-base: julia-deps $(build_sysconfdir)/julia/juliarc.jl $(build_man1dir)/jul
- 	@$(MAKE) $(QUIET_MAKE) -C base
- 
- julia-libccalltest:
--	@$(MAKE) $(QUIET_MAKE) -C test libccalltest
-+	@$(MAKE) $(QUIET_MAKE) -C src libccalltest
- 
- julia-src-release julia-src-debug : julia-src-% : julia-deps
- 	@$(MAKE) $(QUIET_MAKE) -C src libjulia-$*
-@@ -202,10 +202,15 @@ $(build_bindir)/stringreplace: contrib/stringreplace.c | $(build_bindir)
- JL_LIBS = julia julia-debug
- 
- # private libraries, that are installed in $(prefix)/lib/julia
--JL_PRIVATE_LIBS = suitesparse_wrapper Rmath
-+JL_PRIVATE_LIBS = ccalltest
-+ifeq ($(USE_GPL_LIBS), 1)
-+JL_PRIVATE_LIBS += suitesparse_wrapper Rmath-julia
-+endif
- ifeq ($(USE_SYSTEM_FFTW),0)
-+ifeq ($(USE_GPL_LIBS), 1)
- JL_PRIVATE_LIBS += fftw3 fftw3f fftw3_threads fftw3f_threads
- endif
-+endif
- ifeq ($(USE_SYSTEM_PCRE),0)
- JL_PRIVATE_LIBS += pcre
- endif
-@@ -238,8 +243,10 @@ ifeq ($(USE_SYSTEM_ARPACK),0)
- JL_PRIVATE_LIBS += arpack
- endif
- ifeq ($(USE_SYSTEM_SUITESPARSE),0)
-+ifeq ($(USE_GPL_LIBS), 1)
- JL_PRIVATE_LIBS += amd camd ccolamd cholmod colamd umfpack spqr suitesparseconfig
- endif
-+endif
- ifeq ($(USE_SYSTEM_LLVM),0)
- ifeq ($(USE_LLVM_SHLIB),1)
- JL_PRIVATE_LIBS += LLVM
-diff --git a/base/REPL.jl b/base/REPL.jl
-index 267ba1d..df3af0a 100644
---- a/base/REPL.jl
-+++ b/base/REPL.jl
-@@ -58,10 +58,10 @@ function eval_user_input(ast::ANY, backend::REPLBackend)
-                 ans = backend.ans
-                 # note: value wrapped in a non-syntax value to avoid evaluating
-                 # possibly-invalid syntax (issue #6763).
--                backend.in_eval = true
-                 eval(Main, :(ans = $(Any[ans])[1]))
--                backend.in_eval = false
-+                backend.in_eval = true
-                 value = eval(Main, ast)
-+                backend.in_eval = false
-                 backend.ans = value
-                 put!(backend.response_channel, (value, nothing))
-             end
-@@ -160,10 +160,11 @@ immutable REPLBackendRef
-     response_channel::Channel
- end
- 
--function run_repl(repl::AbstractREPL)
-+function run_repl(repl::AbstractREPL, consumer = x->nothing)
-     repl_channel = Channel(1)
-     response_channel = Channel(1)
-     backend = start_repl_backend(repl_channel, response_channel)
-+    consumer(backend)
-     run_frontend(repl, REPLBackendRef(repl_channel,response_channel))
-     backend
- end
-diff --git a/base/boot.jl b/base/boot.jl
-index e798851..3dd891a 100644
---- a/base/boot.jl
-+++ b/base/boot.jl
-@@ -211,17 +211,6 @@ else
- end
- 
- abstract AbstractString
--abstract DirectIndexString <: AbstractString
--
--immutable ASCIIString <: DirectIndexString
--    data::Array{UInt8,1}
--end
--
--immutable UTF8String <: AbstractString
--    data::Array{UInt8,1}
--end
--
--typealias ByteString Union{ASCIIString,UTF8String}
- 
- abstract Exception
- immutable BoundsError        <: Exception
-@@ -257,6 +246,18 @@ type SymbolNode
-     SymbolNode(name::Symbol, t::ANY) = new(name, t)
- end
- 
-+abstract DirectIndexString <: AbstractString
-+
-+immutable ASCIIString <: DirectIndexString
-+    data::Array{UInt8,1}
-+end
-+
-+immutable UTF8String <: AbstractString
-+    data::Array{UInt8,1}
-+end
-+
-+typealias ByteString Union{ASCIIString,UTF8String}
-+
- include(fname::ByteString) = ccall(:jl_load_, Any, (Any,), fname)
- 
- # constructors for built-in types
-diff --git a/base/client.jl b/base/client.jl
-index 664c7b6..e64e58b 100644
---- a/base/client.jl
-+++ b/base/client.jl
-@@ -450,7 +450,7 @@ function _start()
-                 end
-             else
-                 _atreplinit(active_repl)
--                active_repl_backend = REPL.run_repl(active_repl)
-+                REPL.run_repl(active_repl, backend->(global active_repl_backend = backend))
-             end
-         end
-     catch err
-diff --git a/base/deprecated.jl b/base/deprecated.jl
-index 8a2d68f..2649a26 100644
---- a/base/deprecated.jl
-+++ b/base/deprecated.jl
-@@ -101,6 +101,16 @@ function firstcaller(bt::Array{Ptr{Void},1}, funcsym::Symbol)
-     return C_NULL
- end
- 
-+deprecate(s::Symbol) = deprecate(current_module(), s)
-+deprecate(m::Module, s::Symbol) = ccall(:jl_deprecate_binding, Void, (Any, Any), m, s)
-+
-+macro deprecate_binding(old, new)
-+    Expr(:toplevel,
-+         Expr(:export, esc(old)),
-+         Expr(:(=), esc(old), esc(new)),
-+         Expr(:call, :deprecate, Expr(:quote, old)))
-+end
-+
- # 0.4 deprecations
- 
- @deprecate split(x,y,l::Integer,k::Bool) split(x,y;limit=l,keep=k)
-@@ -111,19 +121,17 @@ end
- @deprecate rsplit(x,y,l::Integer) rsplit(x,y;limit=l)
- @deprecate rsplit(x,y,k::Bool) rsplit(x,y;keep=k)
- 
--export UdpSocket
- const TcpSocket = TCPSocket
--const UdpSocket = UDPSocket
-+deprecate(:TcpSocket)
- const IpAddr = IPAddr
-+deprecate(:IpAddr)
-+@deprecate_binding UdpSocket UDPSocket
- 
- @deprecate isblank(c::Char) c == ' ' || c == '\t'
- @deprecate isblank(s::AbstractString) all(c -> c == ' ' || c == '\t', s)
- 
--export Nothing
--const Nothing = Void
--
--export None
--const None = Union{}
-+@deprecate_binding Nothing Void
-+@deprecate_binding None Union{}
- 
- export apply
- @noinline function apply(f, args...)
-@@ -150,16 +158,14 @@ end
- @deprecate inf{T<:AbstractFloat}(::Type{T})  convert(T,Inf)
- @deprecate nan{T<:AbstractFloat}(::Type{T})  convert(T,NaN)
- 
--export String
--const String = AbstractString
-+@deprecate_binding String AbstractString
- 
--export Uint, Uint8, Uint16, Uint32, Uint64, Uint128
--const Uint = UInt
--const Uint8 = UInt8
--const Uint16 = UInt16
--const Uint32 = UInt32
--const Uint64 = UInt64
--const Uint128 = UInt128
-+@deprecate_binding Uint    UInt
-+@deprecate_binding Uint8   UInt8
-+@deprecate_binding Uint16  UInt16
-+@deprecate_binding Uint32  UInt32
-+@deprecate_binding Uint64  UInt64
-+@deprecate_binding Uint128 UInt128
- 
- @deprecate zero{T}(::Type{Ptr{T}}) Ptr{T}(0)
- @deprecate zero{T}(x::Ptr{T})      Ptr{T}(0)
-@@ -178,8 +184,7 @@ const Uint128 = UInt128
- @deprecate iround(x)              round(Integer,x)
- @deprecate iround{T}(::Type{T},x) round(T,x)
- 
--export Base64Pipe
--const Base64Pipe = Base64EncodePipe
-+@deprecate_binding Base64Pipe Base64EncodePipe
- @deprecate base64 base64encode
- 
- @deprecate prevind(a::Any, i::Integer)   i-1
-@@ -208,8 +213,7 @@ const Base64Pipe = Base64EncodePipe
- @deprecate error(ex::Exception) throw(ex)
- @deprecate error{E<:Exception}(::Type{E}) throw(E())
- 
--export MemoryError
--const MemoryError = OutOfMemoryError
-+@deprecate_binding MemoryError OutOfMemoryError
- 
- @deprecate map!(f::Callable, dest::StridedArray, A::StridedArray, B::Number) broadcast!(f, dest, A, B)
- @deprecate map!(f::Callable, dest::StridedArray, A::Number, B::StridedArray) broadcast!(f, dest, A, B)
-@@ -250,16 +254,38 @@ const MemoryError = OutOfMemoryError
- @deprecate float64(s::AbstractString)   parse(Float64,s)
- @deprecate float32(s::AbstractString)   parse(Float32,s)
- 
--for (f,t) in ((:integer, Integer), (:signed, Signed),
--              (:unsigned, Unsigned), (:int, Int), (:int8, Int8), (:int16, Int16),
--              (:int32, Int32), (:int64, Int64), (:int128, Int128), (:uint, UInt),
--              (:uint8, UInt8), (:uint16, UInt16), (:uint32, UInt32), (:uint64, UInt64),
--              (:uint128, UInt128))
-+for (f,t) in ((:integer, Integer), (:signed, Signed), (:unsigned, Unsigned))
-     @eval begin
-         @deprecate $f(x::AbstractArray) round($t, x)
-     end
- end
- 
-+for (f,t) in ((:int,    Int), (:int8,   Int8), (:int16,  Int16), (:int32,  Int32),
-+              (:int64,  Int64), (:int128, Int128), (:uint,   UInt), (:uint8,  UInt8),
-+              (:uint16, UInt16), (:uint32, UInt32), (:uint64, UInt64), (:uint128,UInt128))
-+    ex1 = sprint(io->show_unquoted(io,:([parse($t,s) for s in a])))
-+    ex2 = sprint(io->show_unquoted(io,:(round($t, a))))
-+    name = Expr(:quote,f)
-+    @eval begin
-+        function ($f)(x::AbstractArray)
-+            if all(y->isa(y,AbstractString), x)
-+                depwarn(string($name,"(a::AbstractArray) is deprecated, use ", $ex1, " instead."), $name)
-+                return [parse($t,s) for s in x]
-+            elseif all(y->isa(y,Number), x)
-+                depwarn(string($name,"(a::AbstractArray) is deprecated, use ", $ex2, " instead."), $name)
-+                return round($t, x)
-+            end
-+            y = similar(x,$t)
-+            i = 1
-+            for e in x
-+                y[i] = ($f)(e)
-+                i += 1
-+            end
-+            y
-+        end
-+    end
-+end
-+
- for (f,t) in ((:char, Char), (:bool, Bool), (:float16, Float16), (:float32, Float32),
-               (:float64, Float64), (:complex64, Complex64), (:complex128, Complex128))
-     @eval begin
-@@ -342,13 +368,6 @@ end
- @deprecate integer(x::Ptr)   convert(UInt, x)
- @deprecate unsigned(x::Ptr)  convert(UInt, x)
- 
--for (f,t) in ((:int,    Int), (:int8,   Int8), (:int16,  Int16), (:int32,  Int32),
--              (:int64,  Int64), (:int128, Int128), (:uint,   UInt), (:uint8,  UInt8),
--              (:uint16, UInt16), (:uint32, UInt32), (:uint64, UInt64), (:uint128,UInt128))
--    @eval begin
--        @deprecate ($f){S<:AbstractString}(a::AbstractArray{S}) [parse($t,s) for s in a]
--    end
--end
- for (f,t) in ((:float32, Float32), (:float64, Float64))
-     @eval begin
-         @deprecate ($f){S<:AbstractString}(a::AbstractArray{S}) [parse($t,s) for s in a]
-@@ -542,17 +561,15 @@ function start_timer(t, d, r)
-     error("start_timer is deprecated. Use Timer(callback, delay, repeat) instead.")
- end
- 
--const UnionType = Union
--export UnionType
-+@deprecate_binding UnionType Union
- 
--const MathConst = Irrational
-+@deprecate_binding MathConst Irrational
- 
- macro math_const(sym, val, def)
-     depwarn("@math_const is deprecated and renamed to @irrational.", symbol("@math_const"))
-     :(@irrational $(esc(sym)) $(esc(val)) $(esc(def)))
- end
--
--export MathConst, @math_const
-+export @math_const
- 
- # 11280, mmap
- 
-@@ -659,9 +676,38 @@ end
-     return a
- end
- 
--@noinline function require(mod::AbstractString)
-+## require ##
-+
-+function maybe_require_file(name::AbstractString)
-+    isabspath(name) && return name
-+    isfile(name) && return abspath(name)
-+    if !endswith(name,".jl")
-+        fname = string(name,".jl")
-+        isfile(fname) && return abspath(fname)
-+    end
-+    return name
-+end
-+
-+include("require.jl")
-+@noinline function require(f::AbstractString)
-     depwarn("`require` is deprecated, use `using` or `import` instead", :require)
--    require(symbol(require_filename(mod)))
-+    if endswith(f,".jl") || contains(f,path_separator)
-+        # specifying file path
-+        OldRequire.require(f)
-+    else
-+        # require("Foo") --- ambiguous. might be file or package
-+        filename = maybe_require_file(f)
-+        if filename == f
-+            mod = symbol(require_modname(f))
-+            M = current_module()
-+            if isdefined(M,mod) && isa(eval(M,mod),Module)
-+                return
-+            end
-+            require(mod)
-+        else
-+            OldRequire.require(f)
-+        end
-+    end
- end
- @noinline function require(f::AbstractString, fs::AbstractString...)
-     require(f)
-@@ -670,25 +716,6 @@ end
-     end
- end
- export require
--@noinline function require_filename(name::AbstractString)
--    # This function can be deleted when the deprecation for `require`
--    # is deleted.
--    # While we could also strip off the absolute path, the user may be
--    # deliberately directing to a different file than what got
--    # cached. So this takes a conservative approach.
--    if endswith(name, ".jl")
--        tmp = name[1:end-3]
--        for prefix in LOAD_CACHE_PATH
--            path = joinpath(prefix, tmp*".ji")
--            if isfile(path)
--                return tmp
--            end
--        end
--    end
--    name
--end
--const reload = require
--export reload
- 
- ## ropes for efficient concatenation, etc. ##
- 
-@@ -779,8 +806,7 @@ end
- 
- @deprecate iseltype(x,T)  eltype(x) <: T
- 
--const FloatingPoint = AbstractFloat
--export FloatingPoint
-+@deprecate_binding FloatingPoint AbstractFloat
- 
- # 11447
- 
-diff --git a/base/docs/Docs.jl b/base/docs/Docs.jl
-index 00fdbd7..ce82dc0 100644
---- a/base/docs/Docs.jl
-+++ b/base/docs/Docs.jl
-@@ -95,9 +95,82 @@ function doc(obj)
-     end
- end
- 
-+function write_lambda_signature(io::IO, lam::LambdaStaticData)
-+    ex = Base.uncompressed_ast(lam)
-+    write(io, '(')
-+    nargs = length(ex.args[1])
-+    for (i,arg) in enumerate(ex.args[1])
-+        argname, argtype = arg.args
-+        if argtype === :Any || argtype === :ANY
-+            write(io, argname)
-+        elseif isa(argtype,Expr) && argtype.head === :... &&
-+               (argtype.args[end] === :Any || argtype.args[end] === :ANY)
-+            write(io, argname, "...")
-+        else
-+            write(io, argname, "::", argtype)
-+        end
-+        i < nargs && write(io, ',')
-+    end
-+    write(io, ')')
-+    return io
-+end
-+
-+function macrosummary(name::Symbol, func::Function)
-+    if !isdefined(func,:code) || func.code == nothing
-+        return Markdown.parse("\n")
-+    end
-+    io  = IOBuffer()
-+    write(io, "```julia\n")
-+    write(io, name)
-+    write_lambda_signature(io, func.code)
-+    write(io, "\n```")
-+    return Markdown.parse(takebuf_string(io))
-+end
-+
-+function functionsummary(func::Function)
-+    io  = IOBuffer()
-+    write(io, "```julia\n")
-+    if isgeneric(func)
-+        print(io, methods(func))
-+    else
-+        if isdefined(func,:code) && func.code !== nothing
-+            write_lambda_signature(io, func.code)
-+            write(io, " -> ...")
-+        end
-+    end
-+    write(io, "\n```")
-+    return Markdown.parse(takebuf_string(io))
-+end
-+
- function doc(b::Binding)
-     d = invoke(doc, Tuple{Any}, b)
--    d == nothing ? doc(getfield(b.mod, b.var)) : d
-+    if d === nothing
-+        v = getfield(b.mod,b.var)
-+        d = doc(v)
-+        if d === nothing
-+            if startswith(string(b.var),'@')
-+                # check to see if the binding var is a macro
-+                d = catdoc(Markdown.parse("""
-+                No documentation found.
-+
-+                """), macrosummary(b.var, v))
-+            elseif isa(v,Function)
-+                d = catdoc(Markdown.parse("""
-+                No documentation found.
-+
-+                `$(b.mod === Main ? b.var : join((b.mod, b.var),'.'))` is $(isgeneric(v) ? "a generic" : "an anonymous") `Function`.
-+                """), functionsummary(v))
-+            else
-+                T = typeof(v)
-+                d = catdoc(Markdown.parse("""
-+                No documentation found.
-+
-+                `$(b.mod === Main ? b.var : join((b.mod, b.var),'.'))` is of type `$T`:
-+                """), typesummary(typeof(v)))
-+            end
-+        end
-+    end
-+    return d
- end
- 
- # Function / Method support
-@@ -154,7 +227,7 @@ type_morespecific(a::Type, b::Type) =
- # handles the :(function foo(x...); ...; end) form
- function doc!(f::Function, sig::ANY, data, source)
-     fd = get!(meta(), f, FuncDoc())
--    isa(fd, FuncDoc) || error("Can't document a method when the function already has metadata")
-+    isa(fd, FuncDoc) || error("can not document a method when the function already has metadata")
-     haskey(fd.meta, sig) || push!(fd.order, sig)
-     sort!(fd.order, lt=type_morespecific)
-     fd.meta[sig] = data
-@@ -165,26 +238,29 @@ doc(f::Function) = doc(f, Tuple)
- 
- function doc(f::Function, sig::Type)
-     isgeneric(f) && isempty(methods(f,sig)) && return nothing
-+    results, funcdocs = [], []
-     for mod in modules
--        if (haskey(meta(mod),f) && isa(meta(mod)[f],FuncDoc))
-+        if (haskey(meta(mod), f) && isa(meta(mod)[f], FuncDoc))
-             fd = meta(mod)[f]
--            results = []
-+            push!(funcdocs, fd)
-             for msig in fd.order
-                 # try to find specific matching method signatures
-                 if sig <: msig
--                    push!(results, (msig,fd.meta[msig]))
-+                    push!(results, (msig, fd.meta[msig]))
-                 end
-             end
--            # if all method signatures are Union{} ( ⊥ ), concat all docstrings
--            if isempty(results)
--                return catdoc([fd.meta[msig] for msig in reverse(fd.order)]...)
--            else
--                sort!(results, lt=(a,b)->type_morespecific(first(a),first(b)))
--                return catdoc([last(r) for r in results]...)
--            end
-         end
-     end
--    return nothing
-+    # if all method signatures are Union{} ( ⊥ ), concat all docstrings
-+    if isempty(results)
-+        for fd in funcdocs
-+            append!(results, [fd.meta[msig] for msig in reverse(fd.order)])
-+        end
-+    else
-+        sort!(results, lt = (a, b) -> type_morespecific(first(a), first(b)))
-+        results = [last(r) for r in results]
-+    end
-+    catdoc(results...)
- end
- doc(f::Function,args::Any...) = doc(f, Tuple{args...})
- 
-@@ -201,7 +277,7 @@ isdoc(x) = isexpr(x, :string, AbstractString) ||
-     (isexpr(x, :macrocall) && x.args[1] == symbol("@doc_str")) ||
-     (isexpr(x, :call) && x.args[1] == Expr(:., Base.Markdown, QuoteNode(:doc_str)))
- 
--dict_expr(d) = :(Dict($([:($(Expr(:quote, f)) => $d) for (f, d) in d]...)))
-+dict_expr(d) = :(Dict($([:(Pair($(Expr(:quote, f)), $d)) for (f, d) in d]...)))
- 
- function field_meta(def)
-     meta = Dict()
-@@ -232,45 +308,54 @@ function doc!(t::DataType, data, fields)
-     td.fields = fields
- end
- 
--function doc!(f::DataType, sig::ANY, data, source)
--    td = get!(meta(), f, TypeDoc())
--    isa(td, TypeDoc) || error("Can't document a method when the type already has metadata")
-+function doc!(T::DataType, sig::ANY, data, source)
-+    td = get!(meta(), T, TypeDoc())
-+    if !isa(td, TypeDoc)
-+        error("can not document a method when the type already has metadata")
-+    end
-     !haskey(td.meta, sig) && push!(td.order, sig)
-     td.meta[sig] = data
- end
- 
--function doc(f::DataType)
-+function doc(T::DataType)
-     docs = []
-     for mod in modules
--        if haskey(meta(mod), f)
--            fd = meta(mod)[f]
--            if isa(fd, TypeDoc)
--                length(docs) == 0 && fd.main !== nothing && push!(docs, fd.main)
--                for m in fd.order
--                    push!(docs, fd.meta[m])
-+        if haskey(meta(mod), T)
-+            Td = meta(mod)[T]
-+            if isa(Td, TypeDoc)
-+                if length(docs) == 0 && Td.main !== nothing
-+                    push!(docs, Td.main)
-+                end
-+                for m in Td.order
-+                    push!(docs, Td.meta[m])
-                 end
-             elseif length(docs) == 0
--                return fd
-+                return Td
-             end
-         end
-     end
--    isempty(docs) ? typesummary(f) : catdoc(docs...)
-+    if isempty(docs)
-+        catdoc(Markdown.parse("""
-+        No documentation found.
-+
-+        """), typesummary(T))
-+    else
-+        catdoc(docs...)
-+    end
- end
- 
--function typesummary(f::DataType)
-+function typesummary(T::DataType)
-     parts = [
-     """
--    No documentation found.
--
-     **Summary:**
-     ```julia
--    $(f.abstract ? "abstract" : f.mutable ? "type" : "immutable") $f <: $(super(f))
-+    $(T.abstract ? "abstract" : T.mutable ? "type" : "immutable") $T <: $(super(T))
-     ```
-     """
-     ]
--    if !isempty(fieldnames(f))
--        pad    = maximum([length(string(f)) for f in fieldnames(f)])
--        fields = ["$(rpad(f, pad)) :: $(t)" for (f, t) in zip(fieldnames(f), f.types)]
-+    if !isempty(fieldnames(T))
-+        pad    = maximum([length(string(f)) for f in fieldnames(T)])
-+        fields = ["$(rpad(f, pad)) :: $(t)" for (f,t) in zip(fieldnames(T), T.types)]
-         push!(parts,
-         """
-         **Fields:**
-@@ -279,16 +364,16 @@ function typesummary(f::DataType)
-         ```
-         """)
-     end
--    if !isempty(subtypes(f))
-+    if !isempty(subtypes(T))
-         push!(parts,
-         """
-         **Subtypes:**
-         ```julia
--        $(join(subtypes(f), "\n"))
-+        $(join(subtypes(T),'\n'))
-         ```
-         """)
-     end
--    Markdown.parse(join(parts, "\n"))
-+    Markdown.parse(join(parts,'\n'))
- end
- 
- isfield(x) = isexpr(x, :.) &&
-@@ -380,9 +465,18 @@ end
- 
- function moddoc(meta, def, name)
-     docex = :(@doc $meta $name)
--    def == nothing && return :(eval($name, $(quot(docex)))) |> esc
--    push!(unblock(def).args[3].args, docex)
--    return esc(Expr(:toplevel, def))
-+    if def == nothing
-+        esc(:(eval($name, $(quot(docex)))))
-+    else
-+        def = unblock(def)
-+        block = def.args[3].args
-+        if !def.args[1]
-+            isempty(block) && error("empty baremodules are not documentable.")
-+            insert!(block, 2, :(import Base: call, @doc))
-+        end
-+        push!(block, docex)
-+        esc(Expr(:toplevel, def))
-+    end
- end
- 
- function objdoc(meta, def)
-@@ -419,16 +513,16 @@ function docm(meta, def, define = true)
-     isexpr(def′, :function)    ? namedoc(meta, def, namify(def′)) :
-     isexpr(def′, :call)        ? funcdoc(meta, nothing, def′) :
-     isexpr(def′, :type)        ? typedoc(meta, def, def′) :
--    isexpr(def′, :macro)       ?  vardoc(meta, def, symbol("@", namify(def′))) :
-+    isexpr(def′, :macro)       ?  vardoc(meta, def, symbol('@',namify(def′))) :
-     isexpr(def′, :abstract)    ? namedoc(meta, def, namify(def′)) :
--    isexpr(def′, :bitstype)    ? namedoc(meta, def, def′.args[2]) :
-+    isexpr(def′, :bitstype)    ? namedoc(meta, def, namify(def′.args[2])) :
-     isexpr(def′, :typealias)   ?  vardoc(meta, def, namify(def′)) :
-     isexpr(def′, :module)      ?  moddoc(meta, def, def′.args[2]) :
-     isexpr(def′, :(=), :const,
-                  :global)      ?  vardoc(meta, def, namify(def′)) :
-     isvar(def′)                ? objdoc(meta, def′) :
-     isexpr(def′, :tuple)       ? multidoc(meta, def′.args) :
--    isa(def′, Expr)            ? error("Invalid doc expression $def′") :
-+    isa(def′, Expr)            ? error("invalid doc expression $def′") :
-     objdoc(meta, def′)
- end
- 
-diff --git a/base/docs/basedocs.jl b/base/docs/basedocs.jl
-index e4a7f87..15916b0 100644
---- a/base/docs/basedocs.jl
-+++ b/base/docs/basedocs.jl
-@@ -91,7 +91,7 @@ keywords[:function] = doc"""
-   Functions are defined with the `function` keyword:
- 
-       function add(a, b)
--        return a + b
-+          return a + b
-       end
- 
-   Or the short form notation:
-@@ -113,8 +113,8 @@ keywords[:return] = doc"""
-   e.g.
- 
-       function compare(a, b)
--        a == b && return "equal to"
--        a < b ? "less than" : "greater than"
-+          a == b && return "equal to"
-+          a < b ? "less than" : "greater than"
-       end
- 
-   In general you can place a `return` statement anywhere within a function
-@@ -122,16 +122,16 @@ keywords[:return] = doc"""
-   with `do` blocks. For example:
- 
-       function test1(xs)
--        for x in xs
--          iseven(x) && return 2x
--        end
-+          for x in xs
-+              iseven(x) && return 2x
-+          end
-       end
- 
-       function test2(xs)
--        map(xs) do x
--          iseven(x) && return 2x
--          x
--        end
-+          map(xs) do x
-+              iseven(x) && return 2x
-+              x
-+          end
-       end
- 
-   In the first example, the return breaks out of its enclosing function
-@@ -147,11 +147,11 @@ keywords[:if]  = keywords[:elseif] = keywords[:else] = doc"""
-   Here is the anatomy of the `if`-`elseif`-`else` conditional syntax:
- 
-       if x < y
--        println("x is less than y")
-+          println("x is less than y")
-       elseif x > y
--        println("x is greater than y")
-+          println("x is greater than y")
-       else
--        println("x is equal to y")
-+          println("x is equal to y")
-       end
- 
-   If the condition expression `x < y` is true, then the corresponding block is evaluated;
-@@ -163,7 +163,7 @@ keywords[:for] = doc"""
-   `for` loops repeatedly evaluate the body of the loop by iterating over a sequence of values.  For example:
- 
-       for i in [1,4,0]
--        println(i)
-+          println(i)
-       end
-   """
- 
-@@ -173,8 +173,8 @@ keywords[:while] = doc"""
-   For example:
- 
-       while i <= 5
--        println(i)
--        i += 1
-+          println(i)
-+          i += 1
-       end
-   """
- 
-@@ -183,7 +183,7 @@ keywords[:end] = doc"""
-   In the example below, `end` marks the conclusion of a `function`.
- 
-       function foo()
--        println("hello, world")
-+          println("hello, world")
-       end
- 
-   `end` marks the conclusion of all kinds of expression blocks: `module`, `type`, `begin`, `let`, `for`, etc.
-@@ -198,9 +198,9 @@ keywords[:try] = keywords[:catch] = doc"""
-   can be written to automatically call either the real or complex square root method on demand using `Exception`s:
- 
-       f(x) = try
--        sqrt(x)
-+          sqrt(x)
-       catch
--        sqrt(complex(x, 0))
-+          sqrt(complex(x, 0))
-       end
- 
-   `try/catch` statements also allow the `Exception` to be saved in a variable, e.g. `catch y`.
-@@ -216,9 +216,9 @@ keywords[:finally] = doc"""
- 
-       f = open("file")
-       try
--  	operate_on_file(f)
-+          operate_on_file(f)
-       finally
--        close(f)
-+          close(f)
-       end
- 
-   When control leaves the `try` block (for example due to a `return`, or just finishing normally),
-@@ -232,9 +232,9 @@ keywords[:break] = doc"""
- 
-       i = 0
-       while true
--        i += 1
--        i > 10 && break
--        println(i)
-+          i += 1
-+          i > 10 && break
-+          println(i)
-       end
- 
-   prints the numbers 1 to 10.
-@@ -245,8 +245,8 @@ keywords[:continue] = doc"""
-   looping. For example
- 
-       for i = 1:10
--        iseven(i) && continue
--        println(i)
-+          iseven(i) && continue
-+          println(i)
-       end
- 
-   prints the numbers 1, 3, 5..., skipping the even numbers.
-@@ -256,7 +256,7 @@ keywords[:do] = doc"""
-   The `do` keyword creates an anonymous function. For example
- 
-       map(1:10) do x
--        2x
-+          2x
-       end
- 
-   is equivalent to `map(x->2x, 1:10)`.
-@@ -264,7 +264,7 @@ keywords[:do] = doc"""
-   Use multiple arguments like so:
- 
-       map(1:10, 10:20) do x, y
--        x + y
-+          x + y
-       end
-   """
- 
-@@ -291,8 +291,8 @@ keywords[symbol(";")] = doc"""
-   a single expression:
- 
-       function foo()
--        println("Hello, "); println("World!")
--        return true
-+          println("Hello, "); println("World!")
-+          return true
-       end
- 
-       foo() = (println("Hello, World!"); true)
-@@ -337,8 +337,8 @@ keywords[:begin] = doc"""
-   `begin...end` denotes a block of code.
- 
-       begin
--        println("Hello, ")
--        println("World!")
-+          println("Hello, ")
-+          println("World!")
-       end
- 
-   Usually `begin` will not be necessary, since keywords
-@@ -351,21 +351,21 @@ keywords[:type] = doc"""
-   and a set of fields.
- 
-       type Point
--        x
--        y
-+          x
-+          y
-       end
- 
-   Fields can have type restrictions, which may be parametised:
- 
-       type Point{X}
--        x::X
--        y::Float64
-+          x::X
-+          y::Float64
-       end
- 
-   Type can also declare an abstract super type via `<:` syntax:
- 
-       type Point <: AbstractPoint
--        ...
-+          ...
- 
-   See the manual for more details, such as information on
-   inner constructors.
-@@ -400,8 +400,8 @@ keywords[:immutable] = doc"""
- # allocated. Returns the value of the expression. For example:
- #
- #     @time begin
--#       sleep(1)
--#       2+2
-+#         sleep(1)
-+#         2+2
- #     end
- # """
- # :@time
-diff --git a/base/docs/helpdb.jl b/base/docs/helpdb.jl
-index 69025a9..7f0bcab 100644
---- a/base/docs/helpdb.jl
-+++ b/base/docs/helpdb.jl
-@@ -525,7 +525,7 @@ Collections.isheap
- doc"""
-     @test_throws(extype, ex)
- 
--Test that the expression `ex` throws an exception of type `extype` and calls the current handler to handle the result. The default handler returns the exception if it is of the expected type.
-+Test that the expression `ex` throws an exception of type `extype` and calls the current handler to handle the result.
- """
- :(Test.@test_throws)
- 
-@@ -950,11 +950,9 @@ Returns the index of the minimum element in a collection.
- indmin
- 
- doc"""
--```rst
--..  powermod(x, p, m)
-+    powermod(x, p, m)
- 
--Compute :math:`x^p \pmod m`
--```
-+Compute $x^p \pmod m$.
- """
- powermod
- 
-@@ -1018,11 +1016,9 @@ Print (using :func:`print`) ``x`` followed by a newline.
- println
- 
- doc"""
--```rst
--..  besselj(nu, x)
-+    besselj(nu, x)
- 
--Bessel function of the first kind of order ``nu``, :math:`J_\nu(x)`.
--```
-+Bessel function of the first kind of order `nu`, $J_\nu(x)$.
- """
- besselj
- 
-@@ -1043,11 +1039,9 @@ Divide two integers or rational numbers, giving a `Rational` result.
- Base.(:(//))
- 
- doc"""
--```rst
--..  At_mul_B(...)
-+    At_mul_B(A, B)
- 
--Matrix operator A\ :sup:`T` B
--```
-+For matrices or vectors $A$ and $B$, calculates $Aᵀ⋅B$
- """
- At_mul_B
- 
-@@ -1132,20 +1126,16 @@ Determine the declared type of a field (specified by name or index) in a composi
- fieldtype
- 
- doc"""
--```rst
--..  hypot(x, y)
-+    hypot(x, y)
- 
--Compute the :math:`\sqrt{x^2+y^2}` avoiding overflow and underflow
--```
-+Compute the $\sqrt{x^2+y^2}$ avoiding overflow and underflow
- """
- hypot
- 
- doc"""
--```rst
--..  airybi(x)
-+    airybi(x)
- 
--Airy function :math:`\operatorname{Bi}(x)`.
--```
-+Airy function $\operatorname{Bi}(x)$.
- """
- airybi
- 
-@@ -1171,24 +1161,20 @@ Compute the minimum absolute values over the singleton dimensions of `r`, and wr
- minabs!
- 
- doc"""
--```rst
--..  prevprod([k_1,k_2,...], n)
-+    prevprod([k_1,k_2,...], n)
- 
--Previous integer not greater than ``n`` that can be written as :math:`\prod k_i^{p_i}` for integers :math:`p_1`, :math:`p_2`, etc.
--```
-+Previous integer not greater than `n` that can be written as $\prod k_i^{p_i}$ for integers $p_1$, $p_2$, etc.
- """
- prevprod
- 
- doc"""
--```rst
--..  @evalpoly(z, c...)
-+    @evalpoly(z, c...)
- 
--Evaluate the polynomial :math:`\sum_k c[k] z^{k-1}` for the
--coefficients ``c[1]``, ``c[2]``, ...; that is, the coefficients are
--given in ascending order by power of ``z``.  This macro expands to
-+Evaluate the polynomial $\sum_k c[k] z^{k-1}$ for the
-+coefficients `c[1]`, `c[2]`, ...; that is, the coefficients are
-+given in ascending order by power of `z`.  This macro expands to
- efficient inline code that uses either Horner's method or, for
--complex ``z``, a more efficient Goertzel-like algorithm.
--```
-+complex `z`, a more efficient Goertzel-like algorithm.
- """
- :@evalpoly
- 
-@@ -1365,20 +1351,16 @@ as ``v0``. In general, this cannot be used with empty collections
- foldl(op, itr)
- 
- doc"""
--```rst
--..  airybiprime(x)
-+    airybiprime(x)
- 
--Airy function derivative :math:`\operatorname{Bi}'(x)`.
--```
-+Airy function derivative $\operatorname{Bi}'(x)$.
- """
- airybiprime
- 
- doc"""
--```rst
--..  Ac_rdiv_B(a,b)
-+    Ac_rdiv_B(A, B)
- 
--Matrix operator A\ :sup:`H` / B
--```
-+For matrices or vectors $A$ and $B$, calculates $Aᴴ / B$
- """
- Ac_rdiv_B
- 
-@@ -1412,22 +1394,20 @@ Determine a type big enough to hold values of each argument type without loss, w
- promote_type
- 
- doc"""
--```rst
--..  ind2sub(dims, index) -> subscripts
-+    ind2sub(dims, index) -> subscripts
- 
--Returns a tuple of subscripts into an array with dimensions ``dims``, corresponding to the linear index ``index``
-+Returns a tuple of subscripts into an array with dimensions `dims`,
-+corresponding to the linear index `index`.
- 
--**Example** ``i, j, ... = ind2sub(size(A), indmax(A))`` provides the indices of the maximum element
--```
-+**Example**: `i, j, ... = ind2sub(size(A), indmax(A))` provides the
-+indices of the maximum element
- """
- ind2sub(dims::Tuple, index::Int)
- 
- doc"""
--```rst
--..  ind2sub(a, index) -> subscripts
-+    ind2sub(a, index) -> subscripts
- 
--Returns a tuple of subscripts into array ``a`` corresponding to the linear index ``index``
--```
-+Returns a tuple of subscripts into array `a` corresponding to the linear index `index`
- """
- ind2sub(a, index)
- 
-@@ -1637,15 +1617,13 @@ Neither `convert` nor `cconvert` should take a Julia object and turn it into a `
- cconvert
- 
- doc"""
--```rst
--..  |>(x, f)
-+    |>(x, f)
- 
- Applies a function to the preceding argument. This allows for easy function chaining.
- 
--.. doctest::
--
--   julia> [1:5;] |> x->x.^2 |> sum |> inv
--   0.01818181818181818
-+```jldoctest
-+julia> [1:5;] |> x->x.^2 |> sum |> inv
-+0.01818181818181818
- ```
- """
- Base.(:(|>))
-@@ -1700,22 +1678,20 @@ Construct vector `c` such that `b = conv(a,c) + r`. Equivalent to polynomial div
- deconv
- 
- doc"""
--```rst
--..  insert!(collection, index, item)
--
--Insert an ``item`` into ``collection`` at the given ``index``.
--``index`` is the index of ``item`` in the resulting ``collection``.
-+    insert!(collection, index, item)
- 
--.. doctest::
-+Insert an `item` into `collection` at the given `index`.
-+`index` is the index of `item` in the resulting `collection`.
- 
--   julia> insert!([6, 5, 4, 2, 1], 4, 3)
--   6-element Array{Int64,1}:
--    6
--    5
--    4
--    3
--    2
--    1
-+```jldoctest
-+julia> insert!([6, 5, 4, 2, 1], 4, 3)
-+6-element Array{Int64,1}:
-+ 6
-+ 5
-+ 4
-+ 3
-+ 2
-+ 1
- ```
- """
- insert!
-@@ -1828,11 +1804,9 @@ Returns an array of lowered and type-inferred ASTs for the methods matching the
- code_typed
- 
- doc"""
--```rst
--..  hankelh1x(nu, x)
-+    hankelh1x(nu, x)
- 
--Scaled Bessel function of the third kind of order ``nu``, :math:`H^{(1)}_\nu(x) e^{-x i}`.
--```
-+Scaled Bessel function of the third kind of order `nu`, $H^{(1)}_\nu(x) e^{-x i}$.
- """
- hankelh1x
- 
-@@ -1865,22 +1839,20 @@ Remove the last character from a string.
- chop
- 
- doc"""
--```rst
--..  Float32(x [, mode::RoundingMode])
-+    Float32(x [, mode::RoundingMode])
- 
--Create a Float32 from ``x``. If ``x`` is not exactly representable then
--``mode`` determines how ``x`` is rounded.
-+Create a Float32 from `x`. If `x` is not exactly representable then
-+`mode` determines how `x` is rounded.
- 
--.. doctest::
--
--   julia> Float32(1/3, RoundDown)
--   0.3333333f0
-+```jldoctest
-+julia> Float32(1/3, RoundDown)
-+0.3333333f0
- 
--   julia> Float32(1/3, RoundUp)
--   0.33333334f0
--
--See ``get_rounding`` for available rounding modes.
-+julia> Float32(1/3, RoundUp)
-+0.33333334f0
- ```
-+
-+See `get_rounding` for available rounding modes.
- """
- Float32
- 
-@@ -1983,20 +1955,16 @@ This would create a 25-by-30000 ``BitArray``, linked to the file associated with
- Mmap.mmap(io, ::BitArray, dims = ?, offset = ?)
- 
- doc"""
--```rst
--..  airyprime(x)
-+    airyprime(x)
- 
--Airy function derivative :math:`\operatorname{Ai}'(x)`.
--```
-+Airy function derivative $\operatorname{Ai}'(x)$.
- """
- airyprime
- 
- doc"""
--```rst
--..  bessely0(x)
-+    bessely0(x)
- 
--Bessel function of the second kind of order 0, :math:`Y_0(x)`.
--```
-+Bessel function of the second kind of order 0, $Y_0(x)$.
- """
- bessely0
- 
-@@ -2043,11 +2011,9 @@ Decodes the base64-encoded `string` and returns a `Vector{UInt8}` of the decoded
- base64decode
- 
- doc"""
--```rst
--..  besselkx(nu, x)
-+    besselkx(nu, x)
- 
--Scaled modified Bessel function of the second kind of order ``nu``, :math:`K_\nu(x) e^x`.
--```
-+Scaled modified Bessel function of the second kind of order `nu`, $K_\nu(x) e^x$.
- """
- besselkx
- 
-@@ -2182,11 +2148,9 @@ Convert an integer to a binary string, optionally specifying a number of digits
- bin
- 
- doc"""
--```rst
--..  cis(z)
-+    cis(z)
- 
--Return :math:`\exp(iz)`.
--```
-+Return $\exp(iz)$.
- """
- cis
- 
-@@ -2425,11 +2389,9 @@ Wrap an expression in a `Task` and add it to the scheduler's queue.
- :@schedule
- 
- doc"""
--```rst
--..  bessely(nu, x)
-+    bessely(nu, x)
- 
--Bessel function of the second kind of order ``nu``, :math:`Y_\nu(x)`.
--```
-+Bessel function of the second kind of order `nu`, $Y_\nu(x)$.
- """
- bessely
- 
-@@ -2564,11 +2526,9 @@ By default, the `redisplay` functions simply call `display`. However, some displ
- redisplay
- 
- doc"""
--```rst
--..  A_mul_Bc(...)
-+    A_mul_Bc(A, B)
- 
--Matrix operator A B\ :sup:`H`
--```
-+For matrices or vectors $A$ and $B$, calculates $A⋅Bᴴ$
- """
- A_mul_Bc
- 
-@@ -2587,22 +2547,15 @@ Right division operator: multiplication of `x` by the inverse of `y` on the righ
- Base.(:(/))
- 
- doc"""
--    ldltfact(A) -> LDLtFactorization
-+    ldltfact(::Union{SparseMatrixCSC,Symmetric{Float64,SparseMatrixCSC{Flaot64,SuiteSparse_long}},Hermitian{Complex{Float64},SparseMatrixCSC{Complex{Float64},SuiteSparse_long}}}; shift=0, perm=Int[]) -> CHOLMOD.Factor
- 
--Compute a factorization of a positive definite matrix `A` such that `A=L*Diagonal(d)*L'` where `L` is a unit lower triangular matrix and `d` is a vector with non-negative elements.
--"""
--ldltfact(A)
--
--doc"""
--    ldltfact(A; shift=0, perm=Int[]) -> CHOLMOD.Factor
--
--Compute the LDLt factorization of a sparse symmetric or Hermitian matrix `A`. A fill-reducing permutation is used. `F = ldltfact(A)` is most frequently used to solve systems of equations with `F\b`, but also the methods `diag`, `det`, `logdet` are defined for `F`. You can also extract individual factors from `F`, using `F[:L]`. However, since pivoting is on by default, the factorization is internally represented as `A == P'*L*D*L'*P` with a permutation matrix `P`; using just `L` without accounting for `P` will give incorrect answers. To include the effects of permutation, it's typically preferable to extact "combined" factors like `PtL = F[:PtL]` (the equivalent of `P'*L`) and `LtP = F[:UP]` (the equivalent of `L'*P`). The complete list of supported factors is `:L, :PtL, :D, :UP, :U, :LD, :DU, :PtLD, :DUP`.
-+Compute the `LDLt` factorization of a sparse symmetric or Hermitian matrix. A fill-reducing permutation is used. `F = ldltfact(A)` is most frequently used to solve systems of equations `A*x = b` with `F\b`, but also the methods `diag`, `det`, `logdet` are defined for `F`. You can also extract individual factors from `F`, using `F[:L]`. However, since pivoting is on by default, the factorization is internally represented as `A == P'*L*D*L'*P` with a permutation matrix `P`; using just `L` without accounting for `P` will give incorrect answers. To include the effects of permutation, it's typically preferable to extact "combined" factors like `PtL = F[:PtL]` (the equivalent of `P'*L`) and `LtP = F[:UP]` (the equivalent of `L'*P`). The complete list of supported factors is `:L, :PtL, :D, :UP, :U, :LD, :DU, :PtLD, :DUP`.
- 
- Setting optional `shift` keyword argument computes the factorization of `A+shift*I` instead of `A`. If the `perm` argument is nonempty, it should be a permutation of `1:size(A,1)` giving the ordering to use (instead of CHOLMOD's default AMD ordering).
- 
- The function calls the C library CHOLMOD and many other functions from the library are wrapped but not exported.
- """
--ldltfact(A::SparseMatrix.CHOLMOD.Sparse; shift=0, perm=Int[])
-+ldltfact(A::SparseMatrixCSC; shift=0, perm=Int[])
- 
- doc"""
-     connect([host],port) -> TcpSocket
-@@ -2675,11 +2628,9 @@ Receive the next value passed to `produce` by the specified task. Additional arg
- consume
- 
- doc"""
--```rst
--..  hankelh2x(nu, x)
-+    hankelh2x(nu, x)
- 
--Scaled Bessel function of the third kind of order ``nu``, :math:`H^{(2)}_\nu(x) e^{x i}`.
--```
-+Scaled Bessel function of the third kind of order `nu`, $H^{(2)}_\nu(x) e^{x i}$.
- """
- hankelh2x
- 
-@@ -2709,11 +2660,9 @@ This behavior of this function varies slightly across platforms. See <https://no
- watch_file
- 
- doc"""
--```rst
--..  At_rdiv_Bt(a,b)
-+    At_rdiv_Bt(A, B)
- 
--Matrix operator A\ :sup:`T` / B\ :sup:`T`
--```
-+For matrices or vectors $A$ and $B$, calculates $Aᵀ / Bᵀ$
- """
- At_rdiv_Bt
- 
-@@ -2725,11 +2674,9 @@ Determine whether Julia is running an interactive session.
- isinteractive
- 
- doc"""
--```rst
--..  At_mul_Bt(...)
-+    At_mul_Bt(A, B)
- 
--Matrix operator A\ :sup:`T` B\ :sup:`T`
--```
-+For matrices or vectors $A$ and $B$, calculates $Aᵀ⋅Bᵀ$
- """
- At_mul_Bt
- 
-@@ -2741,34 +2688,26 @@ Sum elements of `A` over the singleton dimensions of `r`, and write results to `
- sum!
- 
- doc"""
--```rst
--..  close(stream)
-+    close(stream)
- 
--Close an I/O stream. Performs a ``flush`` first.
--```
-+Close an I/O stream. Performs a `flush` first.
- """
- close(stream::IO)
- 
- doc"""
--```rst
--..  close(Channel)
-+    close(Channel)
- 
- Closes a channel. An exception is thrown by:
- 
--    - ``put!`` on a closed channel.
--
--    - ``take!`` and ``fetch`` on an empty, closed channel.
--
--```
-+* `put!` on a closed channel.
-+* `take!` and `fetch` on an empty, closed channel.
- """
- close(::Channel)
- 
- doc"""
--```rst
--..  cospi(x)
-+    cospi(x)
- 
--Compute :math:`\cos(\pi x)` more accurately than ``cos(pi*x)``, especially for large ``x``.
--```
-+Compute $\cos(\pi x)$ more accurately than `cos(pi*x)`, especially for large `x`.
- """
- cospi
- 
-@@ -2813,34 +2752,35 @@ Print the shortest possible representation, with the minimum number of consecuti
- print_shortest
- 
- doc"""
--```rst
--..  merge(collection, others...)
-+    merge(collection, others...)
- 
--Construct a merged collection from the given collections. If necessary, the types of the resulting collection will be promoted to accommodate the types of the merged collections. If the same key is present in another collection, the value for that key will be the value it has in the last collection listed.
-+Construct a merged collection from the given collections. If necessary, the
-+types of the resulting collection will be promoted to accommodate the types of
-+the merged collections. If the same key is present in another collection, the
-+value for that key will be the value it has in the last collection listed.
- 
--.. doctest::
--
--  julia> a = Dict("foo" => 0.0, "bar" => 42.0)
--  Dict{ASCIIString,Float64} with 2 entries:
--    "bar" => 42.0
--    "foo" => 0.0
-+```jldoctest
-+julia> a = Dict("foo" => 0.0, "bar" => 42.0)
-+Dict{ASCIIString,Float64} with 2 entries:
-+  "bar" => 42.0
-+  "foo" => 0.0
- 
--  julia> b = Dict(utf8("baz") => 17, utf8("bar") => 4711)
--  Dict{UTF8String,Int64} with 2 entries:
--    "bar" => 4711
--    "baz" => 17
-+julia> b = Dict(utf8("baz") => 17, utf8("bar") => 4711)
-+Dict{UTF8String,Int64} with 2 entries:
-+  "bar" => 4711
-+  "baz" => 17
- 
--  julia> merge(a, b)
--  Dict{UTF8String,Float64} with 3 entries:
--    "bar" => 4711.0
--    "baz" => 17.0
--    "foo" => 0.0
-+julia> merge(a, b)
-+Dict{UTF8String,Float64} with 3 entries:
-+  "bar" => 4711.0
-+  "baz" => 17.0
-+  "foo" => 0.0
- 
--  julia> merge(b, a)
--  Dict{UTF8String,Float64} with 3 entries:
--    "bar" => 42.0
--    "baz" => 17.0
--    "foo" => 0.0
-+julia> merge(b, a)
-+Dict{UTF8String,Float64} with 3 entries:
-+  "bar" => 42.0
-+  "baz" => 17.0
-+  "foo" => 0.0
- ```
- """
- merge
-@@ -2936,13 +2876,12 @@ Alternate syntax for open, where a string-based mode specifier is used instead o
- open(file_name, mode="r")
- 
- doc"""
--```rst
--..  open(f::Function, args...)
-+    open(f::Function, args...)
- 
--Apply the function ``f`` to the result of ``open(args...)`` and close the resulting file descriptor upon completion.
-+Apply the function `f` to the result of `open(args...)`
-+and close the resulting file descriptor upon completion.
- 
--**Example**: ``open(readall, "file.txt")``
--```
-+**Example**: `open(readall, "file.txt")`
- """
- open(f::Function, args...)
- 
-@@ -2975,30 +2914,28 @@ Right bit shift operator, preserving the sign of `x`.
- Base.(:(>>))
- 
- doc"""
--```rst
--..  fieldoffsets(type)
-+    fieldoffsets(type)
- 
- The byte offset of each field of a type relative to the data start. For example, we could use it
- in the following manner to summarize information about a struct type:
- 
--.. doctest::
--
--   julia> structinfo(T) = [zip(fieldoffsets(T),fieldnames(T),T.types)...];
--
--   julia> structinfo(StatStruct)
--   12-element Array{Tuple{Int64,Symbol,DataType},1}:
--    (0,:device,UInt64)
--    (8,:inode,UInt64)
--    (16,:mode,UInt64)
--    (24,:nlink,Int64)
--    (32,:uid,UInt64)
--    (40,:gid,UInt64)
--    (48,:rdev,UInt64)
--    (56,:size,Int64)
--    (64,:blksize,Int64)
--    (72,:blocks,Int64)
--    (80,:mtime,Float64)
--    (88,:ctime,Float64)
-+```jldoctest
-+julia> structinfo(T) = [zip(fieldoffsets(T),fieldnames(T),T.types)...];
-+
-+julia> structinfo(StatStruct)
-+12-element Array{Tuple{Int64,Symbol,DataType},1}:
-+ (0,:device,UInt64)
-+ (8,:inode,UInt64)
-+ (16,:mode,UInt64)
-+ (24,:nlink,Int64)
-+ (32,:uid,UInt64)
-+ (40,:gid,UInt64)
-+ (48,:rdev,UInt64)
-+ (56,:size,Int64)
-+ (64,:blksize,Int64)
-+ (72,:blocks,Int64)
-+ (80,:mtime,Float64)
-+ (88,:ctime,Float64)
- ```
- """
- fieldoffsets
-@@ -3035,11 +2972,9 @@ Construct a tuple of the given objects.
- tuple
- 
- doc"""
--```rst
--..  besseli(nu, x)
-+    besseli(nu, x)
- 
--Modified Bessel function of the first kind of order ``nu``, :math:`I_\nu(x)`.
--```
-+Modified Bessel function of the first kind of order `nu`, $I_\nu(x)$.
- """
- besseli
- 
-@@ -3114,15 +3049,13 @@ Create a sparse identity matrix of specified type of size `m x m`. In case `n` i
- speye
- 
- doc"""
--```rst
--..  count_ones(x::Integer) -> Integer
--
--Number of ones in the binary representation of ``x``.
-+    count_ones(x::Integer) -> Integer
- 
--.. doctest::
-+Number of ones in the binary representation of `x`.
- 
--   julia> count_ones(7)
--   3
-+```jldoctest
-+julia> count_ones(7)
-+3
- ```
- """
- count_ones
-@@ -3181,11 +3114,9 @@ Returns a structure whose fields contain information about the file. The fields
- stat
- 
- doc"""
--```rst
--..  exp10(x)
-+    exp10(x)
- 
--Compute :math:`10^x`
--```
-+Compute $10^x$.
- """
- exp10
- 
-@@ -3197,11 +3128,9 @@ Bitwise and
- &
- 
- doc"""
--```rst
--..  besselyx(nu, x)
-+    besselyx(nu, x)
- 
--Scaled Bessel function of the second kind of order ``nu``, :math:`Y_\nu(x) e^{- | \operatorname{Im}(x) |}`.
--```
-+Scaled Bessel function of the second kind of order `nu`, $Y_\nu(x) e^{- | \operatorname{Im}(x) |}$.
- """
- besselyx
- 
-@@ -3498,11 +3427,9 @@ Create an `IO`-like object for creating zeroed-out mmapped-memory that is not ti
- Mmap.Anonymous
- 
- doc"""
--```rst
--..  A_rdiv_Bc(...)
-+    A_rdiv_Bc(A, B)
- 
--Matrix operator A / B\ :sup:`H`
--```
-+For matrices or vectors $A$ and $B$, calculates $A / Bᴴ$
- """
- A_rdiv_Bc
- 
-@@ -3674,12 +3601,10 @@ Move the file, link, or directory from `src` to `dst`. `remove_destination=true`
- mv
- 
- doc"""
--```rst
--..  erfi(x)
-+    erfi(x)
- 
--Compute the imaginary error function of ``x``,
--defined by :math:`-i \operatorname{erf}(ix)`.
--```
-+Compute the imaginary error function of `x`,
-+defined by $-i \operatorname{erf}(ix)$.
- """
- erfi
- 
-@@ -3818,11 +3743,9 @@ The item or field is not defined for the given object.
- UndefRefError
- 
- doc"""
--```rst
--..  bessely1(x)
-+    bessely1(x)
- 
--Bessel function of the second kind of order 1, :math:`Y_1(x)`.
--```
-+Bessel function of the second kind of order 1, $Y_1(x)$.
- """
- bessely1
- 
-@@ -3839,11 +3762,9 @@ output (e.g. to avoid overflow).
- cumprod
- 
- doc"""
--```rst
--..  besseljx(nu, x)
-+    besseljx(nu, x)
- 
--Scaled Bessel function of the first kind of order ``nu``, :math:`J_\nu(x) e^{- | \operatorname{Im}(x) |}`.
--```
-+Scaled Bessel function of the first kind of order `nu`, $J_\nu(x) e^{- | \operatorname{Im}(x) |}$.
- """
- besseljx
- 
-@@ -4102,12 +4023,10 @@ Create a string from any values using the `print` function.
- string
- 
- doc"""
--```rst
--..  erfc(x)
-+    erfc(x)
- 
- Compute the complementary error function of ``x``,
--defined by :math:`1 - \operatorname{erf}(x)`.
--```
-+defined by $1 - \operatorname{erf}(x)$.
- """
- erfc
- 
-@@ -4163,20 +4082,16 @@ If the first argument is a single integer `n`, then all block rows are assumed t
- hvcat
- 
- doc"""
--```rst
--..  besselj1(x)
-+    besselj1(x)
- 
--Bessel function of the first kind of order 1, :math:`J_1(x)`.
--```
-+Bessel function of the first kind of order 1, $J_1(x)$.
- """
- besselj1
- 
- doc"""
--```rst
--..  sinpi(x)
-+    sinpi(x)
- 
--Compute :math:`\sin(\pi x)` more accurately than ``sin(pi*x)``, especially for large ``x``.
--```
-+Compute $\sin(\pi x)$ more accurately than `sin(pi*x)`, especially for large `x`.
- """
- sinpi
- 
-@@ -4243,11 +4158,9 @@ Return `x` with its sign flipped if `y` is negative. For example `abs(x) = flips
- flipsign
- 
- doc"""
--```rst
--..  lbeta(x, y)
-+    lbeta(x, y)
- 
--Natural logarithm of the absolute value of the beta function :math:`\log(|\operatorname{B}(x,y)|)`.
--```
-+Natural logarithm of the absolute value of the beta function $\log(|\operatorname{B}(x,y)|)$.
- """
- lbeta
- 
-@@ -4263,22 +4176,20 @@ specifies a random number generator, see :ref:`Random Numbers <random-numbers>`.
- randstring
- 
- doc"""
--```rst
--..  Float64(x [, mode::RoundingMode])
-+    Float64(x [, mode::RoundingMode])
- 
--Create a Float64 from ``x``. If ``x`` is not exactly representable then
--``mode`` determines how ``x`` is rounded.
-+Create a Float64 from `x`. If `x` is not exactly representable then
-+`mode` determines how `x` is rounded.
- 
--.. doctest::
-+```jldoctest
-+julia> Float64(pi, RoundDown)
-+3.141592653589793
- 
--   julia> Float64(pi, RoundDown)
--   3.141592653589793
--
--   julia> Float64(pi, RoundUp)
--   3.1415926535897936
--
--See ``get_rounding`` for available rounding modes.
-+julia> Float64(pi, RoundUp)
-+3.1415926535897936
- ```
-+
-+See `get_rounding` for available rounding modes.
- """
- Float64
- 
-@@ -4419,11 +4330,9 @@ The individual components of the factorization ``F`` can be accessed by indexing
- lufact
- 
- doc"""
--```rst
--..  besselix(nu, x)
-+    besselix(nu, x)
- 
--Scaled modified Bessel function of the first kind of order ``nu``, :math:`I_\nu(x) e^{- | \operatorname{Re}(x) |}`.
--```
-+Scaled modified Bessel function of the first kind of order `nu`, $I_\nu(x) e^{- | \operatorname{Re}(x) |}$.
- """
- besselix
- 
-@@ -4478,42 +4387,40 @@ Obtain the contents of an `IOBuffer` as a string, without copying. Afterwards, t
- takebuf_string
- 
- doc"""
--```rst
--..  pipeline(from, to, ...)
-+    pipeline(from, to, ...)
- 
- Create a pipeline from a data source to a destination. The source and destination can
--be commands, I/O streams, strings, or results of other ``pipeline`` calls. At least one
-+be commands, I/O streams, strings, or results of other `pipeline` calls. At least one
- argument must be a command. Strings refer to filenames.
- When called with more than two arguments, they are chained together from left to right.
--For example ``pipeline(a,b,c)`` is equivalent to ``pipeline(pipeline(a,b),c)``. This provides a more
-+For example `pipeline(a,b,c)` is equivalent to `pipeline(pipeline(a,b),c)`. This provides a more
- concise way to specify multi-stage pipelines.
- 
- **Examples**:
--  * ``run(pipeline(`ls`, `grep xyz`))``
--  * ``run(pipeline(`ls`, "out.txt"))``
--  * ``run(pipeline("out.txt", `grep xyz`))``
- 
--```
-+* ``run(pipeline(`ls`, `grep xyz`))``
-+* ``run(pipeline(`ls`, "out.txt"))``
-+* ``run(pipeline("out.txt", `grep xyz`))``
-+
- """
- pipeline(from, to, rest...)
- 
- doc"""
--```rst
--..  pipeline(command; stdin, stdout, stderr, append=false)
-+    pipeline(command; stdin, stdout, stderr, append=false)
- 
--Redirect I/O to or from the given ``command``. Keyword arguments specify which of
--the command's streams should be redirected. ``append`` controls whether file output
-+Redirect I/O to or from the given `command`. Keyword arguments specify which of
-+the command's streams should be redirected. `append` controls whether file output
- appends to the file.
--This is a more general version of the 2-argument ``pipeline`` function.
--``pipeline(from, to)`` is equivalent to ``pipeline(from, stdout=to)`` when ``from`` is a
--command, and to ``pipe(to, stdin=from)`` when ``from`` is another kind of
-+This is a more general version of the 2-argument `pipeline` function.
-+`pipeline(from, to)` is equivalent to `pipeline(from, stdout=to)` when `from` is a
-+command, and to `pipe(to, stdin=from)` when `from` is another kind of
- data source.
- 
- **Examples**:
--  * ``run(pipeline(`dothings`, stdout="out.txt", stderr="errs.txt"))``
--  * ``run(pipeline(`update`, stdout="log.txt", append=true))``
- 
--```
-+* ``run(pipeline(`dothings`, stdout="out.txt", stderr="errs.txt"))``
-+* ``run(pipeline(`update`, stdout="log.txt", append=true))``
-+
- """
- pipeline(command)
- 
-@@ -4755,12 +4662,10 @@ Display a warning. Argument `msg` is a string describing the warning to be displ
- warn
- 
- doc"""
--```rst
--..  erfinv(x)
-+    erfinv(x)
- 
--Compute the inverse error function of a real ``x``,
--defined by :math:`\operatorname{erf}(\operatorname{erfinv}(x)) = x`.
--```
-+Compute the inverse error function of a real `x`,
-+defined by $\operatorname{erf}(\operatorname{erfinv}(x)) = x$.
- """
- erfinv
- 
-@@ -4828,21 +4733,17 @@ Return a collection of all instances of the given type, if applicable. Mostly us
- instances
- 
- doc"""
--```rst
--..  besselj0(x)
-+    besselj0(x)
- 
--Bessel function of the first kind of order 0, :math:`J_0(x)`.
--```
-+Bessel function of the first kind of order 0, $J_0(x)$.
- """
- besselj0
- 
- doc"""
--```rst
--..  erfcinv(x)
-+    erfcinv(x)
- 
--Compute the inverse error complementary function of a real ``x``,
--defined by :math:`\operatorname{erfc}(\operatorname{erfcinv}(x)) = x`.
--```
-+Compute the inverse error complementary function of a real `x`,
-+defined by $\operatorname{erfc}(\operatorname{erfcinv}(x)) = x$.
- """
- erfcinv
- 
-@@ -4932,11 +4833,9 @@ Equivalent to `stat(file).size`
- filesize
- 
- doc"""
--```rst
--..  sinc(x)
-+    sinc(x)
- 
--Compute :math:`\sin(\pi x) / (\pi x)` if :math:`x \neq 0`, and :math:`1` if :math:`x = 0`.
--```
-+Compute $\sin(\pi x) / (\pi x)$ if $x \neq 0$, and $1$ if $x = 0$.
- """
- sinc
- 
-@@ -4992,97 +4891,91 @@ Approximate floating point number `x` as a Rational number with components of th
- rationalize
- 
- doc"""
--```rst
--..  splice!(collection, index, [replacement]) -> item
-+    splice!(collection, index, [replacement]) -> item
- 
- Remove the item at the given index, and return the removed item. Subsequent items
- are shifted down to fill the resulting gap. If specified, replacement values from
- an ordered collection will be spliced in place of the removed item.
- 
--.. doctest::
--
--  julia> A = [6, 5, 4, 3, 2, 1]; splice!(A, 5)
--  2
--
--  julia> A
--  5-element Array{Int64,1}:
--   6
--   5
--   4
--   3
--   1
-+```jldoctest
-+julia> A = [6, 5, 4, 3, 2, 1]; splice!(A, 5)
-+2
- 
--  julia> splice!(A, 5, -1)
--  1
-+julia> A
-+5-element Array{Int64,1}:
-+ 6
-+ 5
-+ 4
-+ 3
-+ 1
- 
--  julia> A
--  5-element Array{Int64,1}:
--    6
--    5
--    4
--    3
--   -1
-+julia> splice!(A, 5, -1)
-+1
- 
--  julia> splice!(A, 1, [-1, -2, -3])
-+julia> A
-+5-element Array{Int64,1}:
-   6
-+  5
-+  4
-+  3
-+ -1
- 
--  julia> A
--  7-element Array{Int64,1}:
--   -1
--   -2
--   -3
--    5
--    4
--    3
--   -1
-+julia> splice!(A, 1, [-1, -2, -3])
-+6
- 
--To insert ``replacement`` before an index ``n`` without removing any items, use
--``splice!(collection, n:n-1, replacement)``.
-+julia> A
-+7-element Array{Int64,1}:
-+ -1
-+ -2
-+ -3
-+  5
-+  4
-+  3
-+ -1
- ```
-+
-+To insert `replacement` before an index `n` without removing any items, use
-+`splice!(collection, n:n-1, replacement)`.
- """
- splice!(collection, index, replacement = ?)
- 
- doc"""
--```rst
--..  splice!(collection, range, [replacement]) -> items
-+    splice!(collection, range, [replacement]) -> items
- 
- Remove items in the specified index range, and return a collection containing the
- removed items. Subsequent items are shifted down to fill the resulting gap.
- If specified, replacement values from an ordered collection will be spliced in place
- of the removed items.
- 
--To insert ``replacement`` before an index ``n`` without removing any items, use
--``splice!(collection, n:n-1, replacement)``.
--
--.. doctest::
-+To insert `replacement` before an index `n` without removing any items, use
-+`splice!(collection, n:n-1, replacement)`.
- 
--  julia> splice!(A, 4:3, 2)
--  0-element Array{Int64,1}
-+```jldoctest
-+julia> splice!(A, 4:3, 2)
-+0-element Array{Int64,1}
- 
--  julia> A
--  8-element Array{Int64,1}:
--   -1
--   -2
--   -3
--    2
--    5
--    4
--    3
--   -1
-+julia> A
-+8-element Array{Int64,1}:
-+ -1
-+ -2
-+ -3
-+  2
-+  5
-+  4
-+  3
-+ -1
- ```
- """
- splice!(collection, range::Range, replacement)
- 
- doc"""
--```rst
--..  endof(collection) -> Integer
-+    endof(collection) -> Integer
- 
- Returns the last index of the collection.
- 
--.. doctest::
--
--	julia> endof([1,2,4])
--	3
-+```jldoctest
-+julia> endof([1,2,4])
-+3
- ```
- """
- endof
-@@ -5139,13 +5032,11 @@ Returns the number of stored (filled) elements in a sparse matrix.
- nnz
- 
- doc"""
--```rst
--..  unshift!(collection, items...) -> collection
-+    unshift!(collection, items...) -> collection
- 
--Insert one or more ``items`` at the beginning of ``collection``.
--
--.. doctest::
-+Insert one or more `items` at the beginning of `collection`.
- 
-+```jldoctest
-   julia> unshift!([1, 2, 3, 4], 5, 6)
-   6-element Array{Int64,1}:
-    5
-@@ -5548,17 +5439,16 @@ Immediately run finalizers registered for object `x`.
- finalize
- 
- doc"""
--```rst
--..  rand([rng], [S], [dims...])
--
--Pick a random element or array of random elements from the set of values specified by ``S``; ``S`` can be
-+    rand([rng], [S], [dims...])
- 
--* an indexable collection (for example ``1:n`` or ``['x','y','z']``), or
-+Pick a random element or array of random elements from the set of values specified by `S`; `S` can be
- 
--* a type: the set of values to pick from is then equivalent to ``typemin(S):typemax(S)`` for integers (this is not applicable to ``BigInt``), and to :math:`[0, 1)` for floating point numbers;
-+* an indexable collection (for example `1:n` or `['x','y','z']`), or
-+* a type: the set of values to pick from is then equivalent to
-+`typemin(S):typemax(S)` for integers (this is not applicable to `BigInt`),
-+and to $[0, 1)$ for floating point numbers;
- 
--``S`` defaults to ``Float64``.
--```
-+`S` defaults to `Float64`.
- """
- rand
- 
-@@ -5714,27 +5604,23 @@ doc"""
- bkfact!
- 
- doc"""
--```rst
--..  ^(x, y)
-+    ^(x, y)
- 
- Exponentiation operator.
--```
- """
- Base.(:(^))(x, y)
- 
- doc"""
--```rst
--..  ^(s, n)
--
--Repeat ``n`` times the string ``s``. The ``^`` operator is an alias to this function.
-+    ^(s, n)
- 
--.. doctest::
-+Repeat `n` times the string `s`. The `repeat` function is an alias to this operator.
- 
--	julia> "Test "^3
--	"Test Test Test "
-+```jldoctest
-+julia> "Test "^3
-+"Test Test Test "
- ```
- """
--Base.(:(^))(s::String, n::Int)
-+Base.(:(^))(s::AbstractString, n::Int)
- 
- doc"""
-     position(s)
-@@ -5793,11 +5679,9 @@ Bitwise not
- ~
- 
- doc"""
--```rst
--..  hankelh1(nu, x)
-+    hankelh1(nu, x)
- 
--Bessel function of the third kind of order ``nu``, :math:`H^{(1)}_\nu(x)`.
--```
-+Bessel function of the third kind of order `nu`, $H^{(1)}_\nu(x)$.
- """
- hankelh1
- 
-@@ -5911,29 +5795,26 @@ See also :func:`sortperm`
- sortperm!
- 
- doc"""
--```rst
--..  isodd(x::Integer) -> Bool
-+    isodd(x::Integer) -> Bool
- 
--Returns ``true`` if ``x`` is odd (that is, not divisible by 2), and ``false`` otherwise.
-+Returns `true` if `x` is odd (that is, not divisible by 2), and `false` otherwise.
- 
--.. doctest::
-+```jldoctest
-+julia> isodd(9)
-+true
- 
--	julia> isodd(9)
--	true
--
--	julia> isodd(10)
--	false
-+julia> isodd(10)
-+false
- ```
- """
- isodd
- 
- doc"""
--```rst
--..  normalize_string(s, normalform::Symbol)
-+    normalize_string(s, normalform::Symbol)
- 
--Normalize the string ``s`` according to one of the four "normal
--forms" of the Unicode standard: ``normalform`` can be ``:NFC``,
--``:NFD``, ``:NFKC``, or ``:NFKD``.  Normal forms C (canonical
-+Normalize the string `s` according to one of the four "normal
-+forms" of the Unicode standard: `normalform` can be `:NFC`,
-+`:NFD`, `:NFKC`, or `:NFKD`.  Normal forms C (canonical
- composition) and D (canonical decomposition) convert different
- visually identical representations of the same abstract string into
- a single canonical form, with form C being more compact.  Normal
-@@ -5943,23 +5824,22 @@ but visually distinct into a single canonical choice (e.g. they expand
- ligatures into the individual characters), with form KC being more compact.
- 
- Alternatively, finer control and additional transformations may be
--be obtained by calling ``normalize_string(s; keywords...)``, where
-+be obtained by calling `normalize_string(s; keywords...)`, where
- any number of the following boolean keywords options (which all default
--to ``false`` except for ``compose``) are specified:
-+to `false` except for `compose`) are specified:
- 
--* ``compose=false``: do not perform canonical composition
--* ``decompose=true``: do canonical decomposition instead of canonical composition (``compose=true`` is ignored if present)
--* ``compat=true``: compatibility equivalents are canonicalized
--* ``casefold=true``: perform Unicode case folding, e.g. for case-insensitive string comparison
--* ``newline2lf=true``, ``newline2ls=true``, or ``newline2ps=true``: convert various newline sequences (LF, CRLF, CR, NEL) into a linefeed (LF), line-separation (LS), or paragraph-separation (PS) character, respectively
--* ``stripmark=true``: strip diacritical marks (e.g. accents)
--* ``stripignore=true``: strip Unicode's "default ignorable" characters (e.g. the soft hyphen or the left-to-right marker)
--* ``stripcc=true``: strip control characters; horizontal tabs and form feeds are converted to spaces; newlines are also converted to spaces unless a newline-conversion flag was specified
--* ``rejectna=true``: throw an error if unassigned code points are found
--* ``stable=true``: enforce Unicode Versioning Stability
-+* `compose=false`: do not perform canonical composition
-+* `decompose=true`: do canonical decomposition instead of canonical composition (`compose=true` is ignored if present)
-+* `compat=true`: compatibility equivalents are canonicalized
-+* `casefold=true`: perform Unicode case folding, e.g. for case-insensitive string comparison
-+* `newline2lf=true`, `newline2ls=true`, or `newline2ps=true`: convert various newline sequences (LF, CRLF, CR, NEL) into a linefeed (LF), line-separation (LS), or paragraph-separation (PS) character, respectively
-+* `stripmark=true`: strip diacritical marks (e.g. accents)
-+* `stripignore=true`: strip Unicode's "default ignorable" characters (e.g. the soft hyphen or the left-to-right marker)
-+* `stripcc=true`: strip control characters; horizontal tabs and form feeds are converted to spaces; newlines are also converted to spaces unless a newline-conversion flag was specified
-+* `rejectna=true`: throw an error if unassigned code points are found
-+* `stable=true`: enforce Unicode Versioning Stability
- 
--For example, NFKC corresponds to the options ``compose=true, compat=true, stable=true``.
--```
-+For example, NFKC corresponds to the options `compose=true, compat=true, stable=true`.
- """
- normalize_string
- 
-@@ -6038,34 +5918,32 @@ with appropriate ``op`` values:
- manage
- 
- doc"""
--```rst
--..  resize!(collection, n) -> collection
-+    resize!(collection, n) -> collection
- 
--Resize ``collection`` to contain ``n`` elements.
--If ``n`` is smaller than the current collection length, the first ``n``
--elements will be retained. If ``n`` is larger, the new elements are not
-+Resize `collection` to contain `n` elements.
-+If `n` is smaller than the current collection length, the first `n`
-+elements will be retained. If `n` is larger, the new elements are not
- guaranteed to be initialized.
- 
--.. doctest::
--
--  julia> resize!([6, 5, 4, 3, 2, 1], 3)
--  3-element Array{Int64,1}:
--   6
--   5
--   4
--
--.. code-block:: julia
-+```jldoctest
-+julia> resize!([6, 5, 4, 3, 2, 1], 3)
-+3-element Array{Int64,1}:
-+ 6
-+ 5
-+ 4
-+```
- 
--  julia> resize!([6, 5, 4, 3, 2, 1], 8)
--  8-element Array{Int64,1}:
--   6
--   5
--   4
--   3
--   2
--   1
--   0
--   0
-+```jl
-+julia> resize!([6, 5, 4, 3, 2, 1], 8)
-+8-element Array{Int64,1}:
-+ 6
-+ 5
-+ 4
-+ 3
-+ 2
-+ 1
-+ 0
-+ 0
- ```
- """
- resize!
-@@ -6085,15 +5963,13 @@ Returns IPv4 object from ip address formatted as Integer
- IPv4
- 
- doc"""
--```rst
--..  trailing_zeros(x::Integer) -> Integer
-+    trailing_zeros(x::Integer) -> Integer
- 
--Number of zeros trailing the binary representation of ``x``.
-+Number of zeros trailing the binary representation of `x`.
- 
--.. doctest::
--
--   julia> trailing_zeros(2)
--   1
-+```jldoctest
-+julia> trailing_zeros(2)
-+1
- ```
- """
- trailing_zeros
-@@ -6268,7 +6144,7 @@ doc"""
- 
- The distance between `x` and the next larger representable floating-point value of the same `DataType` as `x`.
- """
--eps(::FloatingPoint)
-+eps(::AbstractFloat)
- 
- doc"""
-     rem1(x,m)
-@@ -6392,11 +6268,9 @@ Get a module's enclosing `Module`. `Main` is its own parent, as is `LastMain` af
- module_parent
- 
- doc"""
--```rst
--..  airyaiprime(x)
-+    airyaiprime(x)
- 
--Airy function derivative :math:`\operatorname{Ai}'(x)`.
--```
-+Airy function derivative $\operatorname{Ai}'(x)$.
- """
- airyaiprime
- 
-@@ -6408,18 +6282,16 @@ Bessel function of the third kind of order `nu` (Hankel function). `k` is either
- besselh
- 
- doc"""
--```rst
--..  prepend!(collection, items) -> collection
--
--Insert the elements of ``items`` to the beginning of ``collection``.
-+    prepend!(collection, items) -> collection
- 
--.. doctest::
-+Insert the elements of `items` to the beginning of `collection`.
- 
--   julia> prepend!([3],[1,2])
--   3-element Array{Int64,1}:
--    1
--    2
--    3
-+```jldoctest
-+julia> prepend!([3],[1,2])
-+3-element Array{Int64,1}:
-+ 1
-+ 2
-+ 3
- ```
- """
- prepend!
-@@ -6432,11 +6304,9 @@ Returns the sum of all array elements, using the Kahan-Babuska-Neumaier compensa
- sum_kbn
- 
- doc"""
--```rst
--..  beta(x, y)
-+    beta(x, y)
- 
--Euler integral of the first kind :math:`\operatorname{B}(x,y) = \Gamma(x)\Gamma(y)/\Gamma(x+y)`.
--```
-+Euler integral of the first kind $\operatorname{B}(x,y) = \Gamma(x)\Gamma(y)/\Gamma(x+y)$.
- """
- beta
- 
-@@ -6534,7 +6404,7 @@ ordschur!(::LinAlg.GeneralizedSchur,select)
- 
- doc"""
- ```rst
--..  Base.compilecache(module::Symbol)
-+..  Base.compilecache(module::ByteString)
- 
- Creates a precompiled cache file for module (see help for ``require``) and all of its dependencies. This can be used to reduce package load times. Cache files are stored in ``LOAD_CACHE_PATH[1]``, which defaults to ``~/.julia/lib/VERSION``. See :ref:`Module initialization and precompilation <man-modules-initialization-precompilation>` for important notes.
- ```
-@@ -6584,21 +6454,19 @@ Return an iterator over all values in a collection. `collect(values(d))` returns
- values
- 
- doc"""
--```rst
--..  A_mul_B!(Y, A, B) -> Y
--
-+    A_mul_B!(Y, A, B) -> Y
- 
--Calculates the matrix-matrix or matrix-vector product *A B* and stores the
--result in *Y*, overwriting the existing value of *Y*.
- 
--.. doctest::
-+Calculates the matrix-matrix or matrix-vector product $A⋅B$ and stores the
-+result in $Y$, overwriting the existing value of $Y$.
- 
--   julia> A=[1.0 2.0; 3.0 4.0]; B=[1.0 1.0; 1.0 1.0]; A_mul_B!(B, A, B);
-+```jldoctest
-+julia> A=[1.0 2.0; 3.0 4.0]; B=[1.0 1.0; 1.0 1.0]; A_mul_B!(B, A, B);
- 
--   julia> B
--   2x2 Array{Float64,2}:
--    3.0  3.0
--    7.0  7.0
-+julia> B
-+2x2 Array{Float64,2}:
-+ 3.0  3.0
-+ 7.0  7.0
- ```
- """
- A_mul_B!
-@@ -6620,11 +6488,10 @@ Same as :func:`idct!`, but operates in-place on ``A``.
- idct!
- 
- doc"""
--```rst
--..  Ac_rdiv_Bc(a,b)
-+    Ac_rdiv_Bc(A, B)
-+
-+For matrices or vectors $A$ and $B$, calculates $Aᴴ / Bᴴ$
- 
--Matrix operator A\ :sup:`H` / B\ :sup:`H`
--```
- """
- Ac_rdiv_Bc
- 
-@@ -7168,46 +7035,39 @@ Compute the inverse hyperbolic tangent of `x`
- atanh
- 
- doc"""
--```rst
--..  deleteat!(collection, index)
-+    deleteat!(collection, index)
- 
--Remove the item at the given ``index`` and return the modified ``collection``.
-+Remove the item at the given `index` and return the modified `collection`.
- Subsequent items are shifted to fill the resulting gap.
- 
--.. doctest::
--
--  julia> deleteat!([6, 5, 4, 3, 2, 1], 2)
--  5-element Array{Int64,1}:
--   6
--   4
--   3
--   2
--   1
--
-+```jldoctest
-+julia> deleteat!([6, 5, 4, 3, 2, 1], 2)
-+5-element Array{Int64,1}:
-+ 6
-+ 4
-+ 3
-+ 2
-+ 1
- ```
- """
- deleteat!(collection, index::Integer)
- 
- doc"""
--```rst
--..  deleteat!(collection, itr)
-+    deleteat!(collection, itr)
- 
--Remove the items at the indices given by ``itr``, and return the modified ``collection``.
--Subsequent items are shifted to fill the resulting gap. ``itr`` must be sorted and unique.
-+Remove the items at the indices given by `itr`, and return the modified `collection`.
-+Subsequent items are shifted to fill the resulting gap. `itr` must be sorted and unique.
- 
--.. doctest::
-+```jldoctest
-+julia> deleteat!([6, 5, 4, 3, 2, 1], 1:2:5)
-+3-element Array{Int64,1}:
-+ 5
-+ 3
-+ 1
- 
--  julia> deleteat!([6, 5, 4, 3, 2, 1], 1:2:5)
--  3-element Array{Int64,1}:
--   5
--   3
--   1
--
--.. doctest::
--
--  julia> deleteat!([6, 5, 4, 3, 2, 1], (2, 2))
--  ERROR: ArgumentError: indices must be unique and sorted
--   in deleteat! at array.jl:543
-+julia> deleteat!([6, 5, 4, 3, 2, 1], (2, 2))
-+ERROR: ArgumentError: indices must be unique and sorted
-+ in deleteat! at array.jl:543
- ```
- """
- deleteat!(collection, itr)
-@@ -7262,32 +7122,30 @@ Determine whether an object - such as a stream, timer, or mmap -- is not yet clo
- isopen
- 
- doc"""
--```rst
--..  shift!(collection) -> item
-+    shift!(collection) -> item
- 
--Remove the first ``item`` from ``collection``.
-+Remove the first `item` from `collection`.
- 
--.. doctest::
--
--  julia> A = [1, 2, 3, 4, 5, 6]
--  6-element Array{Int64,1}:
--   1
--   2
--   3
--   4
--   5
--   6
-+```jldoctest
-+julia> A = [1, 2, 3, 4, 5, 6]
-+6-element Array{Int64,1}:
-+ 1
-+ 2
-+ 3
-+ 4
-+ 5
-+ 6
- 
--  julia> shift!(A)
--  1
-+julia> shift!(A)
-+1
- 
--  julia> A
--  5-element Array{Int64,1}:
--   2
--   3
--   4
--   5
--   6
-+julia> A
-+5-element Array{Int64,1}:
-+ 2
-+ 3
-+ 4
-+ 5
-+ 6
- ```
- """
- shift!
-@@ -7372,11 +7230,9 @@ Compute *nice* bin ranges for the edges of a histogram of `v`, using approximate
- histrange
- 
- doc"""
--```rst
--..  eta(x)
-+    eta(x)
- 
--Dirichlet eta function :math:`\eta(s) = \sum^\infty_{n=1}(-)^{n-1}/n^{s}`.
--```
-+Dirichlet eta function $\eta(s) = \sum^\infty_{n=1}(-)^{n-1}/n^{s}$.
- """
- eta
- 
-@@ -7402,32 +7258,25 @@ Convert an integer to a decimal string, optionally specifying a number of digits
- dec
- 
- doc"""
--```rst
--..  wait([x])
-+    wait([x])
- 
- Block the current task until some event occurs, depending on the type
- of the argument:
- 
--* ``RemoteRef``: Wait for a value to become available for the specified remote reference.
--
--* ``Channel``: Wait for a value to be appended to the channel.
--
--* ``Condition``: Wait for ``notify`` on a condition.
--
--* ``Process``: Wait for a process or process chain to exit. The ``exitcode`` field of a process can be used to determine success or failure.
--
--* ``Task``: Wait for a ``Task`` to finish, returning its result value. If the task fails with an exception, the exception is propagated (re-thrown in the task that called ``wait``).
--
--* ``RawFD``: Wait for changes on a file descriptor (see `poll_fd` for keyword arguments and return code)
-+* `RemoteRef`: Wait for a value to become available for the specified remote reference.
-+* `Channel`: Wait for a value to be appended to the channel.
-+* `Condition`: Wait for `notify` on a condition.
-+* `Process`: Wait for a process or process chain to exit. The `exitcode` field of a process can be used to determine success or failure.
-+* `Task`: Wait for a `Task` to finish, returning its result value. If the task fails with an exception, the exception is propagated (re-thrown in the task that called `wait`).
-+* `RawFD`: Wait for changes on a file descriptor (see `poll_fd` for keyword arguments and return code)
- 
- If no argument is passed, the task blocks for an undefined period. If the task's
--state is set to ``:waiting``, it can only be restarted by an explicit call to
--``schedule`` or ``yieldto``. If the task's state is ``:runnable``, it might be
-+state is set to `:waiting`, it can only be restarted by an explicit call to
-+`schedule` or `yieldto`. If the task's state is `:runnable`, it might be
- restarted unpredictably.
- 
--Often ``wait`` is called within a ``while`` loop to ensure a waited-for condition
-+Often `wait` is called within a `while` loop to ensure a waited-for condition
- is met before proceeding.
--```
- """
- wait
- 
-@@ -7471,11 +7320,9 @@ Alternatively, a sequence of pair arguments may be passed.
- Dict
- 
- doc"""
--```rst
--..  sqrt(x)
-+    sqrt(x)
- 
--Return :math:`\sqrt{x}`. Throws ``DomainError`` for negative ``Real`` arguments. Use complex negative arguments instead.  The prefix operator ``√`` is equivalent to ``sqrt``.
--```
-+Return $\sqrt{x}$. Throws `DomainError` for negative `Real` arguments. Use complex negative arguments instead.  The prefix operator `√` is equivalent to `sqrt`.
- """
- sqrt
- 
-@@ -7488,11 +7335,9 @@ Register a zero-argument function `f()` to be called at process exit.
- atexit
- 
- doc"""
--```rst
--..  besselk(nu, x)
-+    besselk(nu, x)
- 
--Modified Bessel function of the second kind of order ``nu``, :math:`K_\nu(x)`.
--```
-+Modified Bessel function of the second kind of order `nu`, $K_\nu(x)$.
- """
- besselk
- 
-@@ -7607,15 +7452,13 @@ Equivalent to `!is(x, y)`
- Base.(:(!==))
- 
- doc"""
--```rst
--..  trailing_ones(x::Integer) -> Integer
--
--Number of ones trailing the binary representation of ``x``.
-+    trailing_ones(x::Integer) -> Integer
- 
--.. doctest::
-+Number of ones trailing the binary representation of `x`.
- 
--   julia> trailing_ones(3)
--   2
-+```jldoctest
-+julia> trailing_ones(3)
-+2
- ```
- """
- trailing_ones
-@@ -7681,18 +7524,16 @@ Create a shallow copy of `x`: the outer structure is copied, but not all interna
- copy
- 
- doc"""
--```rst
--..  isempty(collection) -> Bool
-+    isempty(collection) -> Bool
- 
- Determine whether a collection is empty (has no elements).
- 
--.. doctest::
--
--	julia> isempty([])
--	true
-+```jldoctest
-+julia> isempty([])
-+true
- 
--	julia> isempty([1 2 3])
--	false
-+julia> isempty([1 2 3])
-+false
- ```
- """
- isempty
-@@ -7869,33 +7710,27 @@ The highest value representable by the given (real) numeric `DataType`.
- typemax
- 
- doc"""
--```rst
--..  all(itr) -> Bool
-+    all(itr) -> Bool
- 
--Test whether all elements of a boolean collection are ``true``.
--```
-+Test whether all elements of a boolean collection are `true`.
- """
- all(itr)
- 
- doc"""
--```rst
--..  all(A, dims)
-+    all(A, dims)
- 
--Test whether all values along the given dimensions of an array are ``true``.
--```
-+Test whether all values along the given dimensions of an array are `true`.
- """
- all(A::AbstractArray, dims)
- 
- doc"""
--```rst
--..  all(p, itr) -> Bool
-+    all(p, itr) -> Bool
- 
--Determine whether predicate ``p`` returns ``true`` for all elements of ``itr``.
-+Determine whether predicate `p` returns `true` for all elements of `itr`.
- 
--.. doctest::
--
--	julia> all(i->(4<=i<=6), [4,5,6])
--	true
-+```jldoctest
-+julia> all(i->(4<=i<=6), [4,5,6])
-+true
- ```
- """
- all(p, itr)
-@@ -8053,21 +7888,17 @@ Send the given value to the last `consume` call, switching to the consumer task.
- produce
- 
- doc"""
--```rst
--.. ifft(A [, dims])
-+    ifft(A [, dims])
- 
- Multidimensional inverse FFT.
- 
- A one-dimensional inverse FFT computes
- 
--.. math::
--
--   \operatorname{IDFT}(A)[k] = \frac{1}{\operatorname{length}(A)}
--   \sum_{n=1}^{\operatorname{length}(A)} \exp\left(+i\frac{2\pi (n-1)(k-1)}
--   {\operatorname{length}(A)} \right) A[n].
-+$$\operatorname{IDFT}(A)[k] = \frac{1}{\operatorname{length}(A)}
-+\sum_{n=1}^{\operatorname{length}(A)} \exp\left(+i\frac{2\pi (n-1)(k-1)}
-+{\operatorname{length}(A)} \right) A[n].$$
- 
--A multidimensional inverse FFT simply performs this operation along each transformed dimension of ``A``.
--```
-+A multidimensional inverse FFT simply performs this operation along each transformed dimension of `A`.
- """
- ifft
- 
-@@ -8217,30 +8048,28 @@ Join an array of `strings` into a single string, inserting the given delimiter b
- join
- 
- doc"""
--```rst
--..  linreg(x, y) -> [a; b]
--
--Linear Regression. Returns ``a`` and ``b`` such that ``a+b*x`` is the closest line to the given points ``(x,y)``. In other words, this function determines parameters ``[a, b]`` that minimize the squared error between ``y`` and ``a+b*x``.
-+    linreg(x, y) -> a, b
- 
--**Example**::
--
--   using PyPlot;
--   x = float([1:12])
--   y = [5.5; 6.3; 7.6; 8.8; 10.9; 11.79; 13.48; 15.02; 17.77; 20.81; 22.0; 22.99]
--   a, b = linreg(x,y) # Linear regression
--   plot(x, y, "o") # Plot (x,y) points
--   plot(x, [a+b*i for i in x]) # Plot the line determined by the linear regression
-+Perform linear regression. Returns `a` and `b` such that `a + b*x` is the closest
-+straight line to the given points `(x, y)`, i.e., such that the squared error
-+between `y` and `a + b*x` is minimized.
- 
-+**Example**:
-+```
-+   using PyPlot
-+   x = [1.0:12.0;]
-+   y = [5.5, 6.3, 7.6, 8.8, 10.9, 11.79, 13.48, 15.02, 17.77, 20.81, 22.0, 22.99]
-+   a, b = linreg(x, y)          # Linear regression
-+   plot(x, y, "o")              # Plot (x, y) points
-+   plot(x, [a+b*i for i in x])  # Plot line determined by linear regression
- ```
- """
- linreg(x,y)
- 
- doc"""
--```rst
--..   linreg(x, y, w)
-+    linreg(x, y, w)
- 
- Weighted least-squares linear regression.
--```
- """
- linreg(x,y,w)
- 
-@@ -8259,11 +8088,9 @@ Test whether `x` is less than `y`, according to a canonical total order. Values
- isless
- 
- doc"""
--```rst
--..  expm1(x)
-+    expm1(x)
- 
--Accurately compute :math:`e^x-1`
--```
-+Accurately compute $e^x-1$.
- """
- expm1
- 
-@@ -8282,11 +8109,9 @@ Construct the set of elements in `s1` but not `s2`. Maintains order with arrays.
- setdiff
- 
- doc"""
--```rst
--..  airyai(x)
-+    airyai(x)
- 
--Airy function :math:`\operatorname{Ai}(x)`.
--```
-+Airy function $\operatorname{Ai}(x)$.
- """
- airyai
- 
-@@ -8392,14 +8217,12 @@ Get the *dynamically* current `Module`, which is the `Module` code is currently
- current_module
- 
- doc"""
--```rst
--..  erfcx(x)
-+    erfcx(x)
- 
--Compute the scaled complementary error function of ``x``,
--defined by :math:`e^{x^2} \operatorname{erfc}(x)`.  Note
--also that :math:`\operatorname{erfcx}(-ix)` computes the
--Faddeeva function :math:`w(x)`.
--```
-+Compute the scaled complementary error function of `x`,
-+defined by $e^{x^2} \operatorname{erfc}(x)$.  Note
-+also that $\operatorname{erfcx}(-ix)$ computes the
-+Faddeeva function $w(x)$.
- """
- erfcx
- 
-@@ -8586,15 +8409,13 @@ Return the current user's home directory.
- homedir
- 
- doc"""
--```rst
--..  count_zeros(x::Integer) -> Integer
--
--Number of zeros in the binary representation of ``x``.
-+    count_zeros(x::Integer) -> Integer
- 
--.. doctest::
-+Number of zeros in the binary representation of `x`.
- 
--   julia> count_zeros(Int32(2 ^ 16 - 1))
--   16
-+```jldoctest
-+julia> count_zeros(Int32(2 ^ 16 - 1))
-+16
- ```
- """
- count_zeros
-@@ -8740,25 +8561,21 @@ argument specifies a random number generator, see :ref:`Random Numbers
- randcycle
- 
- doc"""
--```rst
--..  leading_zeros(x::Integer) -> Integer
--
--Number of zeros leading the binary representation of ``x``.
-+    leading_zeros(x::Integer) -> Integer
- 
--.. doctest::
-+Number of zeros leading the binary representation of `x`.
- 
--   julia> leading_zeros(Int32(1))
--   31
-+```jldoctest
-+julia> leading_zeros(Int32(1))
-+31
- ```
- """
- leading_zeros
- 
- doc"""
--```rst
--..  hankelh2(nu, x)
-+    hankelh2(nu, x)
- 
--Bessel function of the third kind of order ``nu``, :math:`H^{(2)}_\nu(x)`.
--```
-+Bessel function of the third kind of order `nu`, $H^{(2)}_\nu(x)$.
- """
- hankelh2
- 
-@@ -8840,11 +8657,9 @@ Register a function `f(x)` to be called when there are no program-accessible ref
- finalizer
- 
- doc"""
--```rst
--..  nextprod([k_1,k_2,...], n)
-+    nextprod([k_1,k_2,...], n)
- 
--Next integer not less than ``n`` that can be written as :math:`\prod k_i^{p_i}` for integers :math:`p_1`, :math:`p_2`, etc.
--```
-+Next integer not less than `n` that can be written as $\prod k_i^{p_i}$ for integers $p_1$, $p_2$, etc.
- """
- nextprod
- 
-@@ -8883,17 +8698,17 @@ Computes the solution `X` to the continuous Lyapunov equation `AX + XA' + C = 0`
- lyap
- 
- doc"""
--```rst
--..  condskeel(M, [x, p])
-+    condskeel(M, [x, p])
- 
--.. math::
--   \kappa_S(M, p) & = \left\Vert \left\vert M \right\vert \left\vert M^{-1} \right\vert  \right\Vert_p \\
--   \kappa_S(M, x, p) & = \left\Vert \left\vert M \right\vert \left\vert M^{-1} \right\vert \left\vert x \right\vert \right\Vert_p
-+$$\kappa_S(M, p) & = \left\Vert \left\vert M \right\vert \left\vert M^{-1} \right\vert  \right\Vert_p \\
-+\kappa_S(M, x, p) & = \left\Vert \left\vert M \right\vert \left\vert M^{-1} \right\vert \left\vert x \right\vert \right\Vert_p$$
- 
--Skeel condition number :math:`\kappa_S` of the matrix ``M``, optionally with respect to the vector ``x``, as computed using the operator ``p``-norm. ``p`` is ``Inf`` by default, if not provided. Valid values for ``p`` are ``1``, ``2``, or ``Inf``.
-+Skeel condition number $\kappa_S$ of the matrix `M`, optionally with respect to
-+the vector `x`, as computed using the operator `p`-norm. `p` is `Inf` by
-+default, if not provided. Valid values for `p` are `1`, `2`, or `Inf`.
- 
--This quantity is also known in the literature as the Bauer condition number, relative condition number, or componentwise relative condition number.
--```
-+This quantity is also known in the literature as the Bauer condition number,
-+relative condition number, or componentwise relative condition number.
- """
- condskeel
- 
-@@ -8972,11 +8787,9 @@ the inverse transforms :func:`ifft` and so on.
- plan_fft
- 
- doc"""
--```rst
--..  A_rdiv_Bt(a,b)
-+    A_rdiv_Bt(A, B)
- 
--Matrix operator A / B\ :sup:`T`
--```
-+For matrices or vectors $A$ and $B$, calculates $A / Bᵀ$
- """
- A_rdiv_Bt
- 
-@@ -9103,11 +8916,9 @@ Read `io` until the end of the stream/file and count the number of lines. To spe
- countlines
- 
- doc"""
--```rst
--..  *(A, B)
-+    *(A, B)
- 
- Matrix multiplication
--```
- """
- Base.(:(*))(::AbstractMatrix, ::AbstractMatrix)
- 
-@@ -9117,7 +8928,7 @@ doc"""
- 
- Matrix division using a polyalgorithm. For input matrices ``A`` and ``B``, the result ``X`` is such that ``A*X == B`` when ``A`` is square.  The solver that is used depends upon the structure of ``A``.  A direct solver is used for upper or lower triangular ``A``.  For Hermitian ``A`` (equivalent to symmetric ``A`` for non-complex ``A``) the ``BunchKaufman`` factorization is used.  Otherwise an LU factorization is used. For rectangular ``A`` the result is the minimum-norm least squares solution computed by a pivoted QR factorization of ``A`` and a rank estimate of ``A`` based on the R factor.
- 
--When ``A`` is sparse, a similar polyalgorithm is used. For indefinite matrices, the LDLt factorization does not use pivoting during the numerical factorization and therefore the procedure can fail even for invertible matrices.
-+When ``A`` is sparse, a similar polyalgorithm is used. For indefinite matrices, the ``LDLt`` factorization does not use pivoting during the numerical factorization and therefore the procedure can fail even for invertible matrices.
- ```
- """
- Base.(:(\))(A,B)
-@@ -9143,25 +8954,21 @@ Base.(:(\))(x::Number,y::Number)
- 
- 
- doc"""
--```rst
--..  *(x, y...)
-+    *(x, y...)
- 
--Multiplication operator. ``x*y*z*...`` calls this function with all arguments, i.e.
--``*(x, y, z, ...)``.
--```
-+Multiplication operator. `x*y*z*...` calls this function with all arguments, i.e.
-+`*(x, y, z, ...)`.
- """
- Base.(:(*))(x, y...)
- 
- doc"""
--```rst
--..  *(s, t)
-+    *(s, t)
- 
--Concatenate strings. The ``*`` operator is an alias to this function.
-+Concatenate strings. The `*` operator is an alias to this function.
- 
--.. doctest::
--
--   julia> "Hello " * "world"
--   "Hello world"
-+```jldoctest
-+julia> "Hello " * "world"
-+"Hello world"
- ```
- """
- Base.(:(*))(s::AbstractString, t::AbstractString)
-@@ -9237,11 +9044,9 @@ Compute the (pivoted) QR factorization of `A` such that either `A = Q*R` or `A[:
- qr
- 
- doc"""
--```rst
--..  invmod(x,m)
-+    invmod(x,m)
- 
--Take the inverse of ``x`` modulo ``m``: ``y`` such that :math:`xy = 1 \pmod m`
--```
-+Take the inverse of `x` modulo `m`: `y` such that $xy = 1 \pmod m$.
- """
- invmod
- 
-@@ -9253,17 +9058,18 @@ Returns a `TextDisplay <: Display`, which can display any object as the text/pla
- TextDisplay
- 
- doc"""
--```rst
--..  factor(n) -> Dict
--
--Compute the prime factorization of an integer ``n``. Returns a dictionary. The keys of the dictionary correspond to the factors, and hence are of the same type as ``n``. The value associated with each key indicates the number of times the factor appears in the factorization.
-+    factor(n) -> Dict
- 
--.. doctest::
-+Compute the prime factorization of an integer `n`. Returns a dictionary. The
-+keys of the dictionary correspond to the factors, and hence are of the same type
-+as `n`. The value associated with each key indicates the number of times the
-+factor appears in the factorization.
- 
--   julia> factor(100) # == 2*2*5*5
--   Dict{Int64,Int64} with 2 entries:
--     2 => 2
--     5 => 2
-+```jldoctest
-+julia> factor(100) # == 2*2*5*5
-+Dict{Int64,Int64} with 2 entries:
-+  2 => 2
-+  5 => 2
- ```
- """
- factor
-@@ -9276,11 +9082,9 @@ Test whether a string contains a match of the given regular expression.
- ismatch
- 
- doc"""
--```rst
--..  exp(x)
-+    exp(x)
- 
--Compute :math:`e^x`
--```
-+Compute $e^x$.
- """
- exp
- 
-@@ -9318,11 +9122,9 @@ Get julia's process ID.
- getpid
- 
- doc"""
--```rst
--..  cbrt(x)
-+    cbrt(x)
- 
--Return :math:`x^{1/3}`.  The prefix operator ``∛`` is equivalent to ``cbrt``.
--```
-+Return $x^{1/3}$.  The prefix operator `∛` is equivalent to `cbrt`.
- """
- cbrt
- 
-@@ -9428,15 +9230,13 @@ Create and listen on a Named Pipe / Domain Socket
- listen(path)
- 
- doc"""
--```rst
--..  leading_ones(x::Integer) -> Integer
-+    leading_ones(x::Integer) -> Integer
- 
--Number of ones leading the binary representation of ``x``.
-+Number of ones leading the binary representation of `x`.
- 
--.. doctest::
--
--   julia> leading_ones(UInt32(2 ^ 32 - 2))
--   31
-+```jldoctest
-+julia> leading_ones(UInt32(2 ^ 32 - 2))
-+31
- ```
- """
- leading_ones
-@@ -9649,11 +9449,9 @@ Returns `true` if `string` ends with `suffix`. If the second argument is a vecto
- endswith
- 
- doc"""
--```rst
--..  airy(k,x)
-+    airy(k,x)
- 
--kth derivative of the Airy function :math:`\operatorname{Ai}(x)`.
--```
-+The `k`th derivative of the Airy function $\operatorname{Ai}(x)$.
- """
- airy
- 
-@@ -9749,11 +9547,9 @@ Test whether a floating point number is subnormal
- issubnormal
- 
- doc"""
--```rst
--..  Ac_ldiv_B(...)
-+    Ac_ldiv_B(A, B)
- 
--Matrix operator A\ :sup:`H` \\ B
--```
-+For matrices or vectors $A$ and $B$, calculates $Aᴴ$ \ $B$
- """
- Ac_ldiv_B
- 
-@@ -9961,32 +9757,28 @@ For any iterable containers `x` and `y` (including arrays of any dimension) of n
- vecdot
- 
- doc"""
--```rst
--..  isprime(x::Integer) -> Bool
-+    isprime(x::Integer) -> Bool
- 
--Returns ``true`` if ``x`` is prime, and ``false`` otherwise.
-+Returns `true` if `x` is prime, and `false` otherwise.
- 
--.. doctest::
--
--	julia> isprime(3)
--	true
-+```jldoctest
-+julia> isprime(3)
-+true
- ```
- """
- isprime(::Integer)
- 
- doc"""
--```rst
--..  isprime(x::BigInt, [reps = 25]) -> Bool
-+    isprime(x::BigInt, [reps = 25]) -> Bool
- 
--Probabilistic primality test. Returns ``true`` if ``x`` is prime; and
--``false`` if ``x`` is not prime with high probability. The false positive
--rate is about ``0.25^reps``. ``reps = 25`` is considered safe for
-+Probabilistic primality test. Returns `true` if `x` is prime; and
-+`false` if `x` is not prime with high probability. The false positive
-+rate is about `0.25^reps`. `reps = 25` is considered safe for
- cryptographic applications (Knuth, Seminumerical Algorithms).
- 
--.. doctest::
--
--	julia> isprime(big(3))
--	true
-+```jldoctest
-+julia> isprime(big(3))
-+true
- ```
- """
- isprime(::BigInt, ?)
-@@ -10013,11 +9805,9 @@ Get the number of available processes.
- nprocs
- 
- doc"""
--```rst
--..  Ac_mul_B(...)
-+    Ac_mul_B(A, B)
- 
--Matrix operator A\ :sup:`H` B
--```
-+For matrices or vectors $A$ and $B$, calculates $Aᴴ⋅B$
- """
- Ac_mul_B
- 
-@@ -10031,11 +9821,9 @@ doc"""
- qrfact!
- 
- doc"""
--```rst
--..  At_rdiv_B(a,b)
-+    At_rdiv_B(A, B)
- 
--Matrix operator A\ :sup:`T` / B
--```
-+For matrices or vectors $A$ and $B$, calculates $Aᵀ / B$
- """
- At_rdiv_B
- 
-@@ -10142,11 +9930,11 @@ Get the backtrace of the current exception, for use within `catch` blocks.
- catch_backtrace
- 
- doc"""
--```rst
--..  airyx(k,x)
-+    airyx(k,x)
- 
--scaled kth derivative of the Airy function, return :math:`\operatorname{Ai}(x) e^{\frac{2}{3} x \sqrt{x}}` for ``k == 0 || k == 1``, and :math:`\operatorname{Ai}(x) e^{- \left| \operatorname{Re} \left( \frac{2}{3} x \sqrt{x} \right) \right|}` for ``k == 2 || k == 3``.
--```
-+scaled `k`th derivative of the Airy function, return $\operatorname{Ai}(x) e^{\frac{2}{3} x \sqrt{x}}$
-+for `k == 0 || k == 1`, and $\operatorname{Ai}(x) e^{- \left| \operatorname{Re} \left( \frac{2}{3} x \sqrt{x} \right) \right|}$
-+for `k == 2 || k == 3`.
- """
- airyx
- 
-@@ -10282,31 +10070,27 @@ the closest value to ``x`` representable by ``T``.
- convert
- 
- doc"""
--```rst
--..  A_ldiv_Bt(a,b)
-+    A_ldiv_Bt(A, B)
- 
--Matrix operator A \\ B\ :sup:`T`
--```
-+For matrices or vectors $A$ and $B$, calculates $A$ \ $Bᵀ$
- """
- A_ldiv_Bt
- 
- doc"""
--```rst
--..  applicable(f, args...) -> Bool
-+    applicable(f, args...) -> Bool
- 
- Determine whether the given generic function has a method applicable to the given arguments.
- 
--.. doctest::
--
--	julia> function f(x, y)
--	           x + y
--	       end;
-+```jldoctest
-+julia> function f(x, y)
-+           x + y
-+       end;
- 
--	julia> applicable(f, 1)
--	false
-+julia> applicable(f, 1)
-+false
- 
--	julia> applicable(f, 1, 2)
--	true
-+julia> applicable(f, 1, 2)
-+true
- ```
- """
- applicable
-@@ -10368,11 +10152,9 @@ equal in norm. The default is ``true`` for both options.
- eigvals
- 
- doc"""
--```rst
--..  A_ldiv_Bc(a,b)
-+    A_ldiv_Bc(A, B)
- 
--Matrix operator A \\ B\ :sup:`H`
--```
-+For matrices or vectors $A$ and $B$, calculates $A$ \ $Bᴴ$
- """
- A_ldiv_Bc
- 
-@@ -10386,21 +10168,19 @@ General escaping of traditional C and Unicode escape sequences. See :func:`print
- escape_string
- 
- doc"""
--```rst
--..  significand(x)
-+    significand(x)
- 
--Extract the ``significand(s)`` (a.k.a. mantissa), in binary representation, of
--a floating-point number or array. If ``x`` is a non-zero finite number,
-+Extract the `significand(s)` (a.k.a. mantissa), in binary representation, of
-+a floating-point number or array. If `x` is a non-zero finite number,
- than the result will be a number of the same type on the interval
--:math:`[1,2)`. Otherwise ``x`` is returned.
--
--.. doctest::
-+$[1,2)$. Otherwise `x` is returned.
- 
--   julia> significand(15.2)/15.2
--   0.125
-+```jldoctest
-+julia> significand(15.2)/15.2
-+0.125
- 
--   julia> significand(15.2)*8
--   15.2
-+julia> significand(15.2)*8
-+15.2
- ```
- """
- significand
-@@ -10448,18 +10228,18 @@ Set the precision (in bits) to be used to `BigFloat` arithmetic.
- set_bigfloat_precision
- 
- doc"""
--```rst
--..  isbits(T)
--
--Return ``true`` if ``T`` is a "plain data" type, meaning it is immutable and contains no references to other values. Typical examples are numeric types such as ``UInt8``, ``Float64``, and ``Complex{Float64}``.
-+    isbits(T)
- 
--.. doctest::
-+Return `true` if `T` is a "plain data" type, meaning it is immutable and
-+contains no references to other values. Typical examples are numeric types such
-+as `UInt8`, `Float64`, and `Complex{Float64}`.
- 
--   julia> isbits(Complex{Float64})
--   true
-+```jldoctest
-+julia> isbits(Complex{Float64})
-+true
- 
--   julia> isbits(Complex)
--   false
-+julia> isbits(Complex)
-+false
- ```
- """
- isbits
-@@ -10514,15 +10294,12 @@ Find the next index >= `i` of an element of `A` equal to `v` (using `==`), or `0
- findnext(A,v,i)
- 
- doc"""
--```rst
--..  fetch(x)
-+    fetch(x)
- 
--Waits and fetches a value from ``x`` depending on the type of ``x``. Does not remove the item fetched:
-+Waits and fetches a value from `x` depending on the type of `x`. Does not remove the item fetched:
- 
--* ``RemoteRef``: Wait for and get the value of a remote reference. If the remote value is an exception, throws a ``RemoteException`` which captures the remote exception and backtrace.
--
--* ``Channel`` : Wait for and get the first available item from the channel.
--```
-+* `RemoteRef`: Wait for and get the value of a remote reference. If the remote value is an exception, throws a `RemoteException` which captures the remote exception and backtrace.
-+* `Channel` : Wait for and get the first available item from the channel.
- """
- fetch
- 
-@@ -10692,18 +10469,16 @@ The identity function. Returns its argument.
- identity
- 
- doc"""
--```rst
--..  iseven(x::Integer) -> Bool
-+    iseven(x::Integer) -> Bool
- 
--Returns ``true`` is ``x`` is even (that is, divisible by 2), and ``false`` otherwise.
-+Returns `true` is `x` is even (that is, divisible by 2), and `false` otherwise.
- 
--.. doctest::
--
--	julia> iseven(9)
--	false
-+```jldoctest
-+julia> iseven(9)
-+false
- 
--	julia> iseven(10)
--	true
-+julia> iseven(10)
-+true
- ```
- """
- iseven
-@@ -10785,25 +10560,23 @@ spans all rows of ``R`` in its corresponding QR factorization.
- full(::LinAlg.QRCompactWYQ, ?)
- 
- doc"""
--```rst
--..  map(f, c...) -> collection
-+    map(f, c...) -> collection
- 
--Transform collection ``c`` by applying ``f`` to each element.
--For multiple collection arguments, apply ``f`` elementwise.
-+Transform collection `c` by applying `f` to each element.
-+For multiple collection arguments, apply `f` elementwise.
- 
--.. doctest::
-+```jldoctest
-+julia> map((x) -> x * 2, [1, 2, 3])
-+3-element Array{Int64,1}:
-+ 2
-+ 4
-+ 6
- 
--   julia> map((x) -> x * 2, [1, 2, 3])
--   3-element Array{Int64,1}:
--    2
--    4
--    6
--
--   julia> map(+, [1, 2, 3], [10, 20, 30])
--   3-element Array{Int64,1}:
--    11
--    22
--    33
-+julia> map(+, [1, 2, 3], [10, 20, 30])
-+3-element Array{Int64,1}:
-+ 11
-+ 22
-+ 33
- ```
- """
- map
-@@ -10996,12 +10769,10 @@ Same as :func:`plan_fft`, but produces a plan that performs inverse transforms
- plan_ifft
- 
- doc"""
--```rst
--..  cosc(x)
-+    cosc(x)
- 
--Compute :math:`\cos(\pi x) / x - \sin(\pi x) / (\pi x^2)` if :math:`x \neq 0`, and :math:`0`
--if :math:`x = 0`. This is the derivative of ``sinc(x)``.
--```
-+Compute $\cos(\pi x) / x - \sin(\pi x) / (\pi x^2)$ if $x \neq 0$, and $0$
-+if $x = 0$. This is the derivative of `sinc(x)`.
- """
- cosc
- 
-@@ -11013,20 +10784,16 @@ Return the key matching argument `key` if one exists in `collection`, otherwise
- getkey
- 
- doc"""
--```rst
--..  At_ldiv_Bt(...)
-+    At_ldiv_Bt(A, B)
- 
--Matrix operator A\ :sup:`T` \\ B\ :sup:`T`
--```
-+For matrices or vectors $A$ and $B$, calculates $Aᵀ$ \ $Bᵀ$
- """
- At_ldiv_Bt
- 
- doc"""
--```rst
--..  Ac_mul_Bc(...)
-+    Ac_mul_Bc(A, B)
- 
--Matrix operator A\ :sup:`H` B\ :sup:`H`
--```
-+For matrices or vectors $A$ and $B$, calculates $Aᴴ Bᴴ$
- """
- Ac_mul_Bc
- 
-@@ -11059,21 +10826,17 @@ Create a `Symbol` by concatenating the string representations of the arguments t
- symbol
- 
- doc"""
--```rst
--..  zeta(s)
-+    zeta(s)
- 
--Riemann zeta function :math:`\zeta(s)`.
--```
-+Riemann zeta function $\zeta(s)$.
- """
- zeta(s)
- 
- doc"""
--```rst
--..  zeta(s, z)
-+    zeta(s, z)
- 
--Hurwitz zeta function :math:`\zeta(s, z)`.  (This is equivalent to
--the Riemann zeta function :math:`\zeta(s)` for the case of ``z=1``.)
--```
-+Hurwitz zeta function $\zeta(s, z)$.  (This is equivalent to
-+the Riemann zeta function $\zeta(s)$ for the case of `z=1`.)
- """
- zeta(s,z)
- 
-@@ -11087,11 +10850,9 @@ Create a random ``m`` by ``n`` sparse matrix, in which the probability of any el
- sprand
- 
- doc"""
--```rst
--..  A_mul_Bt(...)
-+    A_mul_Bt(A, B)
- 
--Matrix operator A B\ :sup:`T`
--```
-+For matrices or vectors $A$ and $B$, calculates $A⋅Bᵀ$
- """
- A_mul_Bt
- 
-@@ -11166,12 +10927,10 @@ Generate all combinations of `n` elements from an indexable object. Because the
- combinations
- 
- doc"""
--```rst
--..  frexp(val)
-+    frexp(val)
- 
--Return ``(x,exp)`` such that ``x`` has a magnitude in the interval :math:`[1/2, 1)` or 0,
--and val = :math:`x \times 2^{exp}`.
--```
-+Return `(x,exp)` such that `x` has a magnitude in the interval $[1/2, 1)$ or 0,
-+and val = $x \times 2^{exp}$.
- """
- frexp
- 
-@@ -11380,11 +11139,9 @@ Fill the array `A` with normally-distributed (mean 0, standard deviation 1) rand
- randn!
- 
- doc"""
--```rst
--..  ldexp(x, n)
-+    ldexp(x, n)
- 
--Compute :math:`x \times 2^n`
--```
-+Compute $x \times 2^n$.
- """
- ldexp
- 
-@@ -11492,11 +11249,9 @@ recommended.
- eig(A,B)
- 
- doc"""
--```rst
--..  exp2(x)
-+    exp2(x)
- 
--Compute :math:`2^x`
--```
-+Compute $2^x$.
- """
- exp2
- 
-@@ -11631,11 +11386,9 @@ Union each element of `iterable` into set `s` in-place.
- union!
- 
- doc"""
--```rst
--..  At_ldiv_B(...)
-+    At_ldiv_B(A, B)
- 
--Matrix operator A\ :sup:`T` \\ B
--```
-+For matrices or vectors $A$ and $B$, calculates $Aᵀ$ \ $B$
- """
- At_ldiv_B
- 
-@@ -11666,22 +11419,18 @@ While it isn't normally necessary, user-defined types can override the default `
- deepcopy
- 
- doc"""
--```rst
--..  widen(type | x)
-+    widen(type | x)
- 
- If the argument is a type, return a "larger" type (for numeric types, this will be
- a type with at least as much range and precision as the argument, and usually more).
--Otherwise the argument ``x`` is converted to ``widen(typeof(x))``.
--
--.. doctest::
-+Otherwise the argument `x` is converted to `widen(typeof(x))`.
- 
--   julia> widen(Int32)
--   Int64
-+```jldoctest
-+julia> widen(Int32)
-+Int64
- 
--.. doctest::
--
--   julia> widen(1.5f0)
--   1.5
-+julia> widen(1.5f0)
-+1.5
- ```
- """
- widen
-@@ -11711,13 +11460,11 @@ Should be used instead of :obj:`IntSet` for sparse integer sets, or for sets of
- Set
- 
- doc"""
--```rst
--..  erf(x)
-+    erf(x)
- 
--Compute the error function of ``x``, defined by
--:math:`\frac{2}{\sqrt{\pi}} \int_0^x e^{-t^2} dt`
--for arbitrary complex ``x``.
--```
-+Compute the error function of `x`, defined by
-+$\frac{2}{\sqrt{\pi}} \int_0^x e^{-t^2} dt$
-+for arbitrary complex `x`.
- """
- erf
- 
-@@ -11743,11 +11490,9 @@ Split a path into a tuple of the directory name and file name.
- splitdir
- 
- doc"""
--```rst
--..  sign(x)
-+    sign(x)
- 
--Return zero if ``x==0`` and :math:`x/|x|` otherwise (i.e., ±1 for real ``x``).
--```
-+Return zero if `x==0` and $x/|x|$ otherwise (i.e., ±1 for real `x`).
- """
- sign
- 
-@@ -11801,41 +11546,38 @@ On Windows, split a path into the drive letter part and the path part. On Unix s
- splitdrive
- 
- doc"""
--```rst
--..  pop!(collection, key[, default])
-+    pop!(collection, key[, default])
- 
--Delete and return the mapping for ``key`` if it exists in ``collection``, otherwise return ``default``, or throw an error if default is not specified.
--```
-+Delete and return the mapping for `key` if it exists in `collection`,
-+otherwise return `default`, or throw an error if default is not specified.
- """
- pop!(collection,key,?)
- 
- doc"""
--```rst
--..  pop!(collection) -> item
-+    pop!(collection) -> item
- 
--Remove the last item in ``collection`` and return it.
-+Remove the last item in `collection` and return it.
- 
--.. doctest::
-+```jldoctest
-+julia> A=[1, 2, 3, 4, 5, 6]
-+6-element Array{Int64,1}:
-+ 1
-+ 2
-+ 3
-+ 4
-+ 5
-+ 6
- 
--  julia> A=[1, 2, 3, 4, 5, 6]
--  6-element Array{Int64,1}:
--   1
--   2
--   3
--   4
--   5
--   6
--
--  julia> pop!(A)
--  6
-+julia> pop!(A)
-+6
- 
--  julia> A
--  5-element Array{Int64,1}:
--   1
--   2
--   3
--   4
--   5
-+julia> A
-+5-element Array{Int64,1}:
-+ 1
-+ 2
-+ 3
-+ 4
-+ 5
- ```
- """
- pop!(collection)
-@@ -11905,11 +11647,9 @@ Performs a right rotation operation.
- ror
- 
- doc"""
--```rst
--..  Ac_ldiv_Bc(...)
-+    Ac_ldiv_Bc(A, B)
- 
--Matrix operator A\ :sup:`H` \\ B\ :sup:`H`
--```
-+For matrices or vectors $A$ and $B$, calculates $Aᴴ$ \ $Bᴴ$
- """
- Ac_ldiv_Bc
- 
-@@ -11979,21 +11719,22 @@ Remove a trailing newline from a string.
- chomp
- 
- doc"""
--```rst
--..  enumerate(iter)
--
--An iterator that yields ``(i, x)`` where ``i`` is an index starting at 1, and ``x`` is the ``i``\ th value from the given iterator. It's useful when you need not only the values ``x`` over which you are iterating, but also the index ``i`` of the iterations.
-+    enumerate(iter)
- 
--.. doctest::
-+An iterator that yields `(i, x)` where `i` is an index starting at 1, and
-+`x` is the `i`th value from the given iterator. It's useful when you need
-+not only the values `x` over which you are iterating, but also the index `i`
-+of the iterations.
- 
--	julia> a = ["a", "b", "c"];
-+```jldoctest
-+julia> a = ["a", "b", "c"];
- 
--	julia> for (index, value) in enumerate(a)
--                println("$index $value")
--            end
--     1 a
--     2 b
--     3 c
-+julia> for (index, value) in enumerate(a)
-+           println("$index $value")
-+       end
-+1 a
-+2 b
-+3 c
- ```
- """
- enumerate
-@@ -12007,12 +11748,10 @@ Greater-than-or-equals comparison operator.
- Base.(:(>=))
- 
- doc"""
--```rst
--.. dawson(x)
-+    dawson(x)
- 
--Compute the Dawson function (scaled imaginary error function) of ``x``,
--defined by :math:`\frac{\sqrt{\pi}}{2} e^{-x^2} \operatorname{erfi}(x)`.
--```
-+Compute the Dawson function (scaled imaginary error function) of `x`,
-+defined by $\frac{\sqrt{\pi}}{2} e^{-x^2} \operatorname{erfi}(x)$.
- """
- dawson
- 
-diff --git a/base/essentials.jl b/base/essentials.jl
-index e01515e..45f3aaa 100644
---- a/base/essentials.jl
-+++ b/base/essentials.jl
-@@ -17,7 +17,6 @@ macro _noinline_meta()
-     Expr(:meta, :noinline)
- end
- 
--
- # constructors for Core types in boot.jl
- call(T::Type{BoundsError}) = Core.call(T)
- call(T::Type{BoundsError}, args...) = Core.call(T, args...)
-@@ -51,6 +50,7 @@ call(T::Type{Task}, f::Function) = Core.call(T, f)
- call(T::Type{GenSym}, n::Int) = Core.call(T, n)
- call(T::Type{WeakRef}) = Core.call(T)
- call(T::Type{WeakRef}, v::ANY) = Core.call(T, v)
-+call(T::Type{Void}) = Core.call(Void)
- 
- # The specialization for 1 arg is important when running with --inline=no, see #11158
- call{T}(::Type{T}, arg) = convert(T, arg)::T
-diff --git a/base/exports.jl b/base/exports.jl
-index ab55966..cfc1574 100644
---- a/base/exports.jl
-+++ b/base/exports.jl
-@@ -1114,6 +1114,7 @@ export
-     include,
-     include_string,
-     include_dependency,
-+    reload,
- 
- # RTS internals
-     finalizer,
-diff --git a/base/gmp.jl b/base/gmp.jl
-index 6f2c4c5..b6f67fe 100644
---- a/base/gmp.jl
-+++ b/base/gmp.jl
-@@ -419,6 +419,7 @@ end
- ^(x::BigInt , y::BigInt ) = bigint_pow(x, y)
- ^(x::BigInt , y::Bool   ) = y ? x : one(x)
- ^(x::BigInt , y::Integer) = bigint_pow(x, y)
-+^(x::Integer, y::BigInt ) = bigint_pow(BigInt(x), y)
- 
- function powermod(x::BigInt, p::BigInt, m::BigInt)
-     p < 0 && throw(DomainError())
-diff --git a/base/linalg/bidiag.jl b/base/linalg/bidiag.jl
-index f4cb75d..dcf846d 100644
---- a/base/linalg/bidiag.jl
-+++ b/base/linalg/bidiag.jl
-@@ -109,7 +109,7 @@ function size(M::Bidiagonal, d::Integer)
- end
- 
- #Elementary operations
--for func in (:conj, :copy, :round, :trunc, :floor, :ceil)
-+for func in (:conj, :copy, :round, :trunc, :floor, :ceil, :real, :imag, :abs)
-     @eval ($func)(M::Bidiagonal) = Bidiagonal(($func)(M.dv), ($func)(M.ev), M.isupper)
- end
- for func in (:round, :trunc, :floor, :ceil)
-diff --git a/base/linalg/diagonal.jl b/base/linalg/diagonal.jl
-index b586b6d..bdcb6dd 100644
---- a/base/linalg/diagonal.jl
-+++ b/base/linalg/diagonal.jl
-@@ -55,6 +55,10 @@ isposdef(D::Diagonal) = all(D.diag .> 0)
- 
- factorize(D::Diagonal) = D
- 
-+abs(D::Diagonal) = Diagonal(abs(D.diag))
-+real(D::Diagonal) = Diagonal(real(D.diag))
-+imag(D::Diagonal) = Diagonal(imag(D.diag))
-+
- istriu(D::Diagonal) = true
- istril(D::Diagonal) = true
- function triu!(D::Diagonal,k::Integer=0)
-diff --git a/base/linalg/ldlt.jl b/base/linalg/ldlt.jl
-index 99392d3..1bc5272 100644
---- a/base/linalg/ldlt.jl
-+++ b/base/linalg/ldlt.jl
-@@ -25,6 +25,13 @@ function ldltfact!{T<:Real}(S::SymTridiagonal{T})
-     end
-     return LDLt{T,SymTridiagonal{T}}(S)
- end
-+
-+doc"""
-+    ldltfact(::SymTridiagonal) -> LDLt
-+
-+Compute an `LDLt` factorization of a real symmetric tridiagonal matrix such that `A = L*Diagonal(d)*L'` where `L` is a unit lower triangular matrix and `d` is a vector. The main use of an `LDLt` factorization `F = ldltfact(A)` is to solve the linear system of equations `Ax = b` with `F\b`.
-+
-+"""
- function ldltfact{T}(M::SymTridiagonal{T})
-     S = typeof(zero(T)/one(T))
-     return S == T ? ldltfact!(copy(M)) : ldltfact!(convert(SymTridiagonal{S}, M))
-diff --git a/base/linalg/matmul.jl b/base/linalg/matmul.jl
-index fc9e142..2066ff3 100644
---- a/base/linalg/matmul.jl
-+++ b/base/linalg/matmul.jl
-@@ -211,8 +211,6 @@ function copytri!(A::StridedMatrix, uplo::Char, conjugate::Bool=false)
-         for i = 1:(n-1), j = (i+1):n
-             A[i,j] = conjugate ? conj(A[j,i]) : A[j,i]
-         end
--    else
--        throw(ArgumentError("second argument must be 'U' or 'L'"))
-     end
-     A
- end
-diff --git a/base/linalg/special.jl b/base/linalg/special.jl
-index 01fce28..ec4e015 100644
---- a/base/linalg/special.jl
-+++ b/base/linalg/special.jl
-@@ -141,6 +141,24 @@ for op in (:+, :-)
-             end
-         end
-     end
-+
-+    for matrixtype1 in (:Diagonal,)
-+        for (matrixtype2,matrixtype3) in ((:UpperTriangular,:UpperTriangular),
-+                                          (:UnitUpperTriangular,:UpperTriangular),
-+                                          (:LowerTriangular,:LowerTriangular),
-+                                          (:UnitLowerTriangular,:LowerTriangular))
-+            @eval begin
-+                ($op)(A::($matrixtype1), B::($matrixtype2)) = ($op)(convert(($matrixtype3), A), B)
-+                ($op)(A::($matrixtype2), B::($matrixtype1)) = ($op)(A, convert(($matrixtype3), B))
-+            end
-+        end
-+    end
-+    for matrixtype in (:SymTridiagonal,:Tridiagonal,:Bidiagonal,:Matrix)
-+        @eval begin
-+            ($op)(A::AbstractTriangular, B::($matrixtype)) = ($op)(full(A), B)
-+            ($op)(A::($matrixtype), B::AbstractTriangular) = ($op)(A, full(B))
-+        end
-+    end
- end
- 
- A_mul_Bc!(A::AbstractTriangular, B::QRCompactWYQ) = A_mul_Bc!(full!(A),B)
-diff --git a/base/linalg/triangular.jl b/base/linalg/triangular.jl
-index 6fa0bee..507cc0a 100644
---- a/base/linalg/triangular.jl
-+++ b/base/linalg/triangular.jl
-@@ -39,10 +39,15 @@ for t in (:LowerTriangular, :UnitLowerTriangular, :UpperTriangular, :UnitUpperTr
- 
-         real{T<:Real}(A::$t{T}) = A
-         real{T<:Complex}(A::$t{T}) = (B = real(A.data); $t(B))
--
-+        abs(A::$t) = $t(abs(A.data))
-     end
- end
- 
-+imag(A::UpperTriangular) = UpperTriangular(imag(A.data))
-+imag(A::LowerTriangular) = LowerTriangular(imag(A.data))
-+imag(A::UnitLowerTriangular) = LowerTriangular(tril!(imag(A.data),-1))
-+imag(A::UnitUpperTriangular) = UpperTriangular(triu!(imag(A.data),1))
-+
- full(A::AbstractTriangular) = convert(Matrix, A)
- 
- fill!(A::AbstractTriangular, x) = (fill!(A.data, x); A)
-diff --git a/base/linalg/tridiag.jl b/base/linalg/tridiag.jl
-index e7a003e..6417d45 100644
---- a/base/linalg/tridiag.jl
-+++ b/base/linalg/tridiag.jl
-@@ -59,7 +59,7 @@ function size(A::SymTridiagonal, d::Integer)
- end
- 
- #Elementary operations
--for func in (:conj, :copy, :round, :trunc, :floor, :ceil)
-+for func in (:conj, :copy, :round, :trunc, :floor, :ceil, :abs, :real, :imag)
-     @eval ($func)(M::SymTridiagonal) = SymTridiagonal(($func)(M.dv), ($func)(M.ev))
- end
- for func in (:round, :trunc, :floor, :ceil)
-@@ -315,7 +315,7 @@ end
- copy!(dest::Tridiagonal, src::Tridiagonal) = Tridiagonal(copy!(dest.dl, src.dl), copy!(dest.d, src.d), copy!(dest.du, src.du), copy!(dest.du2, src.du2))
- 
- #Elementary operations
--for func in (:conj, :copy, :round, :trunc, :floor, :ceil)
-+for func in (:conj, :copy, :round, :trunc, :floor, :ceil, :abs, :real, :imag)
-     @eval function ($func)(M::Tridiagonal)
-         Tridiagonal(($func)(M.dl), ($func)(M.d), ($func)(M.du), ($func)(M.du2))
-     end
-diff --git a/base/loading.jl b/base/loading.jl
-index 963bc0b..fd6ab87 100644
---- a/base/loading.jl
-+++ b/base/loading.jl
-@@ -118,7 +118,6 @@ end
- 
- # to synchronize multiple tasks trying to import/using something
- const package_locks = Dict{Symbol,Condition}()
--const package_loaded = Set{Symbol}()
- 
- # used to optionally track dependencies when requiring a module:
- const _require_dependencies = Tuple{ByteString,Float64}[]
-@@ -163,6 +162,40 @@ function __precompile__(isprecompilable::Bool=true)
-     end
- end
- 
-+function require_modname(name::AbstractString)
-+    # This function can be deleted when the deprecation for `require`
-+    # is deleted.
-+    # While we could also strip off the absolute path, the user may be
-+    # deliberately directing to a different file than what got
-+    # cached. So this takes a conservative approach.
-+    if endswith(name, ".jl")
-+        tmp = name[1:end-3]
-+        for prefix in LOAD_CACHE_PATH
-+            path = joinpath(prefix, tmp*".ji")
-+            if isfile(path)
-+                return tmp
-+            end
-+        end
-+    end
-+    name
-+end
-+
-+doc"""
-+    reload(name::AbstractString)
-+
-+Force reloading of a package, even if it has been loaded before. This is intended for use
-+during package development as code is modified.
-+"""
-+function reload(name::AbstractString)
-+    if isfile(name) || contains(name,path_separator)
-+        # for reload("path/file.jl") just ask for include instead
-+        error("use `include` instead of `reload` to load source files")
-+    else
-+        # reload("Package") is ok
-+        require(symbol(require_modname(name)))
-+    end
-+end
-+
- # require always works in Main scope and loads files from node 1
- toplevel_load = true
- function require(mod::Symbol)
-diff --git a/base/markdown/render/rst.jl b/base/markdown/render/rst.jl
-index b688a9d..1651d27 100644
---- a/base/markdown/render/rst.jl
-+++ b/base/markdown/render/rst.jl
-@@ -21,7 +21,11 @@ function rst{l}(io::IO, header::Header{l})
- end
- 
- function rst(io::IO, code::Code)
--    code.language == "rst" || println(io, ".. code-block:: julia\n")
-+    if code.language == "jldoctest"
-+        println(io, ".. doctest::\n")
-+    elseif code.language != "rst"
-+        println(io, ".. code-block:: julia\n")
-+    end
-     for l in lines(code.code)
-         println(io, "    ", l)
-     end
-@@ -69,7 +73,7 @@ function rstinline(io::IO, md...)
-     wasCode = false
-     for el in md
-         wasCode && isa(el, AbstractString) && !Base.startswith(el, " ") && print(io, "\\ ")
--        wasCode = isa(el, Code) && (wasCode = true)
-+        wasCode = (isa(el, Code) || isa(el, LaTeX)) && (wasCode = true)
-         rstinline(io, el)
-     end
- end
-@@ -92,6 +96,8 @@ rstinline(io::IO, md::Code) = print(io, "``", md.code, "``")
- 
- rstinline(io::IO, br::LineBreak) = println(io)
- 
-+rstinline(io::IO, l::LaTeX) = print(io, ":math:`", l.formula, "`")
-+
- rstinline(io::IO, x) = writemime(io, MIME"text/rst"(), x)
- 
- # writemime
-diff --git a/base/multi.jl b/base/multi.jl
-index b305f26..cff41f0 100644
---- a/base/multi.jl
-+++ b/base/multi.jl
-@@ -633,9 +633,9 @@ type RemoteException <: Exception
- end
- 
- RemoteException(captured) = RemoteException(myid(), captured)
--function show(io::IO, re::RemoteException)
-+function showerror(io::IO, re::RemoteException)
-     (re.pid != myid()) && print(io, "On worker ", re.pid, ":\n")
--    show(io, re.captured)
-+    showerror(io, re.captured)
- end
- 
- 
-diff --git a/base/operators.jl b/base/operators.jl
-index c2eb8ae..ad7e662 100644
---- a/base/operators.jl
-+++ b/base/operators.jl
-@@ -88,8 +88,14 @@ function afoldl(op,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,qs...)
-     y
- end
- 
-+immutable ElementwiseMaxFun end
-+call(::ElementwiseMaxFun, x, y) = max(x,y)
-+
-+immutable ElementwiseMinFun end
-+call(::ElementwiseMinFun, x, y) = min(x, y)
-+
- for (op,F) in ((:+,:(AddFun())), (:*,:(MulFun())), (:&,:(AndFun())), (:|,:(OrFun())),
--               (:$,:$), (:min,:(MinFun())), (:max,:(MaxFun())), (:kron,:kron))
-+               (:$,:(XorFun())), (:min,:(ElementwiseMinFun())), (:max,:(ElementwiseMaxFun())), (:kron,:kron))
-     @eval begin
-         # note: these definitions must not cause a dispatch loop when +(a,b) is
-         # not defined, and must only try to call 2-argument definitions, so
-diff --git a/base/precompile.jl b/base/precompile.jl
-index b65fdaf..bf3aed5 100644
---- a/base/precompile.jl
-+++ b/base/precompile.jl
-@@ -180,7 +180,6 @@ precompile(Base.async_run_thunk, (Function,))
- precompile(Base.atexit, (Function,))
- precompile(Base.banner, (Base.Terminals.TTYTerminal,))
- precompile(Base.startswith, (ASCIIString, ASCIIString))
--precompile(Base.bool, (Bool,))
- precompile(Base.bytestring, (ASCIIString,))
- precompile(Base.call, (Type{Base.Dict{Symbol, Any}}, Base.Pair{Symbol, Base.LineEdit.Prompt}, Base.Pair{Symbol, Base.LineEdit.Prompt}, Base.Pair{Symbol, Base.LineEdit.Prompt}))
- precompile(Base.call, (Array{Any, 1}, Type{Base.LineEdit.Prompt}, ASCIIString))
-@@ -255,8 +254,8 @@ precompile(Base.include_from_node1, (UTF8String,))
- precompile(Base.init_stdio, (Ptr{Void},))
- precompile(Base.input_color, ())
- precompile(Base.insert!, (Array{Any,1}, Int, Base.GlobalRef))
--precompile(Base.int, (Int,))
--precompile(Base.int, (UInt,))
-+precompile(Base.Int, (Int,))
-+precompile(Base.Int, (UInt,))
- precompile(Base.isabspath, (ASCIIString,))
- precompile(Base.isempty, (ASCIIString,))
- precompile(Base.isempty, (Array{Any,1},))
-@@ -413,7 +412,7 @@ precompile(Base.takebuf_string, (IOBuffer,))
- precompile(Base.task_local_storage, ())
- precompile(Base.terminate_all_workers, ())
- precompile(Base.try_include, (ASCIIString,))
--precompile(Base.uint, (UInt,))
-+precompile(Base.UInt, (UInt,))
- precompile(Base.unsafe_copy!, (Array{Dict{Any, Any}, 1}, Int, Array{Dict{Any, Any}, 1}, Int, Int))
- precompile(Base.unsafe_copy!, (Ptr{Dict{Any, Any}}, Ptr{Dict{Any, Any}}, Int))
- precompile(Base.unshift!, (Array{Any,1}, Task))
-diff --git a/base/replutil.jl b/base/replutil.jl
-index 46c33a2..fa9eacd 100644
---- a/base/replutil.jl
-+++ b/base/replutil.jl
-@@ -389,6 +389,12 @@ function show_backtrace(io::IO, top_function::Symbol, t, set)
-     process_backtrace(process_entry, top_function, t, set)
- end
- 
-+function show_backtrace(io::IO, top_function::Symbol, t::Vector{Any}, set)
-+    for entry in t
-+        show_trace_entry(io, entry...)
-+    end
-+end
-+
- # process the backtrace, up to (but not including) top_function
- function process_backtrace(process_func::Function, top_function::Symbol, t, set)
-     n = 1
-diff --git a/base/require.jl b/base/require.jl
-new file mode 100644
-index 0000000..3cae992
---- /dev/null
-+++ b/base/require.jl
-@@ -0,0 +1,135 @@
-+# This file is a part of Julia. License is MIT: http://julialang.org/license
-+
-+# deprecated require
-+module OldRequire
-+
-+function find_in_path(name::AbstractString)
-+    isabspath(name) && return name
-+    isfile(name) && return abspath(name)
-+    base = name
-+    if endswith(name,".jl")
-+        base = name[1:end-3]
-+    else
-+        name = string(base,".jl")
-+        isfile(name) && return abspath(name)
-+    end
-+    for prefix in [Pkg.dir(); LOAD_PATH]
-+        path = joinpath(prefix, name)
-+        isfile(path) && return abspath(path)
-+        path = joinpath(prefix, base, "src", name)
-+        isfile(path) && return abspath(path)
-+        path = joinpath(prefix, name, "src", name)
-+        isfile(path) && return abspath(path)
-+    end
-+    return nothing
-+end
-+
-+find_in_node1_path(name) = myid()==1 ?
-+    find_in_path(name) : remotecall_fetch(1, find_in_path, name)
-+
-+# Store list of files and their load time
-+package_list = (ByteString=>Float64)[]
-+# to synchronize multiple tasks trying to require something
-+package_locks = (ByteString=>Any)[]
-+
-+# only broadcast top-level (not nested) requires and reloads
-+toplevel_load = true
-+
-+require(fname::AbstractString) = require(bytestring(fname))
-+require(f::AbstractString, fs::AbstractString...) = (require(f); for x in fs require(x); end)
-+
-+function require(name::ByteString)
-+    path = find_in_node1_path(name)
-+    path == nothing && error("$name not found")
-+
-+    if myid() == 1 && toplevel_load
-+        refs = { @spawnat p _require(path) for p in filter(x->x!=1, procs()) }
-+        _require(path)
-+        for r in refs; wait(r); end
-+    else
-+        _require(path)
-+    end
-+    nothing
-+end
-+
-+function _require(path)
-+    global toplevel_load
-+    if haskey(package_list,path)
-+        wait(package_locks[path])
-+    else
-+        last = toplevel_load
-+        toplevel_load = false
-+        try
-+            reload_path(path)
-+        finally
-+            toplevel_load = last
-+        end
-+    end
-+end
-+
-+# remote/parallel load
-+
-+function source_path(default::Union(AbstractString,Void)="")
-+    t = current_task()
-+    while true
-+        s = t.storage
-+        if !is(s, nothing) && haskey(s, :SOURCE_PATH)
-+            return s[:SOURCE_PATH]
-+        end
-+        if is(t, t.parent)
-+            return default
-+        end
-+        t = t.parent
-+    end
-+end
-+
-+function include_from_node1(path::AbstractString)
-+    prev = source_path(nothing)
-+    path = (prev == nothing) ? abspath(path) : joinpath(dirname(prev),path)
-+    tls = task_local_storage()
-+    tls[:SOURCE_PATH] = path
-+    local result
-+    try
-+        if myid()==1
-+            # sleep a bit to process file requests from other nodes
-+            nprocs()>1 && sleep(0.005)
-+            result = Core.include(path)
-+            nprocs()>1 && sleep(0.005)
-+        else
-+            result = include_string(remotecall_fetch(1, readall, path), path)
-+        end
-+    finally
-+        if prev == nothing
-+            delete!(tls, :SOURCE_PATH)
-+        else
-+            tls[:SOURCE_PATH] = prev
-+        end
-+    end
-+    result
-+end
-+
-+function reload_path(path::AbstractString)
-+    had = haskey(package_list, path)
-+    if !had
-+        package_locks[path] = RemoteRef()
-+    end
-+    package_list[path] = time()
-+    tls = task_local_storage()
-+    prev = pop!(tls, :SOURCE_PATH, nothing)
-+    try
-+        eval(Main, :(Base.include_from_node1($path)))
-+    catch e
-+        had || delete!(package_list, path)
-+        rethrow(e)
-+    finally
-+        if prev != nothing
-+            tls[:SOURCE_PATH] = prev
-+        end
-+    end
-+    if !isready(package_locks[path])
-+        put!(package_locks[path],nothing)
-+    end
-+    nothing
-+end
-+
-+end # module
-diff --git a/base/show.jl b/base/show.jl
-index 994bcf9..4e118d8 100644
---- a/base/show.jl
-+++ b/base/show.jl
-@@ -69,7 +69,7 @@ end
- 
- function show(io::IO, f::Function)
-     if isgeneric(f)
--        if is_exported_from_stdlib(f.env.name, f.env.module) || f.env.module === Main
-+        if !isdefined(f.env, :module) || is_exported_from_stdlib(f.env.name, f.env.module) || f.env.module === Main
-             print(io, f.env.name)
-         else
-             print(io, f.env.module, ".", f.env.name)
-diff --git a/base/sparse/cholmod.jl b/base/sparse/cholmod.jl
-index f2a9566..ec7e980 100644
---- a/base/sparse/cholmod.jl
-+++ b/base/sparse/cholmod.jl
-@@ -73,21 +73,21 @@ function __init__()
- 
- 
-         if current_version < CHOLMOD_MIN_VERSION
--		    warn("""
--
--		        CHOLMOD version incompatibility
-+            warn("""
- 
--		        Julia was compiled with CHOLMOD version $build_version. It is
--		        currently linked with a version older than
--		        $(CHOLMOD_MIN_VERSION). This might cause Julia to
--		        terminate when working with sparse matrix factorizations,
--		        e.g. solving systems of equations with \\.
-+                CHOLMOD version incompatibility
- 
--		        It is recommended that you use Julia with a recent version
--		        of CHOLMOD, or download the generic binaries
--		        from www.julialang.org, which ship with the correct
--		        versions of all dependencies.
--		    """)
-+                Julia was compiled with CHOLMOD version $build_version. It is
-+                currently linked with a version older than
-+                $(CHOLMOD_MIN_VERSION). This might cause Julia to
-+                terminate when working with sparse matrix factorizations,
-+                e.g. solving systems of equations with \\.
-+
-+                It is recommended that you use Julia with a recent version
-+                of CHOLMOD, or download the generic binaries
-+                from www.julialang.org, which ship with the correct
-+                versions of all dependencies.
-+            """)
-         elseif build_version_array[1] != current_version_array[1]
-             warn("""
- 
-diff --git a/base/sparse/sparsematrix.jl b/base/sparse/sparsematrix.jl
-index 97a7bcd..592e00d 100644
---- a/base/sparse/sparsematrix.jl
-+++ b/base/sparse/sparsematrix.jl
-@@ -884,7 +884,13 @@ broadcast_zpreserving{Tv,Ti}(f::Function, A_1::Union{Array,BitArray,Number}, A_2
- 
- ## Binary arithmetic and boolean operators
- 
--for op in (+, -, min, max)
-+for (op, pro) in ((+,   :eltype_plus),
-+                  (-,   :eltype_plus),
-+                  (min, :promote_eltype),
-+                  (max, :promote_eltype),
-+                  (&,   :promote_eltype),
-+                  (|,   :promote_eltype),
-+                  ($,   :promote_eltype))
-     body = gen_broadcast_body_sparse(op, true)
-     OP = Symbol(string(op))
-     @eval begin
-@@ -892,7 +898,7 @@ for op in (+, -, min, max)
-             if size(A_1,1) != size(A_2,1) || size(A_1,2) != size(A_2,2)
-                 throw(DimensionMismatch(""))
-             end
--            Tv = eltype_plus(A_1, A_2)
-+            Tv = ($pro)(A_1, A_2)
-             B =  spzeros(Tv, promote_type(Ti1, Ti2), broadcast_shape(A_1, A_2)...)
-             $body
-             B
-diff --git a/base/task.jl b/base/task.jl
-index af47619..ab436a2 100644
---- a/base/task.jl
-+++ b/base/task.jl
-@@ -16,7 +16,7 @@ end
- # Container for a captured exception and its backtrace. Can be serialized.
- type CapturedException
-     ex::Any
--    processed_bt::Array
-+    processed_bt::Vector{Any}
- 
-     function CapturedException(ex, bt_raw)
-         # bt_raw MUST be an Array of code pointers than can be processed by jl_lookup_code_address
-@@ -32,12 +32,7 @@ type CapturedException
-     end
- end
- 
--function show(io::IO, ce::CapturedException)
--    show(io, ce.ex)
--    for entry in ce.processed_bt
--        show_trace_entry(io, entry...)
--    end
--end
-+showerror(io::IO, ce::CapturedException) = showerror(io, ce.ex, ce.processed_bt, backtrace=true)
- 
- type CompositeException <: Exception
-     exceptions::Array
-@@ -46,9 +41,9 @@ end
- length(c::CompositeException) = length(c.exceptions)
- push!(c::CompositeException, ex) = push!(c.exceptions, ex)
- 
--function show(io::IO, ex::CompositeException)
-+function showerror(io::IO, ex::CompositeException)
-     if length(ex) > 0
--        show(io, ex.exceptions[1])
-+        showerror(io, ex.exceptions[1])
-         remaining = length(ex) - 1
-         if remaining > 0
-             print(io, "\n\n...and $remaining other exceptions.\n")
-diff --git a/base/version.jl b/base/version.jl
-index 9c0fed9..51e2738 100644
---- a/base/version.jl
-+++ b/base/version.jl
-@@ -226,7 +226,7 @@ function banner(io::IO = STDOUT)
-         commit = GIT_VERSION_INFO.commit_short
- 
-         if distance == 0
--            commit_string = "Commit $(commit) ($(days) $(unit) old master)"
-+            commit_string = "Commit $(commit) ($(days) $(unit) old release-0.4)"
-         else
-             branch = GIT_VERSION_INFO.branch
-             commit_string = "$(branch)/$(commit) (fork: $(distance) commits, $(days) $(unit))"
-diff --git a/base/version_git.sh b/base/version_git.sh
-index bcd9820..d4f2717 100644
---- a/base/version_git.sh
-+++ b/base/version_git.sh
-@@ -61,8 +61,8 @@ if [ $(git describe --tags --exact-match 2> /dev/null) ]; then
- else
-     tagged_commit="false"
- fi
--fork_master_distance=$(git rev-list HEAD ^"$(echo $origin)master" | wc -l | sed -e 's/[^[:digit:]]//g')
--fork_master_timestamp=$(git show -s $(git merge-base HEAD $(echo $origin)master) --format=format:"%ct")
-+fork_master_distance=$(git rev-list HEAD ^"$(echo $origin)release-0.4" | wc -l | sed -e 's/[^[:digit:]]//g')
-+fork_master_timestamp=$(git show -s $(git merge-base HEAD $(echo $origin)release-0.4) --format=format:"%ct")
- 
- # Check for errrors and emit default value for missing numbers.
- if [ -z "$build_number" ]; then
-diff --git a/contrib/windows/msys_build.sh b/contrib/windows/msys_build.sh
-index bb4b88c..15d3472 100755
---- a/contrib/windows/msys_build.sh
-+++ b/contrib/windows/msys_build.sh
-@@ -97,9 +97,9 @@ esac
- 
- # Download most recent Julia binary for dependencies
- if ! [ -e julia-installer.exe ]; then
--  f=julia-latest-win$bits.exe
-+  f=julia-0.4-latest-win$bits.exe
-   echo "Downloading $f"
--  $curlflags -O https://s3.amazonaws.com/julianightlies/bin/winnt/x$archsuffix/$f
-+  $curlflags -O https://s3.amazonaws.com/julialang/bin/winnt/x$archsuffix/0.4/$f
-   echo "Extracting $f"
-   $SEVENZIP x -y $f >> get-deps.log
- fi
-diff --git a/doc/conf.py b/doc/conf.py
-index 0e57c42..14d59dd 100644
---- a/doc/conf.py
-+++ b/doc/conf.py
-@@ -193,39 +193,44 @@ latex_elements = {
-     'utf8extra': r'''
-         \usepackage{CJKutf8}
-         \usepackage{amssymb}
-+        \DeclareUnicodeCharacter{00B9}{\ensuremath{^{1}}}
-         \DeclareUnicodeCharacter{00A0}{\nobreakspace}
-+        \DeclareUnicodeCharacter{00D7}{\ensuremath{\times}}
-+        \DeclareUnicodeCharacter{00F7}{\ensuremath{\div}}
-+        \DeclareUnicodeCharacter{0127}{\ensuremath{\hbar}}
-+        \DeclareUnicodeCharacter{03B3}{\ensuremath{\gamma}}
-+        \DeclareUnicodeCharacter{03C0}{\ensuremath{\pi}}
-+        \DeclareUnicodeCharacter{03C6}{\ensuremath{\varphi}}
-+        \DeclareUnicodeCharacter{1D34}{\ensuremath{^{\mathrm{H}}}}
-+        \DeclareUnicodeCharacter{1D40}{\ensuremath{^{\mathrm{T}}}}
-+        \DeclareUnicodeCharacter{2081}{\ensuremath{_{1}}}
-         \DeclareUnicodeCharacter{2203}{\ensuremath{\exists}}
-         \DeclareUnicodeCharacter{2200}{\ensuremath{\forall}}
--        \DeclareUnicodeCharacter{2713}{x}
--        \DeclareUnicodeCharacter{27FA}{\ensuremath{\Longleftrightarrow}}
-+        \DeclareUnicodeCharacter{2208}{\ensuremath{\in}}
-+        \DeclareUnicodeCharacter{220B}{\ensuremath{\ni}}
-+        \DeclareUnicodeCharacter{2209}{\ensuremath{\notin}}
-+        \DeclareUnicodeCharacter{220C}{\ensuremath{\not\ni}}
-+        \DeclareUnicodeCharacter{2211}{\ensuremath{\sum}}
-         \DeclareUnicodeCharacter{221A}{\ensuremath{\sqrt{}}}
-         \DeclareUnicodeCharacter{221B}{\ensuremath{\sqrt[3]{}}}
--        \DeclareUnicodeCharacter{2295}{\ensuremath{\oplus}}
--        \DeclareUnicodeCharacter{2297}{\ensuremath{\otimes}}
--        \DeclareUnicodeCharacter{2211}{\ensuremath{\sum}}
--        \DeclareUnicodeCharacter{03C0}{\ensuremath{\pi}}
--        \DeclareUnicodeCharacter{2081}{\ensuremath{_{1}}}
--        \DeclareUnicodeCharacter{00B9}{\ensuremath{^{1}}}
--        \DeclareUnicodeCharacter{0127}{\ensuremath{\hbar}}
-+        \DeclareUnicodeCharacter{222A}{\ensuremath{\cup}}
-+        \DeclareUnicodeCharacter{2229}{\ensuremath{\cap}}
-+        \DeclareUnicodeCharacter{2248}{\ensuremath{\approx}}
-+        \DeclareUnicodeCharacter{2249}{\ensuremath{\not\approx}}
-         \DeclareUnicodeCharacter{2260}{\ensuremath{\ne}}
--        \DeclareUnicodeCharacter{2264}{\ensuremath{\le}}
--        \DeclareUnicodeCharacter{2265}{\ensuremath{\ge}}
-         \DeclareUnicodeCharacter{2261}{\ensuremath{\equiv}}
-         \DeclareUnicodeCharacter{2262}{\ensuremath{\not\equiv}}
--        \DeclareUnicodeCharacter{2208}{\ensuremath{\in}}
--        \DeclareUnicodeCharacter{220B}{\ensuremath{\ni}}
--        \DeclareUnicodeCharacter{2209}{\ensuremath{\notin}}
--        \DeclareUnicodeCharacter{220C}{\ensuremath{\not\ni}}
-+        \DeclareUnicodeCharacter{2264}{\ensuremath{\le}}
-+        \DeclareUnicodeCharacter{2265}{\ensuremath{\ge}}
-         \DeclareUnicodeCharacter{2286}{\ensuremath{\subseteq}}
-         \DeclareUnicodeCharacter{2288}{\ensuremath{\nsubseteq}}
-         \DeclareUnicodeCharacter{228A}{\ensuremath{\subsetneq}}
--        \DeclareUnicodeCharacter{222A}{\ensuremath{\cup}}
--        \DeclareUnicodeCharacter{2229}{\ensuremath{\cap}}
--        \DeclareUnicodeCharacter{00F7}{\ensuremath{\div}}
--        \DeclareUnicodeCharacter{03B3}{\ensuremath{\gamma}}
--        \DeclareUnicodeCharacter{03C6}{\ensuremath{\varphi}}
-+        \DeclareUnicodeCharacter{2295}{\ensuremath{\oplus}}
-+        \DeclareUnicodeCharacter{2297}{\ensuremath{\otimes}}
-         \DeclareUnicodeCharacter{22C5}{\ensuremath{\cdot}}
--        \DeclareUnicodeCharacter{00D7}{\ensuremath{\times}}
-+        \DeclareUnicodeCharacter{2713}{x}
-+        \DeclareUnicodeCharacter{27FA}{\ensuremath{\Longleftrightarrow}}
-+
-     ''',
- }
- 
-diff --git a/doc/devdocs/eval.rst b/doc/devdocs/eval.rst
-index 09ca6c0..e441845 100644
---- a/doc/devdocs/eval.rst
-+++ b/doc/devdocs/eval.rst
-@@ -31,7 +31,7 @@ The 10,000 foot view of the whole process is as follows:
- 
- 1. The user starts `julia`.
- 2. The C function :c:func:`main` from `ui/repl.c` gets called.
--   This function processes the command line arguments, filling in the :c:type:`jl_compileropts` struct and setting the variable :code:`ARGS`.
-+   This function processes the command line arguments, filling in the :c:type:`jl_options` struct and setting the variable :code:`ARGS`.
-    It then initializes Julia (by calling `julia_init in task.c <https://github.com/JuliaLang/julia/blob/master/src/task.c>`_,
-    which may load a previously compiled sysimg_).
-    Finally, it passes off control to Julia by calling `Base._start() <https://github.com/JuliaLang/julia/blob/master/base/client.jl>`_.
-@@ -188,7 +188,7 @@ and serializing the resulting environment (including Types, Functions, Modules,
- into a file. Therefore, it contains a frozen version of the :mod:`Main`, :mod:`Core`, and :mod:`Base` modules (and whatever else was in the environment at the end of bootstrapping).
- This serializer/deserializer is implemented by `jl_save_system_image/jl_restore_system_image in dump.c <https://github.com/JuliaLang/julia/blob/master/src/dump.c>`_.
- 
--If there is no sysimg file (:code:`jl_compileropts.image_file == NULL`),
-+If there is no sysimg file (:code:`jl_options.image_file == NULL`),
- this also implies that `--build` was given on the command line,
- so the final result should be a new sysimg file.
- During Julia initialization, minimal :mod:`Core` and :mod:`Main` modules are created.
-diff --git a/doc/devdocs/init.rst b/doc/devdocs/init.rst
-index ff8d3b0..8bc4cd0 100644
---- a/doc/devdocs/init.rst
-+++ b/doc/devdocs/init.rst
-@@ -10,25 +10,25 @@ main()
- ------
- 
- Execution starts at `main() in julia/ui/repl.c
--<https://github.com/JuliaLang/julia/blob/master/ui/repl.c#L333>`_.
-+<https://github.com/JuliaLang/julia/blob/master/ui/repl.c>`_.
- 
- main() calls `libsupport_init()
--<https://github.com/JuliaLang/julia/blob/master/src/support/libsupportinit.c#L10>`_
-+<https://github.com/JuliaLang/julia/blob/master/src/support/libsupportinit.c>`_
- to set the C library locale and to initialise the "ios" library
- (see `ios_init_stdstreams()
--<https://github.com/JuliaLang/julia/blob/master/src/support/ios.c#L917>`_
-+<https://github.com/JuliaLang/julia/blob/master/src/support/ios.c>`_
- and :ref:`dev-ios`).
- 
- Next `parse_opts()
--<https://github.com/JuliaLang/julia/blob/master/ui/repl.c#L80>`_
-+<https://github.com/JuliaLang/julia/blob/master/ui/repl.c>`_
- is called to process command line options. Note that :c:func:`parse_opts`
- only deals with options that affect code generation or early initialisation. Other
- options are handled later by `process_options() in base/client.jl
--<https://github.com/JuliaLang/julia/blob/master/base/client.jl#L214>`_.
-+<https://github.com/JuliaLang/julia/blob/master/base/client.jl>`_.
- 
--:c:func:`parse_opts` stores command line options in the `global jl_compileropts
-+:c:func:`parse_opts` stores command line options in the `global jl_options
- struct
--<https://github.com/JuliaLang/julia/blob/master/src/julia.h#L1320>`_.
-+<https://github.com/JuliaLang/julia/blob/master/src/julia.h>`_.
- 
- 
- julia_init()
-@@ -36,36 +36,36 @@ julia_init()
- 
- 
- `julia_init() in task.c
--<https://github.com/JuliaLang/julia/blob/master/src/task.c#L270>`_ is
-+<https://github.com/JuliaLang/julia/blob/master/src/task.c>`_ is
- called by main() and calls `_julia_init() in init.c
--<https://github.com/JuliaLang/julia/blob/master/src/init.c#L875>`_.
-+<https://github.com/JuliaLang/julia/blob/master/src/init.c>`_.
- 
- :c:func:`_julia_init` begins by calling :c:func:`libsupport_init` again (it does
- nothing the second time).
- 
- `restore_signals()
--<https://github.com/JuliaLang/julia/blob/master/src/init.c#L402>`_ is
-+<https://github.com/JuliaLang/julia/blob/master/src/signals-unix.c>`_ is
- called to zero the signal handler mask.
- 
- `jl_resolve_sysimg_location()
--<https://github.com/JuliaLang/julia/blob/master/src/init.c#L823>`_ searches
-+<https://github.com/JuliaLang/julia/blob/master/src/init.c>`_ searches
- configured paths for the base system image. See :ref:`dev-sysimg`.
- 
- `jl_gc_init()
--<https://github.com/JuliaLang/julia/blob/master/src/gc.c#L1096>`_
-+<https://github.com/JuliaLang/julia/blob/master/src/gc.c>`_
- sets up allocation pools and lists for: weak refs, preserved values
- and finalization.
- 
- `jl_init_frontend()
--<https://github.com/JuliaLang/julia/blob/master/src/ast.c#L119>`_
-+<https://github.com/JuliaLang/julia/blob/master/src/ast.c>`_
- loads and initialises a pre-compiled femtolisp image containing
- the scanner/parser;
- 
- `jl_init_types()
--<https://github.com/JuliaLang/julia/blob/master/src/jltypes.c#L2887>`_
-+<https://github.com/JuliaLang/julia/blob/master/src/jltypes.c>`_
- creates :c:type:`jl_datatype_t` type description objects for the `built-in
- types defined in julia.h
--<https://github.com/JuliaLang/julia/blob/master/src/julia.h#L295>`_. e.g.
-+<https://github.com/JuliaLang/julia/blob/master/src/julia.h>`_. e.g.
- ::
- 
-     jl_any_type = jl_new_abstracttype(jl_symbol("Any"), NULL, jl_null);
-@@ -77,18 +77,17 @@ types defined in julia.h
-                                     jl_any_type, jl_null, 32);
- 
- `jl_init_tasks()
--<https://github.com/JuliaLang/julia/blob/master/src/task.c#L870>`_ creates
-+<https://github.com/JuliaLang/julia/blob/master/src/task.c>`_ creates
- the ``jl_datatype_t* jl_task_type`` object; initialises the global
--`jl_root_task struct
--<https://github.com/JuliaLang/julia/blob/master/src/julia.h#L1159>`_; and
-+``jl_root_task`` struct; and
- sets ``jl_current_task`` to the root task.
- 
- `jl_init_codegen()
--<https://github.com/JuliaLang/julia/blob/master/src/codegen.cpp#L4830>`_
-+<https://github.com/JuliaLang/julia/blob/master/src/codegen.cpp>`_
- initialises the `LLVM library <http://llvm.org>`_.
- 
- `jl_init_serializer()
--<https://github.com/JuliaLang/julia/blob/master/src/dump.c#L1732>`_
-+<https://github.com/JuliaLang/julia/blob/master/src/dump.c>`_
- initialises 8-bit serialisation tags for 256 frequently used
- ``jl_value_t`` values. The serialisation mechanism uses these tags as
- shorthand (in lieu of storing whole objects) to save storage space.
-@@ -97,29 +96,29 @@ shorthand (in lieu of storing whole objects) to save storage space.
- 
-     If there is a sysimg file, it contains a pre-cooked image of the :mod:`Core` and :mod:`Main` modules (and whatever else is created by ``boot.jl``). See :ref:`dev-sysimg`.
- 
--    `jl_restore_system_image() <https://github.com/JuliaLang/julia/blob/master/src/dump.c#L1379>`_ de-serialises the saved sysimg into the current Julia runtime environment and initialisation continues after :c:func:`jl_init_box_caches` below...
-+    `jl_restore_system_image() <https://github.com/JuliaLang/julia/blob/master/src/dump.c>`_ de-serialises the saved sysimg into the current Julia runtime environment and initialisation continues after :c:func:`jl_init_box_caches` below...
- 
--    Note: `jl_restore_system_image() (and dump.c in general) <https://github.com/JuliaLang/julia/blob/master/src/dump.c#L1379>`_ uses the :ref:`dev-ios`.
-+    Note: `jl_restore_system_image() (and dump.c in general) <https://github.com/JuliaLang/julia/blob/master/src/dump.c>`_ uses the :ref:`dev-ios`.
- 
- 
--If there is no sysimg file (:code:`!jl_compileropts.image_file`) then
-+If there is no sysimg file (:code:`!jl_options.image_file`) then
- then :mod:`Core` and :mod:`Main` modules are created and ``boot.jl`` is evaluated:
- 
- :code:`jl_core_module = jl_new_module(jl_symbol("Core"))` creates
- the Julia :mod:`Core` module.
- 
- `jl_init_intrinsic_functions()
--<https://github.com/JuliaLang/julia/blob/master/src/intrinsics.cpp#L1254>`_
-+<https://github.com/JuliaLang/julia/blob/master/src/intrinsics.cpp>`_
- creates a new Julia module "Intrinsics" containing constant
- jl_intrinsic_type symbols. These define an integer code for
- each `intrinsic function
--<https://github.com/JuliaLang/julia/blob/master/src/intrinsics.cpp#L2>`_.
-+<https://github.com/JuliaLang/julia/blob/master/src/intrinsics.cpp>`_.
- `emit_intrinsic()
--<https://github.com/JuliaLang/julia/blob/master/src/intrinsics.cpp#L757>`_
-+<https://github.com/JuliaLang/julia/blob/master/src/intrinsics.cpp>`_
- translates these symbols into LLVM instructions during code generation.
- 
- `jl_init_primitives()
--<https://github.com/JuliaLang/julia/blob/master/src/builtins.c#L989>`_
-+<https://github.com/JuliaLang/julia/blob/master/src/builtins.c>`_
- hooks C functions up to Julia function symbols. e.g. the symbol
- :func:`Base.is` is bound to C function pointer :c:func:`jl_f_is`
- by calling :code:`add_builtin_func("eval", jl_f_top_eval)`, which does::
-@@ -134,65 +133,65 @@ by calling :code:`add_builtin_func("eval", jl_f_top_eval)`, which does::
- creates the global "Main" module and sets
- :code:`jl_current_task->current_module = jl_main_module`.
- 
--Note: _julia_init() `then sets <https://github.com/JuliaLang/julia/blob/master/src/init.c#L975>`_ :code:`jl_root_task->current_module = jl_core_module`. :code:`jl_root_task` is an alias of :code:`jl_current_task` at this point, so the current_module set by :c:func:`jl_new_main_module` above is overwritten.
-+Note: _julia_init() `then sets <https://github.com/JuliaLang/julia/blob/master/src/init.c>`_ :code:`jl_root_task->current_module = jl_core_module`. :code:`jl_root_task` is an alias of :code:`jl_current_task` at this point, so the current_module set by :c:func:`jl_new_main_module` above is overwritten.
- 
--`jl_load("boot.jl") <https://github.com/JuliaLang/julia/blob/master/src/toplevel.c#L568>`_ calls `jl_parse_eval_all("boot.jl") <https://github.com/JuliaLang/julia/blob/master/src/toplevel.c#L525>`_ which repeatedly calls `jl_parse_next() <https://github.com/JuliaLang/julia/blob/master/src/ast.c#L523>`_ and `jl_toplevel_eval_flex() <https://github.com/JuliaLang/julia/blob/master/src/toplevel.c#L376>`_ to parse and execute `boot.jl <https://github.com/JuliaLang/julia/blob/master/base/boot.jl#L116>`_. TODO -- drill down into eval?
-+`jl_load("boot.jl", sizeof("boot.jl")) <https://github.com/JuliaLang/julia/blob/master/src/init.c>`_ calls `jl_parse_eval_all("boot.jl") <https://github.com/JuliaLang/julia/blob/master/src/toplevel.c>`_ which repeatedly calls `jl_parse_next() <https://github.com/JuliaLang/julia/blob/master/src/ast.c>`_ and `jl_toplevel_eval_flex() <https://github.com/JuliaLang/julia/blob/master/src/toplevel.c>`_ to parse and execute `boot.jl <https://github.com/JuliaLang/julia/blob/master/base/boot.jl>`_. TODO -- drill down into eval?
- 
--`jl_get_builtin_hooks() <https://github.com/JuliaLang/julia/blob/master/src/init.c#L1209>`_ initialises global C pointers to Julia globals defined in ``boot.jl``.
-+`jl_get_builtin_hooks() <https://github.com/JuliaLang/julia/blob/master/src/init.c>`_ initialises global C pointers to Julia globals defined in ``boot.jl``.
- 
- 
--`jl_init_box_caches() <https://github.com/JuliaLang/julia/blob/master/src/alloc.c#L850>`_ pre-allocates global boxed integer value objects for values up to 1024. This speeds up allocation of boxed ints later on. e.g.::
-+`jl_init_box_caches() <https://github.com/JuliaLang/julia/blob/master/src/alloc.c>`_ pre-allocates global boxed integer value objects for values up to 1024. This speeds up allocation of boxed ints later on. e.g.::
- 
-     jl_value_t *jl_box_uint8(uint32_t x)
-     {
-         return boxed_uint8_cache[(uint8_t)x];
-     }
- 
--`_julia_init() iterates <https://github.com/JuliaLang/julia/blob/master/src/init.c#L997>`_ over the :code:`jl_core_module->bindings.table` looking for :code:`jl_datatype_t` values and sets the type name's module prefix to :code:`jl_core_module`.
-+`_julia_init() iterates <https://github.com/JuliaLang/julia/blob/master/src/init.c>`_ over the :code:`jl_core_module->bindings.table` looking for :code:`jl_datatype_t` values and sets the type name's module prefix to :code:`jl_core_module`.
- 
--`jl_add_standard_imports(jl_main_module) <https://github.com/JuliaLang/julia/blob/master/src/toplevel.c#L34>`_ does "using Base" in the "Main" module.
-+`jl_add_standard_imports(jl_main_module) <https://github.com/JuliaLang/julia/blob/master/src/toplevel.c>`_ does "using Base" in the "Main" module.
- 
--Note: :c:func:`_julia_init` `now reverts <https://github.com/JuliaLang/julia/blob/master/src/init.c#L1017>`_ to :code:`jl_root_task->current_module = jl_main_module` as it was before being `set to jl_core_module <https://github.com/JuliaLang/julia/blob/master/src/init.c#L975>`_ above.
-+Note: :c:func:`_julia_init` now reverts to :code:`jl_root_task->current_module = jl_main_module` as it was before being set to ``jl_core_module`` above.
- 
- Platform specific signal handlers are initialised for ``SIGSEGV`` (OSX, Linux), and ``SIGFPE`` (Windows).
- 
--Other signals (``SIGINFO, SIGBUS, SIGILL, SIGTERM, SIGABRT, SIGQUIT, SIGSYS`` and ``SIGPIPE``) are hooked up to `sigdie_handler() <https://github.com/JuliaLang/julia/blob/master/src/init.c#L174>`_ which prints a backtrace.
-+Other signals (``SIGINFO, SIGBUS, SIGILL, SIGTERM, SIGABRT, SIGQUIT, SIGSYS`` and ``SIGPIPE``) are hooked up to `sigdie_handler() <https://github.com/JuliaLang/julia/blob/master/src/signals-unix.c>`_ which prints a backtrace.
- 
--`jl_init_restored_modules() <https://github.com/JuliaLang/julia/blob/master/src/dump.c#L1458>`_ calls `jl_module_run_initializer() <https://github.com/JuliaLang/julia/blob/master/src/module.c#L429>`_ for each deserialised module to run the :c:func:`__init__` function.
-+`jl_init_restored_modules() <https://github.com/JuliaLang/julia/blob/master/src/dump.c>`_ calls `jl_module_run_initializer() <https://github.com/JuliaLang/julia/blob/master/src/module.c>`_ for each deserialised module to run the :c:func:`__init__` function.
- 
--Finally `sigint_handler() <https://github.com/JuliaLang/julia/blob/master/src/init.c#L409>`_ is hooked up to ``SIGINT`` and calls :code:`jl_throw(jl_interrupt_exception)`.
-+Finally `sigint_handler() <https://github.com/JuliaLang/julia/blob/master/src/signals-unix.c>`_ is hooked up to ``SIGINT`` and calls :code:`jl_throw(jl_interrupt_exception)`.
- 
- :c:func:`_julia_init` then returns `back to main() in julia/ui/repl.c
--<https://github.com/JuliaLang/julia/blob/master/ui/repl.c#L355>`_ and main() calls :code:`true_main(argc, (char**)argv)`.
-+<https://github.com/JuliaLang/julia/blob/master/ui/repl.c>`_ and main() calls :code:`true_main(argc, (char**)argv)`.
- 
- true_main()
- -----------
- 
--`true_main() <https://github.com/JuliaLang/julia/blob/master/ui/repl.c#L275>`_ loads the contents of :code:`argv[]` into :data:`Base.ARGS`.
-+`true_main() <https://github.com/JuliaLang/julia/blob/master/ui/repl.c>`_ loads the contents of :code:`argv[]` into :data:`Base.ARGS`.
- 
--If a .jl "program" file was supplied on the command line, then `exec_program() <https://github.com/JuliaLang/julia/blob/master/ui/repl.c#L219>`_ calls `jl_load(program) <https://github.com/JuliaLang/julia/blob/master/src/toplevel.c#L568>`_ which calls `jl_parse_eval_all() <https://github.com/JuliaLang/julia/blob/master/src/toplevel.c#L525>`_ which repeatedly calls `jl_parse_next() <https://github.com/JuliaLang/julia/blob/master/src/ast.c#L523>`_ and `jl_toplevel_eval_flex() <https://github.com/JuliaLang/julia/blob/master/src/toplevel.c#L376>`_ to parse and execute the program.
-+If a .jl "program" file was supplied on the command line, then `exec_program() <https://github.com/JuliaLang/julia/blob/master/ui/repl.c>`_ calls `jl_load(program,len) <https://github.com/JuliaLang/julia/blob/master/src/toplevel.c>`_ which calls `jl_parse_eval_all() <https://github.com/JuliaLang/julia/blob/master/src/toplevel.c>`_ which repeatedly calls `jl_parse_next() <https://github.com/JuliaLang/julia/blob/master/src/ast.c>`_ and `jl_toplevel_eval_flex() <https://github.com/JuliaLang/julia/blob/master/src/toplevel.c>`_ to parse and execute the program.
- 
--However, in our example (:code:`julia -e 'println("Hello World!")'`), `jl_get_global(jl_base_module, jl_symbol("_start")) <https://github.com/JuliaLang/julia/blob/master/src/module.c#L320>`_ looks up `Base._start <https://github.com/JuliaLang/julia/blob/master/base/client.jl#L388>`_ and `jl_apply() <https://github.com/JuliaLang/julia/blob/master/src/julia.h#L987>`_ executes it.
-+However, in our example (:code:`julia -e 'println("Hello World!")'`), `jl_get_global(jl_base_module, jl_symbol("_start")) <https://github.com/JuliaLang/julia/blob/master/src/module.c>`_ looks up `Base._start <https://github.com/JuliaLang/julia/blob/master/base/client.jl>`_ and `jl_apply() <https://github.com/JuliaLang/julia/blob/master/src/julia.h>`_ executes it.
- 
- 
- Base._start
- -----------
- 
--`Base._start <https://github.com/JuliaLang/julia/blob/master/base/client.jl#L388>`_ calls `Base.process_options <https://github.com/JuliaLang/julia/blob/master/base/client.jl#L214>`_ which calls `jl_parse_input_line("println(\"Hello World!\")") <https://github.com/JuliaLang/julia/blob/master/src/ast.c#L468>`_ to create an expression object and :func:`Base.eval` to execute it.
-+`Base._start <https://github.com/JuliaLang/julia/blob/master/base/client.jl>`_ calls `Base.process_options <https://github.com/JuliaLang/julia/blob/master/base/client.jl>`_ which calls `jl_parse_input_line("println(\"Hello World!\")") <https://github.com/JuliaLang/julia/blob/master/src/ast.c>`_ to create an expression object and :func:`Base.eval` to execute it.
- 
- 
- Base.eval
- ---------
- 
--:func:`Base.eval` was `mapped to jl_f_top_eval <https://github.com/JuliaLang/julia/blob/master/src/builtins.c#L1005>`_ by :c:func:`jl_init_primitives`.
-+:func:`Base.eval` was `mapped to jl_f_top_eval <https://github.com/JuliaLang/julia/blob/master/src/builtins.c>`_ by :c:func:`jl_init_primitives`.
- 
--`jl_f_top_eval() <https://github.com/JuliaLang/julia/blob/master/src/builtins.c#L444>`_ calls `jl_toplevel_eval_in(jl_main_module, ex) <https://github.com/JuliaLang/julia/blob/master/src/builtins.c#L444>`_, where "ex" is the parsed expression :code:`println("Hello World!")`.
-+`jl_f_top_eval() <https://github.com/JuliaLang/julia/blob/master/src/builtins.c>`_ calls `jl_toplevel_eval_in(jl_main_module, ex) <https://github.com/JuliaLang/julia/blob/master/src/builtins.c>`_, where "ex" is the parsed expression :code:`println("Hello World!")`.
- 
--`jl_toplevel_eval_in() <https://github.com/JuliaLang/julia/blob/master/src/builtins.c#L417>`_ calls `jl_toplevel_eval_flex() <https://github.com/JuliaLang/julia/blob/master/src/toplevel.c#L376>`_ which calls `eval() in interpreter.c <https://github.com/JuliaLang/julia/blob/master/src/interpreter.c#L112>`_.
-+`jl_toplevel_eval_in() <https://github.com/JuliaLang/julia/blob/master/src/builtins.c>`_ calls `jl_toplevel_eval_flex() <https://github.com/JuliaLang/julia/blob/master/src/toplevel.c>`_ which calls `eval() in interpreter.c <https://github.com/JuliaLang/julia/blob/master/src/interpreter.c>`_.
- 
--The stack dump below shows how the interpreter works its way through various methods of :func:`Base.println` and :func:`Base.print` before arriving at `write{T}(s::AsyncStream, a::Array{T}) <https://github.com/JuliaLang/julia/blob/master/base/stream.jl#L782>`_  which does :code:`ccall(jl_write_no_copy())`.
-+The stack dump below shows how the interpreter works its way through various methods of :func:`Base.println` and :func:`Base.print` before arriving at `write{T}(s::AsyncStream, a::Array{T}) <https://github.com/JuliaLang/julia/blob/master/base/stream.jl>`_  which does :code:`ccall(jl_uv_write())`.
- 
--`jl_write_no_copy() <https://github.com/JuliaLang/julia/blob/master/src/jl_uv.c#L580>`_
-+`jl_uv_write() <https://github.com/JuliaLang/julia/blob/master/src/jl_uv.c>`_
- calls :c:func:`uv_write` to write "Hello World!" to :c:macro:`JL_STDOUT`. See :ref:`dev-libuv`.::
- 
-     Hello World!
-@@ -201,36 +200,36 @@ calls :c:func:`uv_write` to write "Hello World!" to :c:macro:`JL_STDOUT`. See :r
- ============================  =================  ===============================================
- Stack frame                   Source code        Notes
- ============================  =================  ===============================================
--jl_write_no_copy()            jl_uv.c:552        called though :func:`Base.ccall`
--julia_write_282942            stream.jl:734      function write!{T}(s::AsyncStream, a::Array{T})
--julia_print_284639            ascii.jl:93        print(io::IO, s::ASCIIString) = (write(io, s);nothing)
-+jl_uv_write()                 jl_uv.c            called though :func:`Base.ccall`
-+julia_write_282942            stream.jl          function write!{T}(s::AsyncStream, a::Array{T})
-+julia_print_284639            ascii.jl           print(io::IO, s::ASCIIString) = (write(io, s);nothing)
- jlcall_print_284639
--jl_apply()                    julia.h:989
--jl_trampoline()               builtins.c:835
--jl_apply()                    julia.h:989
--jl_apply_generic()            gf.c:1624          Base.print(Base.TTY, ASCIIString)
--jl_apply()                    julia.h:989
--jl_trampoline()               builtins.c:835
--jl_apply()                    julia.h:989
--jl_apply_generic()            gf.c:1643          Base.print(Base.TTY, ASCIIString, Char, Char...)
--jl_apply()                    julia.h:989
--jl_f_apply()                  builtins.c:374
--jl_apply()                    julia.h:989
--jl_trampoline()               builtins.c:835
--jl_apply()                    julia.h:989
--jl_apply_generic()            gf.c:1643          Base.println(Base.TTY, ASCIIString, ASCIIString...)
--jl_apply()                    julia.h:989
--jl_trampoline()               builtins.c:835
--jl_apply()                    julia.h:989
--jl_apply_generic()            gf.c:1643          Base.println(ASCIIString,)
--jl_apply()                    julia.h:989
--do_call()                     interpreter.c:70
--eval()                        interpreter.c:210
--jl_interpret_toplevel_expr()  interpreter.c:25
--jl_toplevel_eval_flex()       toplevel.c:498
--jl_toplevel_eval()            toplevel.c:521
--jl_toplevel_eval_in()         builtins.c:440
--jl_f_top_eval()               builtins.c:469
-+jl_apply()                    julia.h
-+jl_trampoline()               builtins.c
-+jl_apply()                    julia.h
-+jl_apply_generic()            gf.c               Base.print(Base.TTY, ASCIIString)
-+jl_apply()                    julia.h
-+jl_trampoline()               builtins.c
-+jl_apply()                    julia.h
-+jl_apply_generic()            gf.c               Base.print(Base.TTY, ASCIIString, Char, Char...)
-+jl_apply()                    julia.h
-+jl_f_apply()                  builtins.c
-+jl_apply()                    julia.h
-+jl_trampoline()               builtins.c
-+jl_apply()                    julia.h
-+jl_apply_generic()            gf.c               Base.println(Base.TTY, ASCIIString, ASCIIString...)
-+jl_apply()                    julia.h
-+jl_trampoline()               builtins.c
-+jl_apply()                    julia.h
-+jl_apply_generic()            gf.c               Base.println(ASCIIString,)
-+jl_apply()                    julia.h
-+do_call()                     interpreter.c
-+eval()                        interpreter.c
-+jl_interpret_toplevel_expr()  interpreter.c
-+jl_toplevel_eval_flex()       toplevel.c
-+jl_toplevel_eval()            toplevel.c
-+jl_toplevel_eval_in()         builtins.c
-+jl_f_top_eval()               builtins.c
- ============================  =================  ===============================================
- 
- Since our example has just one function call, which has done its
-@@ -240,13 +239,13 @@ jl_atexit_hook()
- ----------------
- 
- :c:func:`main` calls `jl_atexit_hook()
--<https://github.com/JuliaLang/julia/blob/master/src/init.c#L448>`_. This
-+<https://github.com/JuliaLang/julia/blob/master/src/init.c>`_. This
- calls _atexit for each module, then calls `jl_gc_run_all_finalizers()
--<https://github.com/JuliaLang/julia/blob/master/src/gc.c#L325>`_
-+<https://github.com/JuliaLang/julia/blob/master/src/gc.c>`_
- and cleans up libuv handles.
- 
- 
- julia_save()
- ------------
- 
--Finally, :c:func:`main` calls `julia_save() <https://github.com/JuliaLang/julia/blob/master/src/init.c#L1155>`_, which if requested on the command line, saves the runtime state to a new system image. See `jl_compile_all() <https://github.com/JuliaLang/julia/blob/master/src/gf.c#L1525>`_ and `jl_save_system_image() <https://github.com/JuliaLang/julia/blob/master/src/dump.c#L1300>`_.
-+Finally, :c:func:`main` calls `julia_save() <https://github.com/JuliaLang/julia/blob/master/src/init.c>`_, which if requested on the command line, saves the runtime state to a new system image. See `jl_compile_all() <https://github.com/JuliaLang/julia/blob/master/src/gf.c>`_ and `jl_save_system_image() <https://github.com/JuliaLang/julia/blob/master/src/dump.c>`_.
-diff --git a/doc/devdocs/stdio.rst b/doc/devdocs/stdio.rst
-index be76537..c2f1599 100644
---- a/doc/devdocs/stdio.rst
-+++ b/doc/devdocs/stdio.rst
-@@ -67,8 +67,8 @@ The :func:`Base.read` and :func:`Base.write` methods for these
- streams use :func:`ccall` to call ``libuv`` wrappers in :code:`src/jl_uv.c`, e.g.::
- 
-     stream.jl: function write(s::AsyncStream, p::Ptr, nb::Integer)
--                   -> ccall(:jl_write_no_copy, ...)
--      jl_uv.c:          -> int jl_write_no_copy(uv_stream_t *stream, ...)
-+                   -> ccall(:jl_uv_write, ...)
-+      jl_uv.c:          -> int jl_uv_write(uv_stream_t *stream, ...)
-                             -> uv_write(uvw, stream, buf, ...)
- 
- printf() during initialisation
-diff --git a/doc/manual/arrays.rst b/doc/manual/arrays.rst
-index c075d99..fdbfcc0 100644
---- a/doc/manual/arrays.rst
-+++ b/doc/manual/arrays.rst
-@@ -433,9 +433,9 @@ the name of the function to vectorize. Here is a simple example:
- 
-     julia> methods(square)
-     # 4 methods for generic function "square":
--    square{T<:Number}(::AbstractArray{T<:Number,1}) at operators.jl:374
--    square{T<:Number}(::AbstractArray{T<:Number,2}) at operators.jl:375
--    square{T<:Number}(::AbstractArray{T<:Number,N}) at operators.jl:377
-+    square{T<:Number}(::AbstractArray{T<:Number,1}) at operators.jl:380
-+    square{T<:Number}(::AbstractArray{T<:Number,2}) at operators.jl:381
-+    square{T<:Number}(::AbstractArray{T<:Number,N}) at operators.jl:383
-     square(x) at none:1
- 
-     julia> square([1 2 4; 5 6 7])
-diff --git a/doc/manual/calling-c-and-fortran-code.rst b/doc/manual/calling-c-and-fortran-code.rst
-index 9b1edb4..0226c73 100644
---- a/doc/manual/calling-c-and-fortran-code.rst
-+++ b/doc/manual/calling-c-and-fortran-code.rst
-@@ -399,7 +399,7 @@ Julia type with the same name, prefixed by C. This can help for writing portable
- +-----------------------------------+-----------------+----------------------+-----------------------------------+
- | ``va_arg``                        |                 |                      | Not supported                     |
- +-----------------------------------+-----------------+----------------------+-----------------------------------+
--| ``...``                           |                 |                      | ``T...`` (where ``T``           |
-+| ``...``                           |                 |                      | ``T...`` (where ``T``             |
- | (variadic function specification) |                 |                      | is one of the above types,        |
- |                                   |                 |                      | variadic functions of different   |
- |                                   |                 |                      | argument types are not supported) |
-diff --git a/doc/manual/documentation.rst b/doc/manual/documentation.rst
-index 7c6306f..08d9b4e 100644
---- a/doc/manual/documentation.rst
-+++ b/doc/manual/documentation.rst
-@@ -123,6 +123,27 @@ Or for use with Julia's metaprogramming functionality:
-     @doc "`add(a,b)` adds `a` and `b` together" add
-     @doc "`subtract(a,b)` subtracts `b` from `a`" subtract
- 
-+Documentation written in non-toplevel blocks, such as ``if``, ``for``, and ``let``, are not
-+automatically added to the documentation system. ``@doc`` must be used in these cases. For
-+example:
-+
-+.. code-block:: julia
-+
-+    if VERSION > v"0.4"
-+        "..."
-+        f(x) = x
-+    end
-+
-+will not add any documentation to ``f`` even when the condition is ``true`` and must instead
-+be written as:
-+
-+.. code-block:: julia
-+
-+    if VERSION > v"0.4"
-+        @doc "..." ->
-+        f(x) = x
-+    end
-+
- Syntax Guide
- ------------
- 
-@@ -256,6 +277,26 @@ Modules
- Adds docstring ``"..."`` to the ``Module`` ``M``. Adding the docstring above the ``Module``
- is the preferred syntax, however both are equivalent.
- 
-+.. code-block:: julia
-+
-+    "..."
-+    baremodule M
-+    # ...
-+    end
-+
-+    baremodule M
-+
-+    import Base: call, @doc
-+
-+    "..."
-+    f(x) = x
-+
-+    end
-+
-+Documenting a ``baremodule`` by placing a docstring above the expression automatically
-+imports ``call`` and ``@doc`` into the module. These imports must be done manually when the
-+module expression is not documented. Empty ``baremodule``\ s cannot be documented.
-+
- Global Variables
- ~~~~~~~~~~~~~~~~
- 
-diff --git a/doc/manual/embedding.rst b/doc/manual/embedding.rst
-index 4cfd160..4c6dc3c 100644
---- a/doc/manual/embedding.rst
-+++ b/doc/manual/embedding.rst
-@@ -37,7 +37,7 @@ In order to build this program you have to put the path to the Julia header into
- 
-     gcc -o test -I$JULIA_DIR/include/julia -L$JULIA_DIR/usr/lib -ljulia test.c
- 
--Alternatively, look at the ``embedding.c`` program in the Julia source tree in the ``examples/`` folder. The file ``ui/repl.c`` program is another simple example of how to set ``jl_compileropts`` options while linking against ``libjulia``.
-+Alternatively, look at the ``embedding.c`` program in the Julia source tree in the ``examples/`` folder. The file ``ui/repl.c`` program is another simple example of how to set ``jl_options`` options while linking against ``libjulia``.
- 
- The first thing that has to be done before calling any other Julia C function is to initialize Julia. This is done by calling ``jl_init``, which takes as argument a C string (``const char*``) to the location where Julia is installed. When the argument is ``NULL``, Julia tries to determine the install location automatically.
- 
-diff --git a/doc/manual/faq.rst b/doc/manual/faq.rst
-index 48b9d15..0602394 100644
---- a/doc/manual/faq.rst
-+++ b/doc/manual/faq.rst
-@@ -748,7 +748,7 @@ To prevent this, we can add an inner constructor::
- 
- The inner constructor requires that the element type of ``A`` be ``T``.
- 
--.. _man-packages:
-+.. _faq-packages:
- 
- Packages and Modules
- --------------------
-diff --git a/doc/manual/parallel-computing.rst b/doc/manual/parallel-computing.rst
-index bd7267a..305ce9a 100644
---- a/doc/manual/parallel-computing.rst
-+++ b/doc/manual/parallel-computing.rst
-@@ -450,7 +450,7 @@ Channels provide for a fast means of inter-task communication. A
- ``Channel(T::Type, n::Int)`` is a shared queue of maximum length ``n``
- holding objects of type ``T``. Multiple readers can read off the channel
- via ``fetch`` and ``take!``. Multiple writers can add to the channel via
--``put!``. ``isready`` tests for the prescence of any object in
-+``put!``. ``isready`` tests for the presence of any object in
- the channel, while ``wait`` waits for an object to become available.
- ``close`` closes a Channel. On a closed channel, ``put!`` will fail,
- while ``take!`` and ``fetch`` successfully return any existing values
-diff --git a/doc/manual/types.rst b/doc/manual/types.rst
-index 8429e96..93440d9 100644
---- a/doc/manual/types.rst
-+++ b/doc/manual/types.rst
-@@ -1208,7 +1208,7 @@ As it happens, types are all composite values and thus all have a type of
-     julia> typeof(DataType)
-     DataType
- 
--    julia> typeof(UnionType)
-+    julia> typeof(Union)
-     DataType
- 
- :obj:`DataType` is its own type.
-diff --git a/doc/stdlib/arrays.rst b/doc/stdlib/arrays.rst
-index 2bb990d..3f855a4 100644
---- a/doc/stdlib/arrays.rst
-+++ b/doc/stdlib/arrays.rst
-@@ -119,9 +119,9 @@ Basic functions
- 
-    .. Docstring generated from Julia source
- 
--   Returns a tuple of subscripts into an array with dimensions ``dims``, corresponding to the linear index ``index``
-+   Returns a tuple of subscripts into an array with dimensions ``dims``\ , corresponding to the linear index ``index``\ .
- 
--   **Example** ``i, j, ... = ind2sub(size(A), indmax(A))`` provides the indices of the maximum element
-+   **Example**: ``i, j, ... = ind2sub(size(A), indmax(A))`` provides the indices of the maximum element
- 
- .. function:: ind2sub(a, index) -> subscripts
- 
-diff --git a/doc/stdlib/base.rst b/doc/stdlib/base.rst
-index 7eec026..931f92c 100644
---- a/doc/stdlib/base.rst
-+++ b/doc/stdlib/base.rst
-@@ -112,6 +112,12 @@ Getting Around
- 
-    Return a string with the contents of the operating system clipboard ("paste").
- 
-+.. function:: reload(name::AbstractString)
-+
-+   .. Docstring generated from Julia source
-+
-+   Force reloading of a package, even if it has been loaded before. This is intended for use during package development as code is modified.
-+
- .. function:: require(module::Symbol)
- 
-    .. Docstring generated from Julia source
-@@ -122,7 +128,7 @@ Getting Around
- 
-    When searching for files, ``require`` first looks in the current working directory, then looks for package code under ``Pkg.dir()``\ , then tries paths in the global array ``LOAD_PATH``\ .
- 
--.. function:: Base.compilecache(module::Symbol)
-+.. function:: Base.compilecache(module::ByteString)
- 
-    .. Docstring generated from Julia source
- 
-@@ -394,19 +400,15 @@ All Objects
- 
-    .. Docstring generated from Julia source
- 
--   If the argument is a type, return a "larger" type (for numeric types, this will be
--   a type with at least as much range and precision as the argument, and usually more).
--   Otherwise the argument ``x`` is converted to ``widen(typeof(x))``.
-+   If the argument is a type, return a "larger" type (for numeric types, this will be a type with at least as much range and precision as the argument, and usually more). Otherwise the argument ``x`` is converted to ``widen(typeof(x))``\ .
- 
-    .. doctest::
- 
--      julia> widen(Int32)
--      Int64
--
--   .. doctest::
-+       julia> widen(Int32)
-+       Int64
- 
--      julia> widen(1.5f0)
--      1.5
-+       julia> widen(1.5f0)
-+       1.5
- 
- .. function:: identity(x)
- 
-@@ -523,27 +525,26 @@ Types
- 
-    .. Docstring generated from Julia source
- 
--   The byte offset of each field of a type relative to the data start. For example, we could use it
--   in the following manner to summarize information about a struct type:
-+   The byte offset of each field of a type relative to the data start. For example, we could use it in the following manner to summarize information about a struct type:
- 
-    .. doctest::
- 
--      julia> structinfo(T) = [zip(fieldoffsets(T),fieldnames(T),T.types)...];
--
--      julia> structinfo(StatStruct)
--      12-element Array{Tuple{Int64,Symbol,DataType},1}:
--       (0,:device,UInt64)
--       (8,:inode,UInt64)
--       (16,:mode,UInt64)
--       (24,:nlink,Int64)
--       (32,:uid,UInt64)
--       (40,:gid,UInt64)
--       (48,:rdev,UInt64)
--       (56,:size,Int64)
--       (64,:blksize,Int64)
--       (72,:blocks,Int64)
--       (80,:mtime,Float64)
--       (88,:ctime,Float64)
-+       julia> structinfo(T) = [zip(fieldoffsets(T),fieldnames(T),T.types)...];
-+
-+       julia> structinfo(StatStruct)
-+       12-element Array{Tuple{Int64,Symbol,DataType},1}:
-+        (0,:device,UInt64)
-+        (8,:inode,UInt64)
-+        (16,:mode,UInt64)
-+        (24,:nlink,Int64)
-+        (32,:uid,UInt64)
-+        (40,:gid,UInt64)
-+        (48,:rdev,UInt64)
-+        (56,:size,Int64)
-+        (64,:blksize,Int64)
-+        (72,:blocks,Int64)
-+        (80,:mtime,Float64)
-+        (88,:ctime,Float64)
- 
- .. function:: fieldtype(T, name::Symbol | index::Int)
- 
-@@ -562,15 +563,15 @@ Types
- 
-    .. Docstring generated from Julia source
- 
--   Return ``true`` if ``T`` is a "plain data" type, meaning it is immutable and contains no references to other values. Typical examples are numeric types such as ``UInt8``, ``Float64``, and ``Complex{Float64}``.
-+   Return ``true`` if ``T`` is a "plain data" type, meaning it is immutable and contains no references to other values. Typical examples are numeric types such as ``UInt8``\ , ``Float64``\ , and ``Complex{Float64}``\ .
- 
-    .. doctest::
- 
--      julia> isbits(Complex{Float64})
--      true
-+       julia> isbits(Complex{Float64})
-+       true
- 
--      julia> isbits(Complex)
--      false
-+       julia> isbits(Complex)
-+       false
- 
- .. function:: isleaftype(T)
- 
-@@ -640,15 +641,15 @@ Generic Functions
- 
-    .. doctest::
- 
--   	julia> function f(x, y)
--   	           x + y
--   	       end;
-+       julia> function f(x, y)
-+                  x + y
-+              end;
- 
--   	julia> applicable(f, 1)
--   	false
-+       julia> applicable(f, 1)
-+       false
- 
--   	julia> applicable(f, 1, 2)
--   	true
-+       julia> applicable(f, 1, 2)
-+       true
- 
- .. function:: invoke(f, (types...), args...)
- 
-@@ -664,8 +665,8 @@ Generic Functions
- 
-    .. doctest::
- 
--      julia> [1:5;] |> x->x.^2 |> sum |> inv
--      0.01818181818181818
-+       julia> [1:5;] |> x->x.^2 |> sum |> inv
-+       0.01818181818181818
- 
- .. function:: call(x, args...)
- 
-@@ -867,36 +868,25 @@ System
- 
-    .. Docstring generated from Julia source
- 
--   Create a pipeline from a data source to a destination. The source and destination can
--   be commands, I/O streams, strings, or results of other ``pipeline`` calls. At least one
--   argument must be a command. Strings refer to filenames.
--   When called with more than two arguments, they are chained together from left to right.
--   For example ``pipeline(a,b,c)`` is equivalent to ``pipeline(pipeline(a,b),c)``. This provides a more
--   concise way to specify multi-stage pipelines.
-+   Create a pipeline from a data source to a destination. The source and destination can be commands, I/O streams, strings, or results of other ``pipeline`` calls. At least one argument must be a command. Strings refer to filenames. When called with more than two arguments, they are chained together from left to right. For example ``pipeline(a,b,c)`` is equivalent to ``pipeline(pipeline(a,b),c)``\ . This provides a more concise way to specify multi-stage pipelines.
- 
-    **Examples**:
-+
-      * ``run(pipeline(`ls`, `grep xyz`))``
-      * ``run(pipeline(`ls`, "out.txt"))``
-      * ``run(pipeline("out.txt", `grep xyz`))``
- 
--
- .. function:: pipeline(command; stdin, stdout, stderr, append=false)
- 
-    .. Docstring generated from Julia source
- 
--   Redirect I/O to or from the given ``command``. Keyword arguments specify which of
--   the command's streams should be redirected. ``append`` controls whether file output
--   appends to the file.
--   This is a more general version of the 2-argument ``pipeline`` function.
--   ``pipeline(from, to)`` is equivalent to ``pipeline(from, stdout=to)`` when ``from`` is a
--   command, and to ``pipe(to, stdin=from)`` when ``from`` is another kind of
--   data source.
-+   Redirect I/O to or from the given ``command``\ . Keyword arguments specify which of the command's streams should be redirected. ``append`` controls whether file output appends to the file. This is a more general version of the 2-argument ``pipeline`` function. ``pipeline(from, to)`` is equivalent to ``pipeline(from, stdout=to)`` when ``from`` is a command, and to ``pipe(to, stdin=from)`` when ``from`` is another kind of data source.
- 
-    **Examples**:
-+
-      * ``run(pipeline(`dothings`, stdout="out.txt", stderr="errs.txt"))``
-      * ``run(pipeline(`update`, stdout="log.txt", append=true))``
- 
--
- .. function:: gethostname() -> AbstractString
- 
-    .. Docstring generated from Julia source
-diff --git a/doc/stdlib/collections.rst b/doc/stdlib/collections.rst
-index d046422..ab19b3c 100644
---- a/doc/stdlib/collections.rst
-+++ b/doc/stdlib/collections.rst
-@@ -63,14 +63,14 @@ type.
- 
-    .. doctest::
- 
--   	julia> a = ["a", "b", "c"];
-+       julia> a = ["a", "b", "c"];
- 
--   	julia> for (index, value) in enumerate(a)
--                   println("$index $value")
--               end
--        1 a
--        2 b
--        3 c
-+       julia> for (index, value) in enumerate(a)
-+                  println("$index $value")
-+              end
-+       1 a
-+       2 b
-+       3 c
- 
- .. function:: rest(iter, state)
- 
-@@ -136,11 +136,11 @@ General Collections
- 
-    .. doctest::
- 
--   	julia> isempty([])
--   	true
-+       julia> isempty([])
-+       true
- 
--   	julia> isempty([1 2 3])
--   	false
-+       julia> isempty([1 2 3])
-+       false
- 
- .. function:: empty!(collection) -> collection
- 
-@@ -162,8 +162,8 @@ General Collections
- 
-    .. doctest::
- 
--   	julia> endof([1,2,4])
--   	3
-+       julia> endof([1,2,4])
-+       3
- 
- Fully implemented by:
- 
-@@ -483,13 +483,13 @@ Iterable Collections
- 
-    .. Docstring generated from Julia source
- 
--   Test whether all elements of a boolean collection are ``true``.
-+   Test whether all elements of a boolean collection are ``true``\ .
- 
- .. function:: all(A, dims)
- 
-    .. Docstring generated from Julia source
- 
--   Test whether all values along the given dimensions of an array are ``true``.
-+   Test whether all values along the given dimensions of an array are ``true``\ .
- 
- .. function:: all!(r, A)
- 
-@@ -513,33 +513,32 @@ Iterable Collections
- 
-    .. Docstring generated from Julia source
- 
--   Determine whether predicate ``p`` returns ``true`` for all elements of ``itr``.
-+   Determine whether predicate ``p`` returns ``true`` for all elements of ``itr``\ .
- 
-    .. doctest::
- 
--   	julia> all(i->(4<=i<=6), [4,5,6])
--   	true
-+       julia> all(i->(4<=i<=6), [4,5,6])
-+       true
- 
- .. function:: map(f, c...) -> collection
- 
-    .. Docstring generated from Julia source
- 
--   Transform collection ``c`` by applying ``f`` to each element.
--   For multiple collection arguments, apply ``f`` elementwise.
-+   Transform collection ``c`` by applying ``f`` to each element. For multiple collection arguments, apply ``f`` elementwise.
- 
-    .. doctest::
- 
--      julia> map((x) -> x * 2, [1, 2, 3])
--      3-element Array{Int64,1}:
--       2
--       4
--       6
-+       julia> map((x) -> x * 2, [1, 2, 3])
-+       3-element Array{Int64,1}:
-+        2
-+        4
-+        6
- 
--      julia> map(+, [1, 2, 3], [10, 20, 30])
--      3-element Array{Int64,1}:
--       11
--       22
--       33
-+       julia> map(+, [1, 2, 3], [10, 20, 30])
-+       3-element Array{Int64,1}:
-+        11
-+        22
-+        33
- 
- .. function:: map!(function, collection)
- 
-@@ -811,7 +810,7 @@ Given a dictionary ``D``, the syntax ``D[x]`` returns the value of key ``x`` (if
- 
-    .. Docstring generated from Julia source
- 
--   Delete and return the mapping for ``key`` if it exists in ``collection``, otherwise return ``default``, or throw an error if default is not specified.
-+   Delete and return the mapping for ``key`` if it exists in ``collection``\ , otherwise return ``default``\ , or throw an error if default is not specified.
- 
- .. function:: keys(collection)
- 
-@@ -833,27 +832,27 @@ Given a dictionary ``D``, the syntax ``D[x]`` returns the value of key ``x`` (if
- 
-    .. doctest::
- 
--     julia> a = Dict("foo" => 0.0, "bar" => 42.0)
--     Dict{ASCIIString,Float64} with 2 entries:
--       "bar" => 42.0
--       "foo" => 0.0
-+       julia> a = Dict("foo" => 0.0, "bar" => 42.0)
-+       Dict{ASCIIString,Float64} with 2 entries:
-+         "bar" => 42.0
-+         "foo" => 0.0
- 
--     julia> b = Dict(utf8("baz") => 17, utf8("bar") => 4711)
--     Dict{UTF8String,Int64} with 2 entries:
--       "bar" => 4711
--       "baz" => 17
-+       julia> b = Dict(utf8("baz") => 17, utf8("bar") => 4711)
-+       Dict{UTF8String,Int64} with 2 entries:
-+         "bar" => 4711
-+         "baz" => 17
- 
--     julia> merge(a, b)
--     Dict{UTF8String,Float64} with 3 entries:
--       "bar" => 4711.0
--       "baz" => 17.0
--       "foo" => 0.0
-+       julia> merge(a, b)
-+       Dict{UTF8String,Float64} with 3 entries:
-+         "bar" => 4711.0
-+         "baz" => 17.0
-+         "foo" => 0.0
- 
--     julia> merge(b, a)
--     Dict{UTF8String,Float64} with 3 entries:
--       "bar" => 42.0
--       "baz" => 17.0
--       "foo" => 0.0
-+       julia> merge(b, a)
-+       Dict{UTF8String,Float64} with 3 entries:
-+         "bar" => 42.0
-+         "baz" => 17.0
-+         "foo" => 0.0
- 
- .. function:: merge!(collection, others...)
- 
-@@ -1036,233 +1035,217 @@ Dequeues
- 
-    .. doctest::
- 
--     julia> A=[1, 2, 3, 4, 5, 6]
--     6-element Array{Int64,1}:
--      1
--      2
--      3
--      4
--      5
--      6
-+       julia> A=[1, 2, 3, 4, 5, 6]
-+       6-element Array{Int64,1}:
-+        1
-+        2
-+        3
-+        4
-+        5
-+        6
- 
--     julia> pop!(A)
--     6
-+       julia> pop!(A)
-+       6
- 
--     julia> A
--     5-element Array{Int64,1}:
--      1
--      2
--      3
--      4
--      5
-+       julia> A
-+       5-element Array{Int64,1}:
-+        1
-+        2
-+        3
-+        4
-+        5
- 
- .. function:: unshift!(collection, items...) -> collection
- 
-    .. Docstring generated from Julia source
- 
--   Insert one or more ``items`` at the beginning of ``collection``.
-+   Insert one or more ``items`` at the beginning of ``collection``\ .
- 
-    .. doctest::
- 
--     julia> unshift!([1, 2, 3, 4], 5, 6)
--     6-element Array{Int64,1}:
--      5
--      6
--      1
--      2
--      3
--      4
-+         julia> unshift!([1, 2, 3, 4], 5, 6)
-+         6-element Array{Int64,1}:
-+          5
-+          6
-+          1
-+          2
-+          3
-+          4
- 
- .. function:: shift!(collection) -> item
- 
-    .. Docstring generated from Julia source
- 
--   Remove the first ``item`` from ``collection``.
-+   Remove the first ``item`` from ``collection``\ .
- 
-    .. doctest::
- 
--     julia> A = [1, 2, 3, 4, 5, 6]
--     6-element Array{Int64,1}:
--      1
--      2
--      3
--      4
--      5
--      6
-+       julia> A = [1, 2, 3, 4, 5, 6]
-+       6-element Array{Int64,1}:
-+        1
-+        2
-+        3
-+        4
-+        5
-+        6
- 
--     julia> shift!(A)
--     1
-+       julia> shift!(A)
-+       1
- 
--     julia> A
--     5-element Array{Int64,1}:
--      2
--      3
--      4
--      5
--      6
-+       julia> A
-+       5-element Array{Int64,1}:
-+        2
-+        3
-+        4
-+        5
-+        6
- 
- .. function:: insert!(collection, index, item)
- 
-    .. Docstring generated from Julia source
- 
--   Insert an ``item`` into ``collection`` at the given ``index``.
--   ``index`` is the index of ``item`` in the resulting ``collection``.
-+   Insert an ``item`` into ``collection`` at the given ``index``\ . ``index`` is the index of ``item`` in the resulting ``collection``\ .
- 
-    .. doctest::
- 
--      julia> insert!([6, 5, 4, 2, 1], 4, 3)
--      6-element Array{Int64,1}:
--       6
--       5
--       4
--       3
--       2
--       1
-+       julia> insert!([6, 5, 4, 2, 1], 4, 3)
-+       6-element Array{Int64,1}:
-+        6
-+        5
-+        4
-+        3
-+        2
-+        1
- 
- .. function:: deleteat!(collection, index)
- 
-    .. Docstring generated from Julia source
- 
--   Remove the item at the given ``index`` and return the modified ``collection``.
--   Subsequent items are shifted to fill the resulting gap.
-+   Remove the item at the given ``index`` and return the modified ``collection``\ . Subsequent items are shifted to fill the resulting gap.
- 
-    .. doctest::
- 
--     julia> deleteat!([6, 5, 4, 3, 2, 1], 2)
--     5-element Array{Int64,1}:
--      6
--      4
--      3
--      2
--      1
--
-+       julia> deleteat!([6, 5, 4, 3, 2, 1], 2)
-+       5-element Array{Int64,1}:
-+        6
-+        4
-+        3
-+        2
-+        1
- 
- .. function:: deleteat!(collection, itr)
- 
-    .. Docstring generated from Julia source
- 
--   Remove the items at the indices given by ``itr``, and return the modified ``collection``.
--   Subsequent items are shifted to fill the resulting gap. ``itr`` must be sorted and unique.
-+   Remove the items at the indices given by ``itr``\ , and return the modified ``collection``\ . Subsequent items are shifted to fill the resulting gap. ``itr`` must be sorted and unique.
- 
-    .. doctest::
- 
--     julia> deleteat!([6, 5, 4, 3, 2, 1], 1:2:5)
--     3-element Array{Int64,1}:
--      5
--      3
--      1
--
--   .. doctest::
-+       julia> deleteat!([6, 5, 4, 3, 2, 1], 1:2:5)
-+       3-element Array{Int64,1}:
-+        5
-+        3
-+        1
- 
--     julia> deleteat!([6, 5, 4, 3, 2, 1], (2, 2))
--     ERROR: ArgumentError: indices must be unique and sorted
--      in deleteat! at array.jl:543
-+       julia> deleteat!([6, 5, 4, 3, 2, 1], (2, 2))
-+       ERROR: ArgumentError: indices must be unique and sorted
-+        in deleteat! at array.jl:543
- 
- .. function:: splice!(collection, index, [replacement]) -> item
- 
-    .. Docstring generated from Julia source
- 
--   Remove the item at the given index, and return the removed item. Subsequent items
--   are shifted down to fill the resulting gap. If specified, replacement values from
--   an ordered collection will be spliced in place of the removed item.
-+   Remove the item at the given index, and return the removed item. Subsequent items are shifted down to fill the resulting gap. If specified, replacement values from an ordered collection will be spliced in place of the removed item.
- 
-    .. doctest::
- 
--     julia> A = [6, 5, 4, 3, 2, 1]; splice!(A, 5)
--     2
-+       julia> A = [6, 5, 4, 3, 2, 1]; splice!(A, 5)
-+       2
- 
--     julia> A
--     5-element Array{Int64,1}:
--      6
--      5
--      4
--      3
--      1
-+       julia> A
-+       5-element Array{Int64,1}:
-+        6
-+        5
-+        4
-+        3
-+        1
- 
--     julia> splice!(A, 5, -1)
--     1
-+       julia> splice!(A, 5, -1)
-+       1
- 
--     julia> A
--     5-element Array{Int64,1}:
--       6
--       5
--       4
--       3
--      -1
-+       julia> A
-+       5-element Array{Int64,1}:
-+         6
-+         5
-+         4
-+         3
-+        -1
- 
--     julia> splice!(A, 1, [-1, -2, -3])
--     6
-+       julia> splice!(A, 1, [-1, -2, -3])
-+       6
- 
--     julia> A
--     7-element Array{Int64,1}:
--      -1
--      -2
--      -3
--       5
--       4
--       3
--      -1
-+       julia> A
-+       7-element Array{Int64,1}:
-+        -1
-+        -2
-+        -3
-+         5
-+         4
-+         3
-+        -1
- 
--   To insert ``replacement`` before an index ``n`` without removing any items, use
--   ``splice!(collection, n:n-1, replacement)``.
-+   To insert ``replacement`` before an index ``n`` without removing any items, use ``splice!(collection, n:n-1, replacement)``\ .
- 
- .. function:: splice!(collection, range, [replacement]) -> items
- 
-    .. Docstring generated from Julia source
- 
--   Remove items in the specified index range, and return a collection containing the
--   removed items. Subsequent items are shifted down to fill the resulting gap.
--   If specified, replacement values from an ordered collection will be spliced in place
--   of the removed items.
-+   Remove items in the specified index range, and return a collection containing the removed items. Subsequent items are shifted down to fill the resulting gap. If specified, replacement values from an ordered collection will be spliced in place of the removed items.
- 
--   To insert ``replacement`` before an index ``n`` without removing any items, use
--   ``splice!(collection, n:n-1, replacement)``.
-+   To insert ``replacement`` before an index ``n`` without removing any items, use ``splice!(collection, n:n-1, replacement)``\ .
- 
-    .. doctest::
- 
--     julia> splice!(A, 4:3, 2)
--     0-element Array{Int64,1}
-+       julia> splice!(A, 4:3, 2)
-+       0-element Array{Int64,1}
- 
--     julia> A
--     8-element Array{Int64,1}:
--      -1
--      -2
--      -3
--       2
--       5
--       4
--       3
--      -1
-+       julia> A
-+       8-element Array{Int64,1}:
-+        -1
-+        -2
-+        -3
-+         2
-+         5
-+         4
-+         3
-+        -1
- 
- .. function:: resize!(collection, n) -> collection
- 
-    .. Docstring generated from Julia source
- 
--   Resize ``collection`` to contain ``n`` elements.
--   If ``n`` is smaller than the current collection length, the first ``n``
--   elements will be retained. If ``n`` is larger, the new elements are not
--   guaranteed to be initialized.
-+   Resize ``collection`` to contain ``n`` elements. If ``n`` is smaller than the current collection length, the first ``n`` elements will be retained. If ``n`` is larger, the new elements are not guaranteed to be initialized.
- 
-    .. doctest::
- 
--     julia> resize!([6, 5, 4, 3, 2, 1], 3)
--     3-element Array{Int64,1}:
--      6
--      5
--      4
-+       julia> resize!([6, 5, 4, 3, 2, 1], 3)
-+       3-element Array{Int64,1}:
-+        6
-+        5
-+        4
- 
-    .. code-block:: julia
- 
--     julia> resize!([6, 5, 4, 3, 2, 1], 8)
--     8-element Array{Int64,1}:
--      6
--      5
--      4
--      3
--      2
--      1
--      0
--      0
-+       julia> resize!([6, 5, 4, 3, 2, 1], 8)
-+       8-element Array{Int64,1}:
-+        6
-+        5
-+        4
-+        3
-+        2
-+        1
-+        0
-+        0
- 
- .. function:: append!(collection, collection2) -> collection.
- 
-@@ -1298,15 +1281,15 @@ Dequeues
- 
-    .. Docstring generated from Julia source
- 
--   Insert the elements of ``items`` to the beginning of ``collection``.
-+   Insert the elements of ``items`` to the beginning of ``collection``\ .
- 
-    .. doctest::
- 
--      julia> prepend!([3],[1,2])
--      3-element Array{Int64,1}:
--       1
--       2
--       3
-+       julia> prepend!([3],[1,2])
-+       3-element Array{Int64,1}:
-+        1
-+        2
-+        3
- 
- Fully implemented by:
- 
-diff --git a/doc/stdlib/linalg.rst b/doc/stdlib/linalg.rst
-index de8b4bb..a04a057 100644
---- a/doc/stdlib/linalg.rst
-+++ b/doc/stdlib/linalg.rst
-@@ -25,7 +25,7 @@ Linear algebra functions in Julia are largely implemented by calling functions f
- 
-    Matrix division using a polyalgorithm. For input matrices ``A`` and ``B``, the result ``X`` is such that ``A*X == B`` when ``A`` is square.  The solver that is used depends upon the structure of ``A``.  A direct solver is used for upper or lower triangular ``A``.  For Hermitian ``A`` (equivalent to symmetric ``A`` for non-complex ``A``) the ``BunchKaufman`` factorization is used.  Otherwise an LU factorization is used. For rectangular ``A`` the result is the minimum-norm least squares solution computed by a pivoted QR factorization of ``A`` and a rank estimate of ``A`` based on the R factor.
- 
--   When ``A`` is sparse, a similar polyalgorithm is used. For indefinite matrices, the LDLt factorization does not use pivoting during the numerical factorization and therefore the procedure can fail even for invertible matrices.
-+   When ``A`` is sparse, a similar polyalgorithm is used. For indefinite matrices, the ``LDLt`` factorization does not use pivoting during the numerical factorization and therefore the procedure can fail even for invertible matrices.
- 
- .. function:: dot(x, y)
-               ⋅(x,y)
-@@ -139,17 +139,17 @@ Linear algebra functions in Julia are largely implemented by calling functions f
- 
-    ``cholfact!`` is the same as :func:`cholfact`, but saves space by overwriting the input ``A``, instead of creating a copy. ``cholfact!`` can also reuse the symbolic factorization from a different matrix ``F`` with the same structure when used as: ``cholfact!(F::CholmodFactor, A)``.
- 
--.. function:: ldltfact(A) -> LDLtFactorization
-+.. function:: ldltfact(::SymTridiagonal) -> LDLt
- 
-    .. Docstring generated from Julia source
- 
--   Compute a factorization of a positive definite matrix ``A`` such that ``A=L*Diagonal(d)*L'`` where ``L`` is a unit lower triangular matrix and ``d`` is a vector with non-negative elements.
-+   Compute an ``LDLt`` factorization of a real symmetric tridiagonal matrix such that ``A = L*Diagonal(d)*L'`` where ``L`` is a unit lower triangular matrix and ``d`` is a vector. The main use of an ``LDLt`` factorization ``F = ldltfact(A)`` is to solve the linear system of equations ``Ax = b`` with ``F\b``\ .
- 
--.. function:: ldltfact(A; shift=0, perm=Int[]) -> CHOLMOD.Factor
-+.. function:: ldltfact(::Union{SparseMatrixCSC,Symmetric{Float64,SparseMatrixCSC{Flaot64,SuiteSparse_long}},Hermitian{Complex{Float64},SparseMatrixCSC{Complex{Float64},SuiteSparse_long}}}; shift=0, perm=Int[]) -> CHOLMOD.Factor
- 
-    .. Docstring generated from Julia source
- 
--   Compute the LDLt factorization of a sparse symmetric or Hermitian matrix ``A``\ . A fill-reducing permutation is used. ``F = ldltfact(A)`` is most frequently used to solve systems of equations with ``F\b``\ , but also the methods ``diag``\ , ``det``\ , ``logdet`` are defined for ``F``\ . You can also extract individual factors from ``F``\ , using ``F[:L]``\ . However, since pivoting is on by default, the factorization is internally represented as ``A == P'*L*D*L'*P`` with a permutation matrix ``P``\ ; using just ``L`` without accounting for ``P`` will give incorrect answers. To include the effects of permutation, it's typically preferable to extact "combined" factors like ``PtL = F[:PtL]`` (the equivalent of ``P'*L``\ ) and ``LtP = F[:UP]`` (the equivalent of ``L'*P``\ ). The complete list of supported factors is ``:L, :PtL, :D, :UP, :U, :LD, :DU, :PtLD, :DUP``\ .
-+   Compute the ``LDLt`` factorization of a sparse symmetric or Hermitian matrix. A fill-reducing permutation is used. ``F = ldltfact(A)`` is most frequently used to solve systems of equations ``A*x = b`` with ``F\b``\ , but also the methods ``diag``\ , ``det``\ , ``logdet`` are defined for ``F``\ . You can also extract individual factors from ``F``\ , using ``F[:L]``\ . However, since pivoting is on by default, the factorization is internally represented as ``A == P'*L*D*L'*P`` with a permutation matrix ``P``\ ; using just ``L`` without accounting for ``P`` will give incorrect answers. To include the effects of permutation, it's typically preferable to extact "combined" factors like ``PtL = F[:PtL]`` (the equivalent of ``P'*L``\ ) and ``LtP = F[:UP]`` (the equivalent of ``L'*P``\ ). The complete list of supported factors is ``:L, :PtL, :D, :UP, :U, :LD, :DU, :PtLD, :DUP``\ .
- 
-    Setting optional ``shift`` keyword argument computes the factorization of ``A+shift*I`` instead of ``A``\ . If the ``perm`` argument is nonempty, it should be a permutation of ``1:size(A,1)`` giving the ordering to use (instead of CHOLMOD's default AMD ordering).
- 
-@@ -653,10 +653,11 @@ Linear algebra functions in Julia are largely implemented by calling functions f
-    .. Docstring generated from Julia source
- 
-    .. math::
--      \kappa_S(M, p) & = \left\Vert \left\vert M \right\vert \left\vert M^{-1} \right\vert  \right\Vert_p \\
--      \kappa_S(M, x, p) & = \left\Vert \left\vert M \right\vert \left\vert M^{-1} \right\vert \left\vert x \right\vert \right\Vert_p
- 
--   Skeel condition number :math:`\kappa_S` of the matrix ``M``, optionally with respect to the vector ``x``, as computed using the operator ``p``-norm. ``p`` is ``Inf`` by default, if not provided. Valid values for ``p`` are ``1``, ``2``, or ``Inf``.
-+       \kappa_S(M, p) & = \left\Vert \left\vert M \right\vert \left\vert M^{-1} \right\vert  \right\Vert_p \\
-+       \kappa_S(M, x, p) & = \left\Vert \left\vert M \right\vert \left\vert M^{-1} \right\vert \left\vert x \right\vert \right\Vert_p
-+
-+   Skeel condition number :math:`\kappa_S` of the matrix ``M``\ , optionally with respect to the vector ``x``\ , as computed using the operator ``p``\ -norm. ``p`` is ``Inf`` by default, if not provided. Valid values for ``p`` are ``1``\ , ``2``\ , or ``Inf``\ .
- 
-    This quantity is also known in the literature as the Bauer condition number, relative condition number, or componentwise relative condition number.
- 
-@@ -753,21 +754,22 @@ Linear algebra functions in Julia are largely implemented by calling functions f
- 
-    Concatenate matrices block-diagonally. Currently only implemented for sparse matrices.
- 
--.. function:: linreg(x, y) -> [a; b]
-+.. function:: linreg(x, y) -> a, b
- 
-    .. Docstring generated from Julia source
- 
--   Linear Regression. Returns ``a`` and ``b`` such that ``a+b*x`` is the closest line to the given points ``(x,y)``. In other words, this function determines parameters ``[a, b]`` that minimize the squared error between ``y`` and ``a+b*x``.
-+   Perform linear regression. Returns ``a`` and ``b`` such that ``a + b*x`` is the closest straight line to the given points ``(x, y)``\ , i.e., such that the squared error between ``y`` and ``a + b*x`` is minimized.
- 
--   **Example**::
-+   **Example**:
- 
--      using PyPlot;
--      x = float([1:12])
--      y = [5.5; 6.3; 7.6; 8.8; 10.9; 11.79; 13.48; 15.02; 17.77; 20.81; 22.0; 22.99]
--      a, b = linreg(x,y) # Linear regression
--      plot(x, y, "o") # Plot (x,y) points
--      plot(x, [a+b*i for i in x]) # Plot the line determined by the linear regression
-+   .. code-block:: julia
- 
-+          using PyPlot
-+          x = [1.0:12.0;]
-+          y = [5.5, 6.3, 7.6, 8.8, 10.9, 11.79, 13.48, 15.02, 17.77, 20.81, 22.0, 22.99]
-+          a, b = linreg(x, y)          # Linear regression
-+          plot(x, y, "o")              # Plot (x, y) points
-+          plot(x, [a+b*i for i in x])  # Plot line determined by linear regression
- 
- .. function:: linreg(x, y, w)
- 
-diff --git a/doc/stdlib/math.rst b/doc/stdlib/math.rst
-index df7579a..b17c8b2 100644
---- a/doc/stdlib/math.rst
-+++ b/doc/stdlib/math.rst
-@@ -34,8 +34,7 @@ Mathematical Operators
- 
-    .. Docstring generated from Julia source
- 
--   Multiplication operator. ``x*y*z*...`` calls this function with all arguments, i.e.
--   ``*(x, y, z, ...)``.
-+   Multiplication operator. ``x*y*z*...`` calls this function with all arguments, i.e. ``*(x, y, z, ...)``\ .
- 
- .. _/:
- .. function:: /(x, y)
-@@ -410,129 +409,128 @@ Mathematical Operators
- 
-    Short-circuiting boolean OR
- 
--.. function:: A_ldiv_Bc(a,b)
-+.. function:: A_ldiv_Bc(A, B)
- 
-    .. Docstring generated from Julia source
- 
--   Matrix operator A \\ B\ :sup:`H`
-+   For matrices or vectors :math:`A` and :math:`B`\ , calculates :math:`A` \\ :math:`Bᴴ`
- 
--.. function:: A_ldiv_Bt(a,b)
-+.. function:: A_ldiv_Bt(A, B)
- 
-    .. Docstring generated from Julia source
- 
--   Matrix operator A \\ B\ :sup:`T`
-+   For matrices or vectors :math:`A` and :math:`B`\ , calculates :math:`A` \\ :math:`Bᵀ`
- 
- .. function:: A_mul_B!(Y, A, B) -> Y
- 
-    .. Docstring generated from Julia source
- 
--   Calculates the matrix-matrix or matrix-vector product *A B* and stores the
--   result in *Y*, overwriting the existing value of *Y*.
-+   Calculates the matrix-matrix or matrix-vector product :math:`A⋅B` and stores the result in :math:`Y`\ , overwriting the existing value of :math:`Y`\ .
- 
-    .. doctest::
- 
--      julia> A=[1.0 2.0; 3.0 4.0]; B=[1.0 1.0; 1.0 1.0]; A_mul_B!(B, A, B);
-+       julia> A=[1.0 2.0; 3.0 4.0]; B=[1.0 1.0; 1.0 1.0]; A_mul_B!(B, A, B);
- 
--      julia> B
--      2x2 Array{Float64,2}:
--       3.0  3.0
--       7.0  7.0
-+       julia> B
-+       2x2 Array{Float64,2}:
-+        3.0  3.0
-+        7.0  7.0
- 
--.. function:: A_mul_Bc(...)
-+.. function:: A_mul_Bc(A, B)
- 
-    .. Docstring generated from Julia source
- 
--   Matrix operator A B\ :sup:`H`
-+   For matrices or vectors :math:`A` and :math:`B`\ , calculates :math:`A⋅Bᴴ`
- 
--.. function:: A_mul_Bt(...)
-+.. function:: A_mul_Bt(A, B)
- 
-    .. Docstring generated from Julia source
- 
--   Matrix operator A B\ :sup:`T`
-+   For matrices or vectors :math:`A` and :math:`B`\ , calculates :math:`A⋅Bᵀ`
- 
--.. function:: A_rdiv_Bc(...)
-+.. function:: A_rdiv_Bc(A, B)
- 
-    .. Docstring generated from Julia source
- 
--   Matrix operator A / B\ :sup:`H`
-+   For matrices or vectors :math:`A` and :math:`B`\ , calculates :math:`A / Bᴴ`
- 
--.. function:: A_rdiv_Bt(a,b)
-+.. function:: A_rdiv_Bt(A, B)
- 
-    .. Docstring generated from Julia source
- 
--   Matrix operator A / B\ :sup:`T`
-+   For matrices or vectors :math:`A` and :math:`B`\ , calculates :math:`A / Bᵀ`
- 
--.. function:: Ac_ldiv_B(...)
-+.. function:: Ac_ldiv_B(A, B)
- 
-    .. Docstring generated from Julia source
- 
--   Matrix operator A\ :sup:`H` \\ B
-+   For matrices or vectors :math:`A` and :math:`B`\ , calculates :math:`Aᴴ` \\ :math:`B`
- 
--.. function:: Ac_ldiv_Bc(...)
-+.. function:: Ac_ldiv_Bc(A, B)
- 
-    .. Docstring generated from Julia source
- 
--   Matrix operator A\ :sup:`H` \\ B\ :sup:`H`
-+   For matrices or vectors :math:`A` and :math:`B`\ , calculates :math:`Aᴴ` \\ :math:`Bᴴ`
- 
--.. function:: Ac_mul_B(...)
-+.. function:: Ac_mul_B(A, B)
- 
-    .. Docstring generated from Julia source
- 
--   Matrix operator A\ :sup:`H` B
-+   For matrices or vectors :math:`A` and :math:`B`\ , calculates :math:`Aᴴ⋅B`
- 
--.. function:: Ac_mul_Bc(...)
-+.. function:: Ac_mul_Bc(A, B)
- 
-    .. Docstring generated from Julia source
- 
--   Matrix operator A\ :sup:`H` B\ :sup:`H`
-+   For matrices or vectors :math:`A` and :math:`B`\ , calculates :math:`Aᴴ Bᴴ`
- 
--.. function:: Ac_rdiv_B(a,b)
-+.. function:: Ac_rdiv_B(A, B)
- 
-    .. Docstring generated from Julia source
- 
--   Matrix operator A\ :sup:`H` / B
-+   For matrices or vectors :math:`A` and :math:`B`\ , calculates :math:`Aᴴ / B`
- 
--.. function:: Ac_rdiv_Bc(a,b)
-+.. function:: Ac_rdiv_Bc(A, B)
- 
-    .. Docstring generated from Julia source
- 
--   Matrix operator A\ :sup:`H` / B\ :sup:`H`
-+   For matrices or vectors :math:`A` and :math:`B`\ , calculates :math:`Aᴴ / Bᴴ`
- 
--.. function:: At_ldiv_B(...)
-+.. function:: At_ldiv_B(A, B)
- 
-    .. Docstring generated from Julia source
- 
--   Matrix operator A\ :sup:`T` \\ B
-+   For matrices or vectors :math:`A` and :math:`B`\ , calculates :math:`Aᵀ` \\ :math:`B`
- 
--.. function:: At_ldiv_Bt(...)
-+.. function:: At_ldiv_Bt(A, B)
- 
-    .. Docstring generated from Julia source
- 
--   Matrix operator A\ :sup:`T` \\ B\ :sup:`T`
-+   For matrices or vectors :math:`A` and :math:`B`\ , calculates :math:`Aᵀ` \\ :math:`Bᵀ`
- 
--.. function:: At_mul_B(...)
-+.. function:: At_mul_B(A, B)
- 
-    .. Docstring generated from Julia source
- 
--   Matrix operator A\ :sup:`T` B
-+   For matrices or vectors :math:`A` and :math:`B`\ , calculates :math:`Aᵀ⋅B`
- 
--.. function:: At_mul_Bt(...)
-+.. function:: At_mul_Bt(A, B)
- 
-    .. Docstring generated from Julia source
- 
--   Matrix operator A\ :sup:`T` B\ :sup:`T`
-+   For matrices or vectors :math:`A` and :math:`B`\ , calculates :math:`Aᵀ⋅Bᵀ`
- 
--.. function:: At_rdiv_B(a,b)
-+.. function:: At_rdiv_B(A, B)
- 
-    .. Docstring generated from Julia source
- 
--   Matrix operator A\ :sup:`T` / B
-+   For matrices or vectors :math:`A` and :math:`B`\ , calculates :math:`Aᵀ / B`
- 
--.. function:: At_rdiv_Bt(a,b)
-+.. function:: At_rdiv_Bt(A, B)
- 
-    .. Docstring generated from Julia source
- 
--   Matrix operator A\ :sup:`T` / B\ :sup:`T`
-+   For matrices or vectors :math:`A` and :math:`B`\ , calculates :math:`Aᵀ / Bᵀ`
- 
- Mathematical Functions
- ----------------------
-@@ -589,13 +587,13 @@ Mathematical Functions
- 
-    .. Docstring generated from Julia source
- 
--   Compute :math:`\sin(\pi x)` more accurately than ``sin(pi*x)``, especially for large ``x``.
-+   Compute :math:`\sin(\pi x)` more accurately than ``sin(pi*x)``\ , especially for large ``x``\ .
- 
- .. function:: cospi(x)
- 
-    .. Docstring generated from Julia source
- 
--   Compute :math:`\cos(\pi x)` more accurately than ``cos(pi*x)``, especially for large ``x``.
-+   Compute :math:`\cos(\pi x)` more accurately than ``cos(pi*x)``\ , especially for large ``x``\ .
- 
- .. function:: sinh(x)
- 
-@@ -787,14 +785,13 @@ Mathematical Functions
- 
-    .. Docstring generated from Julia source
- 
--   Compute :math:`\sin(\pi x) / (\pi x)` if :math:`x \neq 0`, and :math:`1` if :math:`x = 0`.
-+   Compute :math:`\sin(\pi x) / (\pi x)` if :math:`x \neq 0`\ , and :math:`1` if :math:`x = 0`\ .
- 
- .. function:: cosc(x)
- 
-    .. Docstring generated from Julia source
- 
--   Compute :math:`\cos(\pi x) / x - \sin(\pi x) / (\pi x^2)` if :math:`x \neq 0`, and :math:`0`
--   if :math:`x = 0`. This is the derivative of ``sinc(x)``.
-+   Compute :math:`\cos(\pi x) / x - \sin(\pi x) / (\pi x^2)` if :math:`x \neq 0`\ , and :math:`0` if :math:`x = 0`\ . This is the derivative of ``sinc(x)``\ .
- 
- .. function:: deg2rad(x)
- 
-@@ -852,32 +849,31 @@ Mathematical Functions
- 
-    .. Docstring generated from Julia source
- 
--   Return ``(x,exp)`` such that ``x`` has a magnitude in the interval :math:`[1/2, 1)` or 0,
--   and val = :math:`x \times 2^{exp}`.
-+   Return ``(x,exp)`` such that ``x`` has a magnitude in the interval :math:`[1/2, 1)` or 0, and val = :math:`x \times 2^{exp}`\ .
- 
- .. function:: exp(x)
- 
-    .. Docstring generated from Julia source
- 
--   Compute :math:`e^x`
-+   Compute :math:`e^x`\ .
- 
- .. function:: exp2(x)
- 
-    .. Docstring generated from Julia source
- 
--   Compute :math:`2^x`
-+   Compute :math:`2^x`\ .
- 
- .. function:: exp10(x)
- 
-    .. Docstring generated from Julia source
- 
--   Compute :math:`10^x`
-+   Compute :math:`10^x`\ .
- 
- .. function:: ldexp(x, n)
- 
-    .. Docstring generated from Julia source
- 
--   Compute :math:`x \times 2^n`
-+   Compute :math:`x \times 2^n`\ .
- 
- .. function:: modf(x)
- 
-@@ -889,7 +885,7 @@ Mathematical Functions
- 
-    .. Docstring generated from Julia source
- 
--   Accurately compute :math:`e^x-1`
-+   Accurately compute :math:`e^x-1`\ .
- 
- .. function:: round([T,] x, [digits, [base]], [r::RoundingMode])
- 
-@@ -1092,7 +1088,7 @@ Mathematical Functions
- 
-    .. Docstring generated from Julia source
- 
--   Return zero if ``x==0`` and :math:`x/|x|` otherwise (i.e., ±1 for real ``x``).
-+   Return zero if ``x==0`` and :math:`x/|x|` otherwise (i.e., ±1 for real ``x``\ ).
- 
- .. function:: signbit(x)
- 
-@@ -1110,7 +1106,7 @@ Mathematical Functions
- 
-    .. Docstring generated from Julia source
- 
--   Return :math:`\sqrt{x}`. Throws ``DomainError`` for negative ``Real`` arguments. Use complex negative arguments instead.  The prefix operator ``√`` is equivalent to ``sqrt``.
-+   Return :math:`\sqrt{x}`\ . Throws ``DomainError`` for negative ``Real`` arguments. Use complex negative arguments instead.  The prefix operator ``√`` is equivalent to ``sqrt``\ .
- 
- .. function:: isqrt(n)
- 
-@@ -1122,59 +1118,49 @@ Mathematical Functions
- 
-    .. Docstring generated from Julia source
- 
--   Return :math:`x^{1/3}`.  The prefix operator ``∛`` is equivalent to ``cbrt``.
-+   Return :math:`x^{1/3}`\ .  The prefix operator ``∛`` is equivalent to ``cbrt``\ .
- 
- .. function:: erf(x)
- 
-    .. Docstring generated from Julia source
- 
--   Compute the error function of ``x``, defined by
--   :math:`\frac{2}{\sqrt{\pi}} \int_0^x e^{-t^2} dt`
--   for arbitrary complex ``x``.
-+   Compute the error function of ``x``\ , defined by :math:`\frac{2}{\sqrt{\pi}} \int_0^x e^{-t^2} dt` for arbitrary complex ``x``\ .
- 
- .. function:: erfc(x)
- 
-    .. Docstring generated from Julia source
- 
--   Compute the complementary error function of ``x``,
--   defined by :math:`1 - \operatorname{erf}(x)`.
-+   Compute the complementary error function of ``x``\ , defined by :math:`1 - \operatorname{erf}(x)`\ .
- 
- .. function:: erfcx(x)
- 
-    .. Docstring generated from Julia source
- 
--   Compute the scaled complementary error function of ``x``,
--   defined by :math:`e^{x^2} \operatorname{erfc}(x)`.  Note
--   also that :math:`\operatorname{erfcx}(-ix)` computes the
--   Faddeeva function :math:`w(x)`.
-+   Compute the scaled complementary error function of ``x``\ , defined by :math:`e^{x^2} \operatorname{erfc}(x)`\ .  Note also that :math:`\operatorname{erfcx}(-ix)` computes the Faddeeva function :math:`w(x)`\ .
- 
- .. function:: erfi(x)
- 
-    .. Docstring generated from Julia source
- 
--   Compute the imaginary error function of ``x``,
--   defined by :math:`-i \operatorname{erf}(ix)`.
-+   Compute the imaginary error function of ``x``\ , defined by :math:`-i \operatorname{erf}(ix)`\ .
- 
- .. function:: dawson(x)
- 
-    .. Docstring generated from Julia source
- 
--   Compute the Dawson function (scaled imaginary error function) of ``x``,
--   defined by :math:`\frac{\sqrt{\pi}}{2} e^{-x^2} \operatorname{erfi}(x)`.
-+   Compute the Dawson function (scaled imaginary error function) of ``x``\ , defined by :math:`\frac{\sqrt{\pi}}{2} e^{-x^2} \operatorname{erfi}(x)`\ .
- 
- .. function:: erfinv(x)
- 
-    .. Docstring generated from Julia source
- 
--   Compute the inverse error function of a real ``x``,
--   defined by :math:`\operatorname{erf}(\operatorname{erfinv}(x)) = x`.
-+   Compute the inverse error function of a real ``x``\ , defined by :math:`\operatorname{erf}(\operatorname{erfinv}(x)) = x`\ .
- 
- .. function:: erfcinv(x)
- 
-    .. Docstring generated from Julia source
- 
--   Compute the inverse error complementary function of a real ``x``,
--   defined by :math:`\operatorname{erfc}(\operatorname{erfcinv}(x)) = x`.
-+   Compute the inverse error complementary function of a real ``x``\ , defined by :math:`\operatorname{erfc}(\operatorname{erfcinv}(x)) = x`\ .
- 
- .. function:: real(z)
- 
-@@ -1210,7 +1196,7 @@ Mathematical Functions
- 
-    .. Docstring generated from Julia source
- 
--   Return :math:`\exp(iz)`.
-+   Return :math:`\exp(iz)`\ .
- 
- .. function:: binomial(n,k)
- 
-@@ -1239,14 +1225,14 @@ Mathematical Functions
- 
-    .. Docstring generated from Julia source
- 
--   Compute the prime factorization of an integer ``n``. Returns a dictionary. The keys of the dictionary correspond to the factors, and hence are of the same type as ``n``. The value associated with each key indicates the number of times the factor appears in the factorization.
-+   Compute the prime factorization of an integer ``n``\ . Returns a dictionary. The keys of the dictionary correspond to the factors, and hence are of the same type as ``n``\ . The value associated with each key indicates the number of times the factor appears in the factorization.
- 
-    .. doctest::
- 
--      julia> factor(100) # == 2*2*5*5
--      Dict{Int64,Int64} with 2 entries:
--        2 => 2
--        5 => 2
-+       julia> factor(100) # == 2*2*5*5
-+       Dict{Int64,Int64} with 2 entries:
-+         2 => 2
-+         5 => 2
- 
- .. function:: gcd(x,y)
- 
-@@ -1314,25 +1300,25 @@ Mathematical Functions
- 
-    .. Docstring generated from Julia source
- 
--   Next integer not less than ``n`` that can be written as :math:`\prod k_i^{p_i}` for integers :math:`p_1`, :math:`p_2`, etc.
-+   Next integer not less than ``n`` that can be written as :math:`\prod k_i^{p_i}` for integers :math:`p_1`\ , :math:`p_2`\ , etc.
- 
- .. function:: prevprod([k_1,k_2,...], n)
- 
-    .. Docstring generated from Julia source
- 
--   Previous integer not greater than ``n`` that can be written as :math:`\prod k_i^{p_i}` for integers :math:`p_1`, :math:`p_2`, etc.
-+   Previous integer not greater than ``n`` that can be written as :math:`\prod k_i^{p_i}` for integers :math:`p_1`\ , :math:`p_2`\ , etc.
- 
- .. function:: invmod(x,m)
- 
-    .. Docstring generated from Julia source
- 
--   Take the inverse of ``x`` modulo ``m``: ``y`` such that :math:`xy = 1 \pmod m`
-+   Take the inverse of ``x`` modulo ``m``\ : ``y`` such that :math:`xy = 1 \pmod m`\ .
- 
- .. function:: powermod(x, p, m)
- 
-    .. Docstring generated from Julia source
- 
--   Compute :math:`x^p \pmod m`
-+   Compute :math:`x^p \pmod m`\ .
- 
- .. function:: gamma(x)
- 
-@@ -1382,115 +1368,115 @@ Mathematical Functions
- 
-    .. Docstring generated from Julia source
- 
--   kth derivative of the Airy function :math:`\operatorname{Ai}(x)`.
-+   The ``k``\ th derivative of the Airy function :math:`\operatorname{Ai}(x)`\ .
- 
- .. function:: airyai(x)
- 
-    .. Docstring generated from Julia source
- 
--   Airy function :math:`\operatorname{Ai}(x)`.
-+   Airy function :math:`\operatorname{Ai}(x)`\ .
- 
- .. function:: airyprime(x)
- 
-    .. Docstring generated from Julia source
- 
--   Airy function derivative :math:`\operatorname{Ai}'(x)`.
-+   Airy function derivative :math:`\operatorname{Ai}'(x)`\ .
- 
- .. function:: airyaiprime(x)
- 
-    .. Docstring generated from Julia source
- 
--   Airy function derivative :math:`\operatorname{Ai}'(x)`.
-+   Airy function derivative :math:`\operatorname{Ai}'(x)`\ .
- 
- .. function:: airybi(x)
- 
-    .. Docstring generated from Julia source
- 
--   Airy function :math:`\operatorname{Bi}(x)`.
-+   Airy function :math:`\operatorname{Bi}(x)`\ .
- 
- .. function:: airybiprime(x)
- 
-    .. Docstring generated from Julia source
- 
--   Airy function derivative :math:`\operatorname{Bi}'(x)`.
-+   Airy function derivative :math:`\operatorname{Bi}'(x)`\ .
- 
- .. function:: airyx(k,x)
- 
-    .. Docstring generated from Julia source
- 
--   scaled kth derivative of the Airy function, return :math:`\operatorname{Ai}(x) e^{\frac{2}{3} x \sqrt{x}}` for ``k == 0 || k == 1``, and :math:`\operatorname{Ai}(x) e^{- \left| \operatorname{Re} \left( \frac{2}{3} x \sqrt{x} \right) \right|}` for ``k == 2 || k == 3``.
-+   scaled ``k``\ th derivative of the Airy function, return :math:`\operatorname{Ai}(x) e^{\frac{2}{3} x \sqrt{x}}` for ``k == 0 || k == 1``\ , and :math:`\operatorname{Ai}(x) e^{- \left| \operatorname{Re} \left( \frac{2}{3} x \sqrt{x} \right) \right|}` for ``k == 2 || k == 3``\ .
- 
- .. function:: besselj0(x)
- 
-    .. Docstring generated from Julia source
- 
--   Bessel function of the first kind of order 0, :math:`J_0(x)`.
-+   Bessel function of the first kind of order 0, :math:`J_0(x)`\ .
- 
- .. function:: besselj1(x)
- 
-    .. Docstring generated from Julia source
- 
--   Bessel function of the first kind of order 1, :math:`J_1(x)`.
-+   Bessel function of the first kind of order 1, :math:`J_1(x)`\ .
- 
- .. function:: besselj(nu, x)
- 
-    .. Docstring generated from Julia source
- 
--   Bessel function of the first kind of order ``nu``, :math:`J_\nu(x)`.
-+   Bessel function of the first kind of order ``nu``\ , :math:`J_\nu(x)`\ .
- 
- .. function:: besseljx(nu, x)
- 
-    .. Docstring generated from Julia source
- 
--   Scaled Bessel function of the first kind of order ``nu``, :math:`J_\nu(x) e^{- | \operatorname{Im}(x) |}`.
-+   Scaled Bessel function of the first kind of order ``nu``\ , :math:`J_\nu(x) e^{- | \operatorname{Im}(x) |}`\ .
- 
- .. function:: bessely0(x)
- 
-    .. Docstring generated from Julia source
- 
--   Bessel function of the second kind of order 0, :math:`Y_0(x)`.
-+   Bessel function of the second kind of order 0, :math:`Y_0(x)`\ .
- 
- .. function:: bessely1(x)
- 
-    .. Docstring generated from Julia source
- 
--   Bessel function of the second kind of order 1, :math:`Y_1(x)`.
-+   Bessel function of the second kind of order 1, :math:`Y_1(x)`\ .
- 
- .. function:: bessely(nu, x)
- 
-    .. Docstring generated from Julia source
- 
--   Bessel function of the second kind of order ``nu``, :math:`Y_\nu(x)`.
-+   Bessel function of the second kind of order ``nu``\ , :math:`Y_\nu(x)`\ .
- 
- .. function:: besselyx(nu, x)
- 
-    .. Docstring generated from Julia source
- 
--   Scaled Bessel function of the second kind of order ``nu``, :math:`Y_\nu(x) e^{- | \operatorname{Im}(x) |}`.
-+   Scaled Bessel function of the second kind of order ``nu``\ , :math:`Y_\nu(x) e^{- | \operatorname{Im}(x) |}`\ .
- 
- .. function:: hankelh1(nu, x)
- 
-    .. Docstring generated from Julia source
- 
--   Bessel function of the third kind of order ``nu``, :math:`H^{(1)}_\nu(x)`.
-+   Bessel function of the third kind of order ``nu``\ , :math:`H^{(1)}_\nu(x)`\ .
- 
- .. function:: hankelh1x(nu, x)
- 
-    .. Docstring generated from Julia source
- 
--   Scaled Bessel function of the third kind of order ``nu``, :math:`H^{(1)}_\nu(x) e^{-x i}`.
-+   Scaled Bessel function of the third kind of order ``nu``\ , :math:`H^{(1)}_\nu(x) e^{-x i}`\ .
- 
- .. function:: hankelh2(nu, x)
- 
-    .. Docstring generated from Julia source
- 
--   Bessel function of the third kind of order ``nu``, :math:`H^{(2)}_\nu(x)`.
-+   Bessel function of the third kind of order ``nu``\ , :math:`H^{(2)}_\nu(x)`\ .
- 
- .. function:: hankelh2x(nu, x)
- 
-    .. Docstring generated from Julia source
- 
--   Scaled Bessel function of the third kind of order ``nu``, :math:`H^{(2)}_\nu(x) e^{x i}`.
-+   Scaled Bessel function of the third kind of order ``nu``\ , :math:`H^{(2)}_\nu(x) e^{x i}`\ .
- 
- .. function:: besselh(nu, k, x)
- 
-@@ -1502,56 +1488,55 @@ Mathematical Functions
- 
-    .. Docstring generated from Julia source
- 
--   Modified Bessel function of the first kind of order ``nu``, :math:`I_\nu(x)`.
-+   Modified Bessel function of the first kind of order ``nu``\ , :math:`I_\nu(x)`\ .
- 
- .. function:: besselix(nu, x)
- 
-    .. Docstring generated from Julia source
- 
--   Scaled modified Bessel function of the first kind of order ``nu``, :math:`I_\nu(x) e^{- | \operatorname{Re}(x) |}`.
-+   Scaled modified Bessel function of the first kind of order ``nu``\ , :math:`I_\nu(x) e^{- | \operatorname{Re}(x) |}`\ .
- 
- .. function:: besselk(nu, x)
- 
-    .. Docstring generated from Julia source
- 
--   Modified Bessel function of the second kind of order ``nu``, :math:`K_\nu(x)`.
-+   Modified Bessel function of the second kind of order ``nu``\ , :math:`K_\nu(x)`\ .
- 
- .. function:: besselkx(nu, x)
- 
-    .. Docstring generated from Julia source
- 
--   Scaled modified Bessel function of the second kind of order ``nu``, :math:`K_\nu(x) e^x`.
-+   Scaled modified Bessel function of the second kind of order ``nu``\ , :math:`K_\nu(x) e^x`\ .
- 
- .. function:: beta(x, y)
- 
-    .. Docstring generated from Julia source
- 
--   Euler integral of the first kind :math:`\operatorname{B}(x,y) = \Gamma(x)\Gamma(y)/\Gamma(x+y)`.
-+   Euler integral of the first kind :math:`\operatorname{B}(x,y) = \Gamma(x)\Gamma(y)/\Gamma(x+y)`\ .
- 
- .. function:: lbeta(x, y)
- 
-    .. Docstring generated from Julia source
- 
--   Natural logarithm of the absolute value of the beta function :math:`\log(|\operatorname{B}(x,y)|)`.
-+   Natural logarithm of the absolute value of the beta function :math:`\log(|\operatorname{B}(x,y)|)`\ .
- 
- .. function:: eta(x)
- 
-    .. Docstring generated from Julia source
- 
--   Dirichlet eta function :math:`\eta(s) = \sum^\infty_{n=1}(-)^{n-1}/n^{s}`.
-+   Dirichlet eta function :math:`\eta(s) = \sum^\infty_{n=1}(-)^{n-1}/n^{s}`\ .
- 
- .. function:: zeta(s)
- 
-    .. Docstring generated from Julia source
- 
--   Riemann zeta function :math:`\zeta(s)`.
-+   Riemann zeta function :math:`\zeta(s)`\ .
- 
- .. function:: zeta(s, z)
- 
-    .. Docstring generated from Julia source
- 
--   Hurwitz zeta function :math:`\zeta(s, z)`.  (This is equivalent to
--   the Riemann zeta function :math:`\zeta(s)` for the case of ``z=1``.)
-+   Hurwitz zeta function :math:`\zeta(s, z)`\ .  (This is equivalent to the Riemann zeta function :math:`\zeta(s)` for the case of ``z=1``\ .)
- 
- .. function:: ndigits(n, b)
- 
-@@ -1569,11 +1554,7 @@ Mathematical Functions
- 
-    .. Docstring generated from Julia source
- 
--   Evaluate the polynomial :math:`\sum_k c[k] z^{k-1}` for the
--   coefficients ``c[1]``, ``c[2]``, ...; that is, the coefficients are
--   given in ascending order by power of ``z``.  This macro expands to
--   efficient inline code that uses either Horner's method or, for
--   complex ``z``, a more efficient Goertzel-like algorithm.
-+   Evaluate the polynomial :math:`\sum_k c[k] z^{k-1}` for the coefficients ``c[1]``\ , ``c[2]``\ , ...; that is, the coefficients are given in ascending order by power of ``z``\ .  This macro expands to efficient inline code that uses either Horner's method or, for complex ``z``\ , a more efficient Goertzel-like algorithm.
- 
- Statistics
- ----------
-@@ -1779,11 +1760,11 @@ multi-threading. Use ``FFTW.set_num_threads(np)`` to use ``np`` threads.
- 
-    .. math::
- 
--      \operatorname{IDFT}(A)[k] = \frac{1}{\operatorname{length}(A)}
--      \sum_{n=1}^{\operatorname{length}(A)} \exp\left(+i\frac{2\pi (n-1)(k-1)}
--      {\operatorname{length}(A)} \right) A[n].
-+       \operatorname{IDFT}(A)[k] = \frac{1}{\operatorname{length}(A)}
-+       \sum_{n=1}^{\operatorname{length}(A)} \exp\left(+i\frac{2\pi (n-1)(k-1)}
-+       {\operatorname{length}(A)} \right) A[n].
- 
--   A multidimensional inverse FFT simply performs this operation along each transformed dimension of ``A``.
-+   A multidimensional inverse FFT simply performs this operation along each transformed dimension of ``A``\ .
- 
- .. function:: ifft!(A [, dims])
- 
-diff --git a/doc/stdlib/numbers.rst b/doc/stdlib/numbers.rst
-index bb42555..ca5fe33 100644
---- a/doc/stdlib/numbers.rst
-+++ b/doc/stdlib/numbers.rst
-@@ -100,18 +100,15 @@ Data Formats
- 
-    .. Docstring generated from Julia source
- 
--   Extract the ``significand(s)`` (a.k.a. mantissa), in binary representation, of
--   a floating-point number or array. If ``x`` is a non-zero finite number,
--   than the result will be a number of the same type on the interval
--   :math:`[1,2)`. Otherwise ``x`` is returned.
-+   Extract the ``significand(s)`` (a.k.a. mantissa), in binary representation, of a floating-point number or array. If ``x`` is a non-zero finite number, than the result will be a number of the same type on the interval :math:`[1,2)`\ . Otherwise ``x`` is returned.
- 
-    .. doctest::
- 
--      julia> significand(15.2)/15.2
--      0.125
-+       julia> significand(15.2)/15.2
-+       0.125
- 
--      julia> significand(15.2)*8
--      15.2
-+       julia> significand(15.2)*8
-+       15.2
- 
- .. function:: exponent(x) -> Int
- 
-@@ -286,16 +283,15 @@ General Number Functions and Constants
- 
-    .. Docstring generated from Julia source
- 
--   Create a Float32 from ``x``. If ``x`` is not exactly representable then
--   ``mode`` determines how ``x`` is rounded.
-+   Create a Float32 from ``x``\ . If ``x`` is not exactly representable then ``mode`` determines how ``x`` is rounded.
- 
-    .. doctest::
- 
--      julia> Float32(1/3, RoundDown)
--      0.3333333f0
-+       julia> Float32(1/3, RoundDown)
-+       0.3333333f0
- 
--      julia> Float32(1/3, RoundUp)
--      0.33333334f0
-+       julia> Float32(1/3, RoundUp)
-+       0.33333334f0
- 
-    See ``get_rounding`` for available rounding modes.
- 
-@@ -303,16 +299,15 @@ General Number Functions and Constants
- 
-    .. Docstring generated from Julia source
- 
--   Create a Float64 from ``x``. If ``x`` is not exactly representable then
--   ``mode`` determines how ``x`` is rounded.
-+   Create a Float64 from ``x``\ . If ``x`` is not exactly representable then ``mode`` determines how ``x`` is rounded.
- 
-    .. doctest::
- 
--      julia> Float64(pi, RoundDown)
--      3.141592653589793
-+       julia> Float64(pi, RoundDown)
-+       3.141592653589793
- 
--      julia> Float64(pi, RoundUp)
--      3.1415926535897936
-+       julia> Float64(pi, RoundUp)
-+       3.1415926535897936
- 
-    See ``get_rounding`` for available rounding modes.
- 
-@@ -408,67 +403,67 @@ Integers
- 
-    .. Docstring generated from Julia source
- 
--   Number of ones in the binary representation of ``x``.
-+   Number of ones in the binary representation of ``x``\ .
- 
-    .. doctest::
- 
--      julia> count_ones(7)
--      3
-+       julia> count_ones(7)
-+       3
- 
- .. function:: count_zeros(x::Integer) -> Integer
- 
-    .. Docstring generated from Julia source
- 
--   Number of zeros in the binary representation of ``x``.
-+   Number of zeros in the binary representation of ``x``\ .
- 
-    .. doctest::
- 
--      julia> count_zeros(Int32(2 ^ 16 - 1))
--      16
-+       julia> count_zeros(Int32(2 ^ 16 - 1))
-+       16
- 
- .. function:: leading_zeros(x::Integer) -> Integer
- 
-    .. Docstring generated from Julia source
- 
--   Number of zeros leading the binary representation of ``x``.
-+   Number of zeros leading the binary representation of ``x``\ .
- 
-    .. doctest::
- 
--      julia> leading_zeros(Int32(1))
--      31
-+       julia> leading_zeros(Int32(1))
-+       31
- 
- .. function:: leading_ones(x::Integer) -> Integer
- 
-    .. Docstring generated from Julia source
- 
--   Number of ones leading the binary representation of ``x``.
-+   Number of ones leading the binary representation of ``x``\ .
- 
-    .. doctest::
- 
--      julia> leading_ones(UInt32(2 ^ 32 - 2))
--      31
-+       julia> leading_ones(UInt32(2 ^ 32 - 2))
-+       31
- 
- .. function:: trailing_zeros(x::Integer) -> Integer
- 
-    .. Docstring generated from Julia source
- 
--   Number of zeros trailing the binary representation of ``x``.
-+   Number of zeros trailing the binary representation of ``x``\ .
- 
-    .. doctest::
- 
--      julia> trailing_zeros(2)
--      1
-+       julia> trailing_zeros(2)
-+       1
- 
- .. function:: trailing_ones(x::Integer) -> Integer
- 
-    .. Docstring generated from Julia source
- 
--   Number of ones trailing the binary representation of ``x``.
-+   Number of ones trailing the binary representation of ``x``\ .
- 
-    .. doctest::
- 
--      julia> trailing_ones(3)
--      2
-+       julia> trailing_ones(3)
-+       2
- 
- .. function:: isprime(x::Integer) -> Bool
- 
-@@ -478,22 +473,19 @@ Integers
- 
-    .. doctest::
- 
--   	julia> isprime(3)
--   	true
-+       julia> isprime(3)
-+       true
- 
- .. function:: isprime(x::BigInt, [reps = 25]) -> Bool
- 
-    .. Docstring generated from Julia source
- 
--   Probabilistic primality test. Returns ``true`` if ``x`` is prime; and
--   ``false`` if ``x`` is not prime with high probability. The false positive
--   rate is about ``0.25^reps``. ``reps = 25`` is considered safe for
--   cryptographic applications (Knuth, Seminumerical Algorithms).
-+   Probabilistic primality test. Returns ``true`` if ``x`` is prime; and ``false`` if ``x`` is not prime with high probability. The false positive rate is about ``0.25^reps``\ . ``reps = 25`` is considered safe for cryptographic applications (Knuth, Seminumerical Algorithms).
- 
-    .. doctest::
- 
--   	julia> isprime(big(3))
--   	true
-+       julia> isprime(big(3))
-+       true
- 
- .. function:: primes([lo,] hi)
- 
-@@ -515,11 +507,11 @@ Integers
- 
-    .. doctest::
- 
--   	julia> isodd(9)
--   	true
-+       julia> isodd(9)
-+       true
- 
--   	julia> isodd(10)
--   	false
-+       julia> isodd(10)
-+       false
- 
- .. function:: iseven(x::Integer) -> Bool
- 
-@@ -529,11 +521,11 @@ Integers
- 
-    .. doctest::
- 
--   	julia> iseven(9)
--   	false
-+       julia> iseven(9)
-+       false
- 
--   	julia> iseven(10)
--   	true
-+       julia> iseven(10)
-+       true
- 
- BigFloats
- ---------
-@@ -611,13 +603,12 @@ As ``BigInt`` represents unbounded integers, the interval must be specified (e.g
- 
-    .. Docstring generated from Julia source
- 
--   Pick a random element or array of random elements from the set of values specified by ``S``; ``S`` can be
-+   Pick a random element or array of random elements from the set of values specified by ``S``\ ; ``S`` can be
- 
--   * an indexable collection (for example ``1:n`` or ``['x','y','z']``), or
-+     * an indexable collection (for example ``1:n`` or ``['x','y','z']``\ ), or
-+     * a type: the set of values to pick from is then equivalent to ``typemin(S):typemax(S)`` for integers (this is not applicable to ``BigInt``\ ), and to :math:`[0, 1)` for floating point numbers;
- 
--   * a type: the set of values to pick from is then equivalent to ``typemin(S):typemax(S)`` for integers (this is not applicable to ``BigInt``), and to :math:`[0, 1)` for floating point numbers;
--
--   ``S`` defaults to ``Float64``.
-+   ``S`` defaults to ``Float64``\ .
- 
- .. function:: rand!([rng], A, [coll])
- 
-diff --git a/doc/stdlib/parallel.rst b/doc/stdlib/parallel.rst
-index 34b2360..6075736 100644
---- a/doc/stdlib/parallel.rst
-+++ b/doc/stdlib/parallel.rst
-@@ -274,38 +274,27 @@ General Parallel Computing Support
- 
-    .. Docstring generated from Julia source
- 
--   Block the current task until some event occurs, depending on the type
--   of the argument:
-+   Block the current task until some event occurs, depending on the type of the argument:
- 
--   * ``RemoteRef``: Wait for a value to become available for the specified remote reference.
-+     * ``RemoteRef``\ : Wait for a value to become available for the specified remote reference.
-+     * ``Channel``\ : Wait for a value to be appended to the channel.
-+     * ``Condition``\ : Wait for ``notify`` on a condition.
-+     * ``Process``\ : Wait for a process or process chain to exit. The ``exitcode`` field of a process can be used to determine success or failure.
-+     * ``Task``\ : Wait for a ``Task`` to finish, returning its result value. If the task fails with an exception, the exception is propagated (re-thrown in the task that called ``wait``\ ).
-+     * ``RawFD``\ : Wait for changes on a file descriptor (see ``poll_fd`` for keyword arguments and return code)
- 
--   * ``Channel``: Wait for a value to be appended to the channel.
-+   If no argument is passed, the task blocks for an undefined period. If the task's state is set to ``:waiting``\ , it can only be restarted by an explicit call to ``schedule`` or ``yieldto``\ . If the task's state is ``:runnable``\ , it might be restarted unpredictably.
- 
--   * ``Condition``: Wait for ``notify`` on a condition.
--
--   * ``Process``: Wait for a process or process chain to exit. The ``exitcode`` field of a process can be used to determine success or failure.
--
--   * ``Task``: Wait for a ``Task`` to finish, returning its result value. If the task fails with an exception, the exception is propagated (re-thrown in the task that called ``wait``).
--
--   * ``RawFD``: Wait for changes on a file descriptor (see `poll_fd` for keyword arguments and return code)
--
--   If no argument is passed, the task blocks for an undefined period. If the task's
--   state is set to ``:waiting``, it can only be restarted by an explicit call to
--   ``schedule`` or ``yieldto``. If the task's state is ``:runnable``, it might be
--   restarted unpredictably.
--
--   Often ``wait`` is called within a ``while`` loop to ensure a waited-for condition
--   is met before proceeding.
-+   Often ``wait`` is called within a ``while`` loop to ensure a waited-for condition is met before proceeding.
- 
- .. function:: fetch(x)
- 
-    .. Docstring generated from Julia source
- 
--   Waits and fetches a value from ``x`` depending on the type of ``x``. Does not remove the item fetched:
--
--   * ``RemoteRef``: Wait for and get the value of a remote reference. If the remote value is an exception, throws a ``RemoteException`` which captures the remote exception and backtrace.
-+   Waits and fetches a value from ``x`` depending on the type of ``x``\ . Does not remove the item fetched:
- 
--   * ``Channel`` : Wait for and get the first available item from the channel.
-+     * ``RemoteRef``\ : Wait for and get the value of a remote reference. If the remote value is an exception, throws a ``RemoteException`` which captures the remote exception and backtrace.
-+     * ``Channel`` : Wait for and get the first available item from the channel.
- 
- .. function:: remotecall_wait(id, func, args...)
- 
-@@ -363,10 +352,8 @@ General Parallel Computing Support
- 
-    Closes a channel. An exception is thrown by:
- 
--       - ``put!`` on a closed channel.
--
--       - ``take!`` and ``fetch`` on an empty, closed channel.
--
-+     * ``put!`` on a closed channel.
-+     * ``take!`` and ``fetch`` on an empty, closed channel.
- 
- .. function:: RemoteRef()
- 
-diff --git a/doc/stdlib/strings.rst b/doc/stdlib/strings.rst
-index 1617de1..cdefe2f 100644
---- a/doc/stdlib/strings.rst
-+++ b/doc/stdlib/strings.rst
-@@ -24,19 +24,19 @@
- 
-    .. doctest::
- 
--      julia> "Hello " * "world"
--      "Hello world"
-+       julia> "Hello " * "world"
-+       "Hello world"
- 
- .. function:: ^(s, n)
- 
-    .. Docstring generated from Julia source
- 
--   Repeat ``n`` times the string ``s``. The ``^`` operator is an alias to this function.
-+   Repeat ``n`` times the string ``s``\ . The ``repeat`` function is an alias to this operator.
- 
-    .. doctest::
- 
--   	julia> "Test "^3
--   	"Test Test Test "
-+       julia> "Test "^3
-+       "Test Test Test "
- 
- .. function:: string(xs...)
- 
-@@ -132,34 +132,22 @@
- 
-    .. Docstring generated from Julia source
- 
--   Normalize the string ``s`` according to one of the four "normal
--   forms" of the Unicode standard: ``normalform`` can be ``:NFC``,
--   ``:NFD``, ``:NFKC``, or ``:NFKD``.  Normal forms C (canonical
--   composition) and D (canonical decomposition) convert different
--   visually identical representations of the same abstract string into
--   a single canonical form, with form C being more compact.  Normal
--   forms KC and KD additionally canonicalize "compatibility
--   equivalents": they convert characters that are abstractly similar
--   but visually distinct into a single canonical choice (e.g. they expand
--   ligatures into the individual characters), with form KC being more compact.
--
--   Alternatively, finer control and additional transformations may be
--   be obtained by calling ``normalize_string(s; keywords...)``, where
--   any number of the following boolean keywords options (which all default
--   to ``false`` except for ``compose``) are specified:
--
--   * ``compose=false``: do not perform canonical composition
--   * ``decompose=true``: do canonical decomposition instead of canonical composition (``compose=true`` is ignored if present)
--   * ``compat=true``: compatibility equivalents are canonicalized
--   * ``casefold=true``: perform Unicode case folding, e.g. for case-insensitive string comparison
--   * ``newline2lf=true``, ``newline2ls=true``, or ``newline2ps=true``: convert various newline sequences (LF, CRLF, CR, NEL) into a linefeed (LF), line-separation (LS), or paragraph-separation (PS) character, respectively
--   * ``stripmark=true``: strip diacritical marks (e.g. accents)
--   * ``stripignore=true``: strip Unicode's "default ignorable" characters (e.g. the soft hyphen or the left-to-right marker)
--   * ``stripcc=true``: strip control characters; horizontal tabs and form feeds are converted to spaces; newlines are also converted to spaces unless a newline-conversion flag was specified
--   * ``rejectna=true``: throw an error if unassigned code points are found
--   * ``stable=true``: enforce Unicode Versioning Stability
--
--   For example, NFKC corresponds to the options ``compose=true, compat=true, stable=true``.
-+   Normalize the string ``s`` according to one of the four "normal forms" of the Unicode standard: ``normalform`` can be ``:NFC``\ , ``:NFD``\ , ``:NFKC``\ , or ``:NFKD``\ .  Normal forms C (canonical composition) and D (canonical decomposition) convert different visually identical representations of the same abstract string into a single canonical form, with form C being more compact.  Normal forms KC and KD additionally canonicalize "compatibility equivalents": they convert characters that are abstractly similar but visually distinct into a single canonical choice (e.g. they expand ligatures into the individual characters), with form KC being more compact.
-+
-+   Alternatively, finer control and additional transformations may be be obtained by calling ``normalize_string(s; keywords...)``\ , where any number of the following boolean keywords options (which all default to ``false`` except for ``compose``\ ) are specified:
-+
-+     * ``compose=false``\ : do not perform canonical composition
-+     * ``decompose=true``\ : do canonical decomposition instead of canonical composition (``compose=true`` is ignored if present)
-+     * ``compat=true``\ : compatibility equivalents are canonicalized
-+     * ``casefold=true``\ : perform Unicode case folding, e.g. for case-insensitive string comparison
-+     * ``newline2lf=true``\ , ``newline2ls=true``\ , or ``newline2ps=true``\ : convert various newline sequences (LF, CRLF, CR, NEL) into a linefeed (LF), line-separation (LS), or paragraph-separation (PS) character, respectively
-+     * ``stripmark=true``\ : strip diacritical marks (e.g. accents)
-+     * ``stripignore=true``\ : strip Unicode's "default ignorable" characters (e.g. the soft hyphen or the left-to-right marker)
-+     * ``stripcc=true``\ : strip control characters; horizontal tabs and form feeds are converted to spaces; newlines are also converted to spaces unless a newline-conversion flag was specified
-+     * ``rejectna=true``\ : throw an error if unassigned code points are found
-+     * ``stable=true``\ : enforce Unicode Versioning Stability
-+
-+   For example, NFKC corresponds to the options ``compose=true, compat=true, stable=true``\ .
- 
- .. function:: graphemes(s) -> iterator over substrings of s
- 
-diff --git a/doc/stdlib/test.rst b/doc/stdlib/test.rst
-index 456f337..cfd9bf5 100644
---- a/doc/stdlib/test.rst
-+++ b/doc/stdlib/test.rst
-@@ -158,7 +158,7 @@ Macros
- 
-    .. Docstring generated from Julia source
- 
--   Test that the expression ``ex`` throws an exception of type ``extype`` and calls the current handler to handle the result. The default handler returns the exception if it is of the expected type.
-+   Test that the expression ``ex`` throws an exception of type ``extype`` and calls the current handler to handle the result.
- 
- .. function:: @test_approx_eq(a, b)
- 
-diff --git a/src/Makefile b/src/Makefile
-index f33e562..98fa704 100644
---- a/src/Makefile
-+++ b/src/Makefile
-@@ -82,6 +82,12 @@ $(BUILDDIR)/%.o: %.cpp $(HEADERS) $(shell which $(LLVM_CONFIG)) | $(BUILDDIR)
- $(BUILDDIR)/%.dbg.obj: %.cpp $(HEADERS) $(shell which $(LLVM_CONFIG)) | $(BUILDDIR)
- 	@$(call PRINT_CC, $(CXX) $(call exec,$(LLVM_CONFIG) --cxxflags) $(CPPFLAGS) $(CXXFLAGS) $(DEBUGFLAGS) -c $< -o $@)
- 
-+libccalltest: $(build_shlibdir)/libccalltest.$(SHLIB_EXT)
-+$(build_shlibdir)/libccalltest.$(SHLIB_EXT): ccalltest.c
-+	@$(call PRINT_CC, $(CC) $(CFLAGS) $(CPPFLAGS) $(DEBUGFLAGS) -O3 $< $(fPIC) -shared -o $@ $(LDFLAGS) -DCC="$(CC)")
-+
-+
-+
- $(BUILDDIR)/julia_flisp.boot.inc: $(BUILDDIR)/julia_flisp.boot $(FLISP_EXECUTABLE)
- 	@$(call PRINT_FLISP, $(call spawn,$(FLISP_EXECUTABLE)) ./bin2hex.scm < $< > $@)
- 
-@@ -157,7 +163,7 @@ $(BUILDDIR)/libjulia.a: julia.expmap $(OBJS) $(BUILDDIR)/flisp/libflisp.a $(BUIL
- libjulia-release: $(build_shlibdir)/libjulia.$(SHLIB_EXT)
- 
- clean:
--	-rm -f $(build_shlibdir)/libjulia*
-+	-rm -fr $(build_shlibdir)/libjulia* $(build_shlibdir)/libccalltest*
- 	-rm -f $(BUILDDIR)/julia_flisp.boot $(BUILDDIR)/julia_flisp.boot.inc
- 	-rm -f $(BUILDDIR)/*.dbg.obj $(BUILDDIR)/*.o *~ $(BUILDDIR)/*.$(SHLIB_EXT) $(BUILDDIR)/*.a *#
- 	-rm -f $(BUILDDIR)/julia_version.h
-diff --git a/src/abi_x86_64.cpp b/src/abi_x86_64.cpp
-index 05e2790..802e023 100644
---- a/src/abi_x86_64.cpp
-+++ b/src/abi_x86_64.cpp
-@@ -133,7 +133,8 @@ void classifyType(Classification& accum, jl_value_t* ty, uint64_t offset) {
-     else if (jl_datatype_size(ty) <= 16) {
-         size_t i;
-         for (i = 0; i < jl_datatype_nfields(ty); ++i) {
--            classifyType(accum, jl_field_type(ty,i), offset + jl_field_offset(ty,i));
-+            classifyType(accum, jl_field_type((jl_datatype_t*)ty,i),
-+                         offset + jl_field_offset((jl_datatype_t*)ty,i));
-         }
-     }
-     else {
-diff --git a/src/alloc.c b/src/alloc.c
-index d7bf561..c0a5c22 100644
---- a/src/alloc.c
-+++ b/src/alloc.c
-@@ -298,8 +298,9 @@ DLLEXPORT jl_value_t *jl_new_structv(jl_datatype_t *type, jl_value_t **args, uin
-         jl_set_nth_field(jv, i, args[i]);
-     }
-     for(size_t i=na; i < nf; i++) {
--        if (type->fields[i].isptr)
-+        if (jl_field_isptr(type, i)) {
-             *(jl_value_t**)((char*)jl_data_ptr(jv)+jl_field_offset(type,i)) = NULL;
-+        }
-     }
-     return jv;
- }
-@@ -535,11 +536,18 @@ jl_datatype_t *jl_new_abstracttype(jl_value_t *name, jl_datatype_t *super,
-     return dt;
- }
- 
--jl_datatype_t *jl_new_uninitialized_datatype(size_t nfields)
-+jl_datatype_t *jl_new_uninitialized_datatype(size_t nfields,
-+                                             int8_t fielddesc_type)
- {
-+    // fielddesc_type is specified manually for builtin types
-+    // and is (will be) calculated automatically for user defined types.
-+    uint32_t fielddesc_size = jl_fielddesc_size(fielddesc_type);
-     jl_datatype_t *t = (jl_datatype_t*)
-         newobj((jl_value_t*)jl_datatype_type,
--               NWORDS(sizeof(jl_datatype_t) + nfields*sizeof(jl_fielddesc_t)));
-+               NWORDS(sizeof(jl_datatype_t) + nfields * fielddesc_size));
-+    // fielddesc_type should only be assigned here. It can cause data
-+    // corruption otherwise.
-+    t->fielddesc_type = fielddesc_type;
-     t->nfields = nfields;
-     return t;
- }
-@@ -549,15 +557,22 @@ void jl_compute_field_offsets(jl_datatype_t *st)
-     size_t sz = 0, alignm = 1;
-     int ptrfree = 1;
- 
-+    assert(0 <= st->fielddesc_type && st->fielddesc_type <= 2);
-+
-+    uint64_t max_offset = (((uint64_t)1) <<
-+                           (1 << (3 + st->fielddesc_type))) - 1;
-+    uint64_t max_size = max_offset >> 1;
-+
-     for(size_t i=0; i < jl_datatype_nfields(st); i++) {
-         jl_value_t *ty = jl_field_type(st, i);
-         size_t fsz, al;
-         if (jl_isbits(ty) && jl_is_leaf_type(ty)) {
-             fsz = jl_datatype_size(ty);
--            if (__unlikely(fsz > JL_FIELD_MAX_SIZE))
-+            // Should never happen
-+            if (__unlikely(fsz > max_size))
-                 jl_throw(jl_overflow_exception);
-             al = ((jl_datatype_t*)ty)->alignment;
--            st->fields[i].isptr = 0;
-+            jl_field_setisptr(st, i, 0);
-             if (((jl_datatype_t*)ty)->haspadding)
-                 st->haspadding = 1;
-         }
-@@ -566,7 +581,7 @@ void jl_compute_field_offsets(jl_datatype_t *st)
-             if (fsz > MAX_ALIGN)
-                 fsz = MAX_ALIGN;
-             al = fsz;
--            st->fields[i].isptr = 1;
-+            jl_field_setisptr(st, i, 1);
-             ptrfree = 0;
-         }
-         if (al != 0) {
-@@ -577,14 +592,16 @@ void jl_compute_field_offsets(jl_datatype_t *st)
-             if (al > alignm)
-                 alignm = al;
-         }
--        if (__unlikely(sz > JL_FIELD_MAX_OFFSET))
-+        jl_field_setoffset(st, i, sz);
-+        jl_field_setsize(st, i, fsz);
-+        if (__unlikely(max_offset - sz < fsz))
-             jl_throw(jl_overflow_exception);
--        st->fields[i].offset = sz;
--        st->fields[i].size = fsz;
-         sz += fsz;
-     }
-     st->alignment = alignm;
-     st->size = LLT_ALIGN(sz, alignm);
-+    if (st->size > sz)
-+        st->haspadding = 1;
-     st->pointerfree = ptrfree && !st->abstract;
- }
- 
-@@ -610,7 +627,7 @@ jl_datatype_t *jl_new_datatype(jl_sym_t *name, jl_datatype_t *super,
-             t = jl_bool_type;
-     }
-     if (t == NULL)
--        t = jl_new_uninitialized_datatype(jl_svec_len(fnames));
-+        t = jl_new_uninitialized_datatype(jl_svec_len(fnames), 2); // TODO
-     else
-         tn = t->name;
-     // init before possibly calling jl_new_typename
-diff --git a/src/builtins.c b/src/builtins.c
-index bc4e9f7..7dc6319 100644
---- a/src/builtins.c
-+++ b/src/builtins.c
-@@ -254,11 +254,11 @@ static int NOINLINE compare_fields(jl_value_t *a, jl_value_t *b, jl_datatype_t *
- {
-     size_t nf = jl_datatype_nfields(dt);
-     for (size_t f=0; f < nf; f++) {
--        size_t offs = dt->fields[f].offset;
-+        size_t offs = jl_field_offset(dt, f);
-         char *ao = (char*)jl_data_ptr(a) + offs;
-         char *bo = (char*)jl_data_ptr(b) + offs;
-         int eq;
--        if (dt->fields[f].isptr) {
-+        if (jl_field_isptr(dt, f)) {
-             jl_value_t *af = *(jl_value_t**)ao;
-             jl_value_t *bf = *(jl_value_t**)bo;
-             if (af == bf) eq = 1;
-@@ -268,7 +268,7 @@ static int NOINLINE compare_fields(jl_value_t *a, jl_value_t *b, jl_datatype_t *
-         else {
-             jl_datatype_t *ft = (jl_datatype_t*)jl_field_type(dt, f);
-             if (!ft->haspadding) {
--                eq = bits_equal(ao, bo, dt->fields[f].size);
-+                eq = bits_equal(ao, bo, jl_field_size(dt, f));
-             }
-             else {
-                 assert(jl_datatype_nfields(ft) > 0);
-@@ -744,6 +744,8 @@ JL_CALLABLE(jl_f_field_type)
- {
-     JL_NARGS(fieldtype, 2, 2);
-     jl_datatype_t *st = (jl_datatype_t*)args[0];
-+    if (st == jl_module_type)
-+        jl_error("cannot assign variables in other modules");
-     if (!jl_is_datatype(st))
-         jl_type_error("fieldtype", (jl_value_t*)jl_datatype_type, (jl_value_t*)st);
-     int field_index;
-@@ -1176,20 +1178,20 @@ static uptrint_t jl_object_id_(jl_value_t *tv, jl_value_t *v)
-         return bits_hash(jl_data_ptr(v), sz) ^ h;
-     }
-     for (size_t f=0; f < nf; f++) {
--        size_t offs = dt->fields[f].offset;
-+        size_t offs = jl_field_offset(dt, f);
-         char *vo = (char*)jl_data_ptr(v) + offs;
-         uptrint_t u;
--        if (dt->fields[f].isptr) {
-+        if (jl_field_isptr(dt, f)) {
-             jl_value_t *f = *(jl_value_t**)vo;
-             u = f==NULL ? 0 : jl_object_id(f);
-         }
-         else {
--            jl_datatype_t *fieldtype = (jl_datatype_t*)jl_svecref(dt->types, f);
-+            jl_datatype_t *fieldtype = (jl_datatype_t*)jl_field_type(dt, f);
-             assert(jl_is_datatype(fieldtype) && !fieldtype->abstract && !fieldtype->mutabl);
-             if (fieldtype->haspadding)
-                 u = jl_object_id_((jl_value_t*)fieldtype, (jl_value_t*)vo);
-             else
--                u = bits_hash(vo, dt->fields[f].size);
-+                u = bits_hash(vo, jl_field_size(dt, f));
-         }
-         h = bitmix(h, u);
-     }
-diff --git a/src/ccalltest.c b/src/ccalltest.c
-new file mode 100644
-index 0000000..eec5dcd
---- /dev/null
-+++ b/src/ccalltest.c
-@@ -0,0 +1,364 @@
-+// This file is a part of Julia. License is MIT: http://julialang.org/license
-+
-+#include <stdio.h>
-+#include <stdlib.h>
-+#include <complex.h>
-+#include <stdint.h>
-+#include <inttypes.h>
-+int verbose = 1;
-+
-+#include "../src/support/platform.h"
-+#include "../src/support/dtypes.h"
-+
-+#ifdef _P64
-+#define jint int64_t
-+#else
-+#define jint int32_t
-+#endif
-+
-+//////////////////////////////////
-+// Test for proper argument register truncation
-+
-+int xs[300] = {0,0,0,1,0};
-+
-+//int testUcharX(unsigned char x);
-+#ifdef _COMPILER_MICROSOFT_
-+int __declspec(noinline)
-+#else
-+int __attribute__((noinline))
-+#endif
-+DLLEXPORT testUcharX(unsigned char x) {
-+    return xs[x];
-+}
-+
-+#define xstr(s) str(s)
-+#define str(s) #s
-+int (*volatile fptr)(unsigned char x);
-+volatile int a;
-+volatile int b;
-+
-+//////////////////////////////////
-+// Tests for passing and returning Structs
-+
-+// Complex-like data types
-+typedef struct {
-+    jint real;
-+    jint imag;
-+} complex_t;
-+
-+DLLEXPORT complex_t ctest(complex_t a) {
-+    a.real += 1;
-+    a.imag -= 2;
-+    return a;
-+}
-+
-+DLLEXPORT complex double cgtest(complex double a) {
-+    //Unpack a ComplexPair{Float64} struct
-+    if (verbose) fprintf(stderr,"%g + %g i\n", creal(a), cimag(a));
-+    a += 1 - (2.0*I);
-+    return a;
-+}
-+
-+DLLEXPORT complex double* cgptest(complex double *a) {
-+    //Unpack a ComplexPair{Float64} struct
-+    if (verbose) fprintf(stderr,"%g + %g i\n", creal(*a), cimag(*a));
-+    *a += 1 - (2.0*I);
-+    return a;
-+}
-+
-+DLLEXPORT complex float cftest(complex float a) {
-+    //Unpack a ComplexPair{Float32} struct
-+    if (verbose) fprintf(stderr,"%g + %g i\n", creal(a), cimag(a));
-+    a += 1 - (2.0*I);
-+    return a;
-+}
-+
-+DLLEXPORT complex float* cfptest(complex float *a) {
-+    //Unpack a ComplexPair{Float64} struct
-+    if (verbose) fprintf(stderr,"%g + %g i\n", creal(*a), cimag(*a));
-+    *a += 1 - (2.0*I);
-+    return a;
-+}
-+
-+DLLEXPORT complex_t* cptest(complex_t *a) {
-+    //Unpack a ComplexPair{Int} struct pointer
-+    if (verbose) fprintf(stderr,"%lld + %lld i\n", (long long)a->real, (long long)a->imag);
-+    a->real += 1;
-+    a->imag -= 2;
-+    return a;
-+}
-+
-+DLLEXPORT complex_t* cptest_static(complex_t *a) {
-+    complex_t *b = (complex_t*)malloc(sizeof(complex_t));
-+    b->real = a->real;
-+    b->imag = a->imag;
-+    return b;
-+}
-+
-+// Native-like data types
-+DLLEXPORT char* stest(char *x) {
-+    //Print a character Array
-+    if (verbose) fprintf(stderr,"%s\n", x);
-+    return x;
-+}
-+
-+struct jl_asciistring_t { struct { void* type; char* data; } *data; };
-+char* sptest(struct jl_asciistring_t str) {
-+    //Unpack an ASCIIString
-+    return stest(str.data->data);
-+}
-+
-+// Various sized data types
-+typedef struct {
-+    float x;
-+    double y;
-+} struct1;
-+
-+typedef struct {
-+    struct { int32_t x; } x;
-+    struct { int32_t y; } y;
-+} struct2a;
-+
-+typedef struct {
-+    int32_t x;
-+    int32_t y;
-+} struct2b;
-+
-+typedef struct {
-+    struct { int64_t x; } x;
-+    struct { int64_t y; } y;
-+} struct3a;
-+
-+typedef struct {
-+    int64_t x;
-+    int64_t y;
-+} struct3b;
-+
-+typedef struct {
-+    int32_t x;
-+    int32_t y;
-+    int32_t z;
-+} struct4;
-+
-+typedef struct {
-+    int32_t x;
-+    int32_t y;
-+    int32_t z;
-+    int32_t a;
-+} struct5;
-+
-+typedef struct {
-+    int64_t x;
-+    int64_t y;
-+    int64_t z;
-+} struct6;
-+
-+typedef struct {
-+    int64_t x;
-+    char y;
-+} struct7;
-+
-+typedef struct {
-+    int32_t x;
-+    char y;
-+} struct8;
-+
-+typedef struct {
-+    int32_t x;
-+    int16_t y;
-+} struct9;
-+
-+typedef struct {
-+    char x;
-+    char y;
-+    char z;
-+    char a;
-+} struct10;
-+
-+typedef struct {
-+    complex float x;
-+} struct11;
-+
-+typedef struct {
-+    complex float x;
-+    complex float y;
-+} struct12;
-+
-+typedef struct {
-+    complex double x;
-+} struct13;
-+
-+typedef struct {
-+    float x;
-+    float y;
-+} struct14;
-+
-+typedef struct {
-+    double x;
-+    double y;
-+} struct15;
-+
-+typedef struct {
-+    jint x;
-+    jint y;
-+    char z;
-+} struct_big;
-+
-+DLLEXPORT struct1 test_1(struct1 a) {
-+    //Unpack a "small" struct { float, double }
-+    if (verbose) fprintf(stderr,"%g + %g i\n", a.x, a.y);
-+    a.x += 1;
-+    a.y -= 2;
-+    return a;
-+}
-+
-+DLLEXPORT struct1 add_1(struct1 a, struct1 b) {
-+    // Two small structs
-+    struct1 c;
-+    c.x = a.x + b.x;
-+    c.y = a.y + b.y;
-+    return c;
-+}
-+
-+DLLEXPORT struct2a test_2a(struct2a a) {
-+    //Unpack a ComplexPair{Int32} struct
-+    if (verbose) fprintf(stderr,"%" PRId32 " + %" PRId32 " i\n", a.x.x, a.y.y);
-+    a.x.x += 1;
-+    a.y.y -= 2;
-+    return a;
-+}
-+
-+DLLEXPORT struct2b test_2b(struct2b a) {
-+    //Unpack a ComplexPair{Int32} struct
-+    if (verbose) fprintf(stderr,"%" PRId32 " + %" PRId32 " i\n", a.x, a.y);
-+    a.x += 1;
-+    a.y -= 2;
-+    return a;
-+}
-+
-+DLLEXPORT struct3a test_3a(struct3a a) {
-+    //Unpack a ComplexPair{Int64} struct
-+    if (verbose) fprintf(stderr,"%" PRId64 " + %" PRId64 " i\n", a.x.x, a.y.y);
-+    a.x.x += 1;
-+    a.y.y -= 2;
-+    return a;
-+}
-+
-+DLLEXPORT struct3b test_3b(struct3b a) {
-+    //Unpack a ComplexPair{Int64} struct
-+    if (verbose) fprintf(stderr,"%" PRId64 " + %" PRId64 " i\n", a.x, a.y);
-+    a.x += 1;
-+    a.y -= 2;
-+    return a;
-+}
-+
-+DLLEXPORT struct4 test_4(struct4 a)
-+{
-+    if (verbose) fprintf(stderr,"(%" PRId32 ",%" PRId32 ",%" PRId32 ")\n", a.x, a.y, a.z);
-+    a.x += 1;
-+    a.y -= 2;
-+    a.z += 3;
-+    return a;
-+}
-+
-+
-+DLLEXPORT struct5 test_5(struct5 a)
-+{
-+    if (verbose) fprintf(stderr,"(%" PRId32 ",%" PRId32 ",%" PRId32 ",%" PRId32 ")\n", a.x, a.y, a.z, a.a);
-+    a.x += 1;
-+    a.y -= 2;
-+    a.z += 3;
-+    a.a -= 4;
-+
-+    return a;
-+}
-+
-+
-+DLLEXPORT struct6 test_6(struct6 a)
-+{
-+    if (verbose) fprintf(stderr,"(%" PRId64 ",%" PRId64 ",%" PRId64 ")\n", a.x, a.y, a.z);
-+    a.x += 1;
-+    a.y -= 2;
-+    a.z += 3;
-+    return a;
-+}
-+
-+DLLEXPORT struct7 test_7(struct7 a)
-+{
-+    if (verbose) fprintf(stderr,"(%" PRId64 ",%" PRId8 ")\n", a.x, a.y);
-+    a.x += 1;
-+    a.y -= 2;
-+    return a;
-+}
-+
-+DLLEXPORT struct8 test_8(struct8 a)
-+{
-+    if (verbose) fprintf(stderr,"(%" PRId32 ",%" PRId8 ")\n", a.x, a.y);
-+    a.x += 1;
-+    a.y -= 2;
-+    return a;
-+}
-+
-+DLLEXPORT struct9 test_9(struct9 a)
-+{
-+    if (verbose) fprintf(stderr,"(%" PRId32 ",%" PRId16 ")\n", a.x, a.y);
-+    a.x += 1;
-+    a.y -= 2;
-+    return a;
-+}
-+
-+DLLEXPORT struct10 test_10(struct10 a)
-+{
-+    if (verbose) fprintf(stderr,"(%" PRId8 ",%" PRId8 ",%" PRId8 ",%" PRId8 ")\n", a.x, a.y, a.z, a.a);
-+    a.x += 1;
-+    a.y -= 2;
-+    a.z += 3;
-+    a.a -= 4;
-+
-+    return a;
-+}
-+
-+DLLEXPORT struct14 test_14(struct14 a) {
-+    //The C equivalent of a  ComplexPair{Float32} struct (but without special complex ABI)
-+    if (verbose) fprintf(stderr,"%g + %g i\n", a.x, a.y);
-+    a.x += 1;
-+    a.y -= 2;
-+    return a;
-+}
-+
-+DLLEXPORT struct15 test_15(struct15 a) {
-+    //The C equivalent of a  ComplexPair{Float32} struct (but without special complex ABI)
-+    if (verbose) fprintf(stderr,"%g + %g i\n", a.x, a.y);
-+    a.x += 1;
-+    a.y -= 2;
-+    return a;
-+}
-+
-+#define int128_t struct3b
-+DLLEXPORT int128_t test_128(int128_t a) {
-+    //Unpack a Int128
-+    if (verbose) fprintf(stderr,"0x%016" PRIx64 "%016" PRIx64 "\n", a.y, a.x);
-+    a.x += 1;
-+    if (a.x == 0)
-+        a.y += 1;
-+    return a;
-+}
-+
-+DLLEXPORT struct_big test_big(struct_big a) {
-+    //Unpack a "big" struct { int, int, char }
-+    if (verbose) fprintf(stderr,"%lld %lld %c\n", (long long)a.x, (long long)a.y, a.z);
-+    a.x += 1;
-+    a.y -= 2;
-+    a.z -= 'A';
-+    return a;
-+}
-+
-+//////////////////////////////////
-+// Turn off verbose for automated tests, leave on for debugging
-+DLLEXPORT void set_verbose(int level) {
-+    verbose = level;
-+}
-+
-+DLLEXPORT void *test_echo_p(void *p) {
-+    return p;
-+}
-diff --git a/src/cgutils.cpp b/src/cgutils.cpp
-index 6fac7a1..48b7989 100644
---- a/src/cgutils.cpp
-+++ b/src/cgutils.cpp
-@@ -732,7 +732,7 @@ static Type *julia_struct_to_llvm(jl_value_t *jt)
-             for(i = 0; i < ntypes; i++) {
-                 jl_value_t *ty = jl_svecref(jst->types, i);
-                 Type *lty;
--                if (jst->fields[i].isptr)
-+                if (jl_field_isptr(jst, i))
-                     lty = jl_pvalue_llvmt;
-                 else
-                     lty = ty==(jl_value_t*)jl_bool_type ? T_int8 : julia_type_to_llvm(ty);
-@@ -800,8 +800,9 @@ static bool is_datatype_all_pointers(jl_datatype_t *dt)
- {
-     size_t i, l = jl_datatype_nfields(dt);
-     for(i=0; i < l; i++) {
--        if (!dt->fields[i].isptr)
-+        if (!jl_field_isptr(dt, i)) {
-             return false;
-+        }
-     }
-     return true;
- }
-@@ -2007,7 +2008,7 @@ static Value *emit_setfield(jl_datatype_t *sty, Value *strct, size_t idx0,
-             builder.CreateGEP(builder.CreateBitCast(strct, T_pint8),
-                               ConstantInt::get(T_size, jl_field_offset(sty,idx0)));
-         jl_value_t *jfty = jl_svecref(sty->types, idx0);
--        if (sty->fields[idx0].isptr) {
-+        if (jl_field_isptr(sty, idx0)) {
-             rhs = boxed(rhs, ctx);
-             builder.CreateStore(rhs,
-                                 builder.CreateBitCast(addr, jl_ppvalue_llvmt));
-@@ -2072,7 +2073,7 @@ static Value *emit_new_struct(jl_value_t *ty, size_t nargs, jl_value_t **args, j
-             }
-         }
-         size_t j = 0;
--        if (nf > 0 && sty->fields[0].isptr && nargs>1) {
-+        if (nf > 0 && jl_field_isptr(sty, 0) && nargs>1) {
-             // emit first field before allocating struct to save
-             // a couple store instructions. avoids initializing
-             // the first field to NULL, and sometimes the GC root
-@@ -2098,14 +2099,15 @@ static Value *emit_new_struct(jl_value_t *ty, size_t nargs, jl_value_t **args, j
-             make_gcroot(strct, ctx);
-         }
-         for(size_t i=j; i < nf; i++) {
--            if (sty->fields[i].isptr) {
-+            if (jl_field_isptr(sty, i)) {
-                 emit_setfield(sty, strct, i, V_null, ctx, false, false);
-             }
-         }
-         bool need_wb = false;
-         for(size_t i=j+1; i < nargs; i++) {
-             Value *rhs = emit_expr(args[i],ctx);
--            if (sty->fields[i-1].isptr && rhs->getType() != jl_pvalue_llvmt) {
-+            if (jl_field_isptr(sty, i - 1) &&
-+                rhs->getType() != jl_pvalue_llvmt) {
-                 if (!needroots) {
-                     // if this struct element needs boxing and we haven't rooted
-                     // the struct, root it now.
-diff --git a/src/codegen.cpp b/src/codegen.cpp
-index 96001ab..5b9d21b 100644
---- a/src/codegen.cpp
-+++ b/src/codegen.cpp
-@@ -1264,6 +1264,21 @@ extern "C" void jl_write_malloc_log(void)
- 
- // --- constant determination ---
- 
-+static void show_source_loc(JL_STREAM *out, jl_codectx_t *ctx)
-+{
-+    if (ctx == NULL) return;
-+    jl_printf(out, "in %s at %s:%d", ctx->linfo->name->name, ctx->linfo->file->name, ctx->lineno);
-+}
-+
-+extern "C" void jl_binding_deprecation_warning(jl_binding_t *b);
-+
-+static void cg_bdw(jl_binding_t *b, jl_codectx_t *ctx)
-+{
-+    jl_binding_deprecation_warning(b);
-+    show_source_loc(JL_STDERR, ctx);
-+    jl_printf(JL_STDERR, "\n");
-+}
-+
- // try to statically evaluate, NULL if not possible
- extern "C"
- jl_value_t *jl_static_eval(jl_value_t *ex, void *ctx_, jl_module_t *mod,
-@@ -1316,8 +1331,10 @@ jl_value_t *jl_static_eval(jl_value_t *ex, void *ctx_, jl_module_t *mod,
-         s = (jl_sym_t*)jl_globalref_name(ex);
-         if (s && jl_is_symbol(s)) {
-             jl_binding_t *b = jl_get_binding(jl_globalref_mod(ex), s);
--            if (b && b->constp)
-+            if (b && b->constp) {
-+                if (b->deprecated) cg_bdw(b, ctx);
-                 return b->value;
-+            }
-         }
-         return NULL;
-     }
-@@ -1332,8 +1349,10 @@ jl_value_t *jl_static_eval(jl_value_t *ex, void *ctx_, jl_module_t *mod,
-                     s = (jl_sym_t*)jl_static_eval(jl_exprarg(e,2),ctx,mod,sp,ast,sparams,allow_alloc);
-                     if (m && jl_is_module(m) && s && jl_is_symbol(s)) {
-                         jl_binding_t *b = jl_get_binding(m, s);
--                        if (b && b->constp)
-+                        if (b && b->constp) {
-+                            if (b->deprecated) cg_bdw(b, ctx);
-                             return b->value;
-+                        }
-                     }
-                 }
-                 else if (fptr == &jl_f_tuple || fptr == &jl_f_instantiate_type) {
-@@ -1602,7 +1621,7 @@ static bool is_getfield_nonallocating(jl_datatype_t *ty, jl_value_t *fld)
-     else if (jl_is_quotenode(fld) && jl_is_long(jl_fieldref(fld,0)))
-         idx = jl_unbox_long(jl_fieldref(fld,0))-1;
-     for(size_t i=0; i < jl_svec_len(ty->types); i++) {
--        if (!(ty->fields[i].isptr || (idx >= 0 && (size_t)idx != i)))
-+        if (!(jl_field_isptr(ty,i) || (idx >= 0 && (size_t)idx != i)))
-             return false;
-     }
-     return true;
-@@ -2377,7 +2396,7 @@ static Value *emit_known_call(jl_value_t *ff, jl_value_t **args, size_t nargs,
-                     // TODO: attempt better codegen for approximate types
-                     Value *strct = emit_expr(args[1], ctx);
-                     Value *rhs;
--                    if (sty->fields[idx].isptr)
-+                    if (jl_field_isptr(sty, idx))
-                         rhs = emit_expr(args[3], ctx);
-                     else
-                         rhs = emit_unboxed(args[3], ctx);
-@@ -2803,6 +2822,7 @@ static Value *global_binding_pointer(jl_module_t *m, jl_sym_t *s,
-             p->addIncoming(bval, not_found);
-             return julia_binding_gv(builder.CreateBitCast(p,jl_ppvalue_llvmt));
-         }
-+        if (b->deprecated) cg_bdw(b, ctx);
-     }
-     if (pbnd) *pbnd = b;
-     return julia_binding_gv(b);
-diff --git a/src/dump.c b/src/dump.c
-index ce24265..45e207f 100644
---- a/src/dump.c
-+++ b/src/dump.c
-@@ -514,6 +514,7 @@ static void jl_serialize_datatype(ios_t *s, jl_datatype_t *dt)
-     write_int32(s, dt->size);
-     int has_instance = !!(dt->instance != NULL);
-     write_uint8(s, dt->abstract | (dt->mutabl<<1) | (dt->pointerfree<<2) | (has_instance<<3));
-+    write_int8(s, dt->fielddesc_type);
-     if (!dt->abstract) {
-         write_uint16(s, dt->ninitialized);
-         if (mode != MODE_MODULE && mode != MODE_MODULE_POSTWORK) {
-@@ -525,7 +526,8 @@ static void jl_serialize_datatype(ios_t *s, jl_datatype_t *dt)
-     if (nf > 0) {
-         write_int32(s, dt->alignment);
-         write_int8(s, dt->haspadding);
--        ios_write(s, (char*)&dt->fields[0], nf*sizeof(jl_fielddesc_t));
-+        size_t fieldsize = jl_fielddesc_size(dt->fielddesc_type);
-+        ios_write(s, (char*)&dt->fields32[0], nf * fieldsize);
-         jl_serialize_value(s, dt->types);
-     }
- 
-@@ -563,7 +565,7 @@ static void jl_serialize_module(ios_t *s, jl_module_t *m)
-                 jl_serialize_value(s, b->value);
-                 jl_serialize_value(s, b->globalref);
-                 jl_serialize_value(s, b->owner);
--                write_int8(s, (b->constp<<2) | (b->exportp<<1) | (b->imported));
-+                write_int8(s, (b->deprecated<<3) | (b->constp<<2) | (b->exportp<<1) | (b->imported));
-                 jl_serialize_gv(s, (jl_value_t*)b);
-             }
-         }
-@@ -896,7 +898,7 @@ static void jl_serialize_value_(ios_t *s, jl_value_t *v)
-             }
-             else {
-                 for(size_t i=0; i < nf; i++) {
--                    if (t->fields[i].size > 0) {
-+                    if (jl_field_size(t, i) > 0) {
-                         jl_serialize_value(s, jl_get_nth_field(v, i));
-                     }
-                 }
-@@ -1082,6 +1084,7 @@ static jl_value_t *jl_deserialize_datatype(ios_t *s, int pos, jl_value_t **loc)
-     uint16_t nf = read_uint16(s);
-     size_t size = read_int32(s);
-     uint8_t flags = read_uint8(s);
-+    uint8_t fielddesc_type = read_int8(s);
-     jl_datatype_t *dt;
-     if (tag == 2)
-         dt = jl_int32_type;
-@@ -1090,7 +1093,7 @@ static jl_value_t *jl_deserialize_datatype(ios_t *s, int pos, jl_value_t **loc)
-     else if (tag == 4)
-         dt = jl_int64_type;
-     else
--        dt = jl_new_uninitialized_datatype(nf);
-+        dt = jl_new_uninitialized_datatype(nf, fielddesc_type);
-     assert(tree_literal_values==NULL && mode != MODE_AST);
-     backref_list.items[pos] = dt;
-     dt->size = size;
-@@ -1125,7 +1128,8 @@ static jl_value_t *jl_deserialize_datatype(ios_t *s, int pos, jl_value_t **loc)
-     if (nf > 0) {
-         dt->alignment = read_int32(s);
-         dt->haspadding = read_int8(s);
--        ios_read(s, (char*)&dt->fields[0], nf*sizeof(jl_fielddesc_t));
-+        size_t fieldsize = jl_fielddesc_size(fielddesc_type);
-+        ios_read(s, (char*)&dt->fields32[0], nf * fieldsize);
-         dt->types = (jl_svec_t*)jl_deserialize_value(s, (jl_value_t**)&dt->types);
-         jl_gc_wb(dt, dt->types);
-     }
-@@ -1426,6 +1430,7 @@ static jl_value_t *jl_deserialize_value_(ios_t *s, jl_value_t *vtag, jl_value_t
-             b->owner = (jl_module_t*)jl_deserialize_value(s, (jl_value_t**)&b->owner);
-             if (b->owner != NULL) jl_gc_wb(m, b->owner);
-             int8_t flags = read_int8(s);
-+            b->deprecated = (flags>>3) & 1;
-             b->constp = (flags>>2) & 1;
-             b->exportp = (flags>>1) & 1;
-             b->imported = (flags) & 1;
-@@ -1510,8 +1515,8 @@ static jl_value_t *jl_deserialize_value_(ios_t *s, jl_value_t *vtag, jl_value_t
-         else {
-             char *data = (char*)jl_data_ptr(v);
-             for(i=0; i < nf; i++) {
--                if (dt->fields[i].size > 0) {
--                    if (dt->fields[i].isptr) {
-+                if (jl_field_size(dt,i) > 0) {
-+                    if (jl_field_isptr(dt,i)) {
-                         jl_value_t **fld = (jl_value_t**)(data+jl_field_offset(dt, i));
-                         *fld = jl_deserialize_value(s, fld);
-                     }
-diff --git a/src/gc.c b/src/gc.c
-index 993b9c9..c02bbbd 100644
---- a/src/gc.c
-+++ b/src/gc.c
-@@ -1734,21 +1734,25 @@ static int push_root(jl_value_t *v, int d, int bits)
-     else if (gc_typeof(vt) == (jl_value_t*)jl_datatype_type) {
-         jl_datatype_t *dt = (jl_datatype_t*)vt;
-         size_t dtsz;
--        if (dt == jl_datatype_type)
--            dtsz = NWORDS(sizeof(jl_datatype_t) + jl_datatype_nfields(v)*sizeof(jl_fielddesc_t))*sizeof(void*);
--        else
-+        if (dt == jl_datatype_type) {
-+            size_t fieldsize =
-+                jl_fielddesc_size(((jl_datatype_t*)v)->fielddesc_type);
-+            dtsz = NWORDS(sizeof(jl_datatype_t) +
-+                          jl_datatype_nfields(v) * fieldsize) * sizeof(void*);
-+        } else {
-             dtsz = jl_datatype_size(dt);
-+        }
-         MARK(v, bits = gc_setmark(v, dtsz, GC_MARKED_NOESC));
-         int nf = (int)jl_datatype_nfields(dt);
-         // TODO check if there is a perf improvement for objects with a lot of fields
-         // int fdsz = sizeof(void*)*nf;
-         // void** children = alloca(fdsz);
-         // int ci = 0;
--        jl_fielddesc_t* fields = dt->fields;
-         for(int i=0; i < nf; i++) {
--            if (fields[i].isptr) {
-+            if (jl_field_isptr(dt, i)) {
-                 nptr++;
--                jl_value_t **slot = (jl_value_t**)((char*)v + fields[i].offset);
-+                jl_value_t **slot = (jl_value_t**)((char*)v +
-+                                                   jl_field_offset(dt, i));
-                 jl_value_t *fld = *slot;
-                 if (fld) {
-                     verify_parent2("object", v, slot, "field(%d)", i);
-diff --git a/src/intrinsics.cpp b/src/intrinsics.cpp
-index b2808ab..5b5282f 100644
---- a/src/intrinsics.cpp
-+++ b/src/intrinsics.cpp
-@@ -663,7 +663,7 @@ static Value *emit_pointerref(jl_value_t *e, jl_value_t *i, jl_codectx_t *ctx)
-         uint64_t size = jl_datatype_size(ety);
-         Value *strct =
-             builder.CreateCall(prepare_call(jlallocobj_func),
--                               ConstantInt::get(T_size, sizeof(void*)+size));
-+                               ConstantInt::get(T_size, size));
-         builder.CreateStore(literal_pointer_val((jl_value_t*)ety),
-                             emit_typeptr_addr(strct));
-         im1 = builder.CreateMul(im1, ConstantInt::get(T_size,
-diff --git a/src/jl_uv.c b/src/jl_uv.c
-index 4348d52..2cb47ac 100644
---- a/src/jl_uv.c
-+++ b/src/jl_uv.c
-@@ -377,7 +377,7 @@ static void jl_write(uv_stream_t *stream, const char *str, size_t n)
-     assert(stream);
-     static_assert(offsetof(uv_stream_t,type) == offsetof(ios_t,bm) &&
-         sizeof(((uv_stream_t*)0)->type) == sizeof(((ios_t*)0)->bm),
--	   "UV and ios layout mismatch");
-+            "UV and ios layout mismatch");
- 
-     uv_file fd = 0;
- 
-diff --git a/src/jltypes.c b/src/jltypes.c
-index da8cbbf..7e62e8d 100644
---- a/src/jltypes.c
-+++ b/src/jltypes.c
-@@ -2059,7 +2059,7 @@ static jl_value_t *inst_datatype(jl_datatype_t *dt, jl_svec_t *p, jl_value_t **i
-     }
- 
-     // create and initialize new type
--    ndt = jl_new_uninitialized_datatype(istuple ? ntp : dt->nfields);
-+    ndt = jl_new_uninitialized_datatype(istuple ? ntp : dt->nfields, 2); // TODO
-     // associate these parameters with the new type on
-     // the stack, in case one of its field types references it.
-     top.tt = (jl_datatype_t*)ndt;
-@@ -3148,12 +3148,12 @@ extern void jl_init_int32_int64_cache(void);
- void jl_init_types(void)
- {
-     // create base objects
--    jl_datatype_type = jl_new_uninitialized_datatype(10);
-+    jl_datatype_type = jl_new_uninitialized_datatype(10, 1);
-     jl_set_typeof(jl_datatype_type, jl_datatype_type);
--    jl_typename_type = jl_new_uninitialized_datatype(7);
--    jl_sym_type = jl_new_uninitialized_datatype(0);
-+    jl_typename_type = jl_new_uninitialized_datatype(7, 1);
-+    jl_sym_type = jl_new_uninitialized_datatype(0, 1);
-     jl_symbol_type = jl_sym_type;
--    jl_simplevector_type = jl_new_uninitialized_datatype(1);
-+    jl_simplevector_type = jl_new_uninitialized_datatype(1, 1);
- 
-     jl_emptysvec = (jl_svec_t*)newobj((jl_value_t*)jl_simplevector_type, 1);
-     jl_svec_set_len_unsafe(jl_emptysvec, 0);
-diff --git a/src/julia.h b/src/julia.h
-index 22e19de..a1089a6 100644
---- a/src/julia.h
-+++ b/src/julia.h
-@@ -249,13 +249,22 @@ typedef struct {
- } jl_uniontype_t;
- 
- typedef struct {
-+    uint8_t offset;   // offset relative to data start, excluding type tag
-+    uint8_t size:7;
-+    uint8_t isptr:1;
-+} jl_fielddesc8_t;
-+
-+typedef struct {
-     uint16_t offset;   // offset relative to data start, excluding type tag
-     uint16_t size:15;
-     uint16_t isptr:1;
--} jl_fielddesc_t;
-+} jl_fielddesc16_t;
- 
--#define JL_FIELD_MAX_OFFSET ((1ul << 16) - 1ul)
--#define JL_FIELD_MAX_SIZE ((1ul << 15) - 1ul)
-+typedef struct {
-+    uint32_t offset;   // offset relative to data start, excluding type tag
-+    uint32_t size:31;
-+    uint32_t isptr:1;
-+} jl_fielddesc32_t;
- 
- typedef struct _jl_datatype_t {
-     JL_DATA_TYPE
-@@ -271,12 +280,17 @@ typedef struct _jl_datatype_t {
-     int32_t ninitialized;
-     // hidden fields:
-     uint32_t nfields;
--    uint32_t alignment : 31;  // strictest alignment over all fields
-+    uint32_t alignment : 29;  // strictest alignment over all fields
-     uint32_t haspadding : 1;  // has internal undefined bytes
-+    uint32_t fielddesc_type : 2; // 0 -> 8, 1 -> 16, 2 -> 32
-     uint32_t uid;
-     void *struct_decl;  //llvm::Value*
-     void *ditype; // llvm::MDNode* to be used as llvm::DIType(ditype)
--    jl_fielddesc_t fields[];
-+    union {
-+        jl_fielddesc8_t fields8[0];
-+        jl_fielddesc16_t fields16[0];
-+        jl_fielddesc32_t fields32[0];
-+    };
- } jl_datatype_t;
- 
- typedef struct {
-@@ -301,6 +315,7 @@ typedef struct {
-     unsigned constp:1;
-     unsigned exportp:1;
-     unsigned imported:1;
-+    unsigned deprecated:1;
- } jl_binding_t;
- 
- typedef struct _jl_module_t {
-@@ -690,14 +705,57 @@ STATIC_INLINE jl_value_t *jl_cellset(void *a, size_t i, void *x)
- #define jl_data_ptr(v)  (((jl_value_t*)v)->fieldptr)
- 
- // struct type info
--#define jl_field_offset(st,i)  (((jl_datatype_t*)st)->fields[i].offset)
--#define jl_field_size(st,i)    (((jl_datatype_t*)st)->fields[i].size)
--#define jl_field_isptr(st,i)   (((jl_datatype_t*)st)->fields[i].isptr)
- #define jl_field_name(st,i)    (jl_sym_t*)jl_svecref(((jl_datatype_t*)st)->name->names, (i))
- #define jl_field_type(st,i)    jl_svecref(((jl_datatype_t*)st)->types, (i))
- #define jl_datatype_size(t)    (((jl_datatype_t*)t)->size)
- #define jl_datatype_nfields(t) (((jl_datatype_t*)(t))->nfields)
- 
-+#define DEFINE_FIELD_ACCESSORS(f)                                       \
-+    static inline uint32_t jl_field_##f(jl_datatype_t *st, int i)       \
-+    {                                                                   \
-+        if (st->fielddesc_type == 0) {                                  \
-+            return st->fields8[i].f;                                    \
-+        }                                                               \
-+        else if (st->fielddesc_type == 1) {                             \
-+            return st->fields16[i].f;                                   \
-+        }                                                               \
-+        else {                                                          \
-+            return st->fields32[i].f;                                   \
-+        }                                                               \
-+    }                                                                   \
-+    static inline void jl_field_set##f(jl_datatype_t *st, int i,        \
-+                                       uint32_t val)                    \
-+    {                                                                   \
-+        if (st->fielddesc_type == 0) {                                  \
-+            st->fields8[i].f = val;                                     \
-+        }                                                               \
-+        else if (st->fielddesc_type == 1) {                             \
-+            st->fields16[i].f = val;                                    \
-+        }                                                               \
-+        else {                                                          \
-+            st->fields32[i].f = val;                                    \
-+        }                                                               \
-+    }
-+
-+DEFINE_FIELD_ACCESSORS(offset)
-+DEFINE_FIELD_ACCESSORS(size)
-+DEFINE_FIELD_ACCESSORS(isptr)
-+
-+static inline uint32_t jl_fielddesc_size(int8_t fielddesc_type)
-+{
-+    if (fielddesc_type == 0) {
-+        return sizeof(jl_fielddesc8_t);
-+    }
-+    else if (fielddesc_type == 1) {
-+        return sizeof(jl_fielddesc16_t);
-+    }
-+    else {
-+        return sizeof(jl_fielddesc32_t);
-+    }
-+}
-+
-+#undef DEFINE_FIELD_ACCESSORS
-+
- // basic predicates -----------------------------------------------------------
- #define jl_is_nothing(v)     (((jl_value_t*)(v)) == ((jl_value_t*)jl_nothing))
- #define jl_is_tuple(v)       (((jl_datatype_t*)jl_typeof(v))->name == jl_tuple_typename)
-@@ -882,7 +940,8 @@ jl_value_t *jl_apply_type_(jl_value_t *tc, jl_value_t **params, size_t n);
- jl_value_t *jl_instantiate_type_with(jl_value_t *t, jl_value_t **env, size_t n);
- jl_datatype_t *jl_new_abstracttype(jl_value_t *name, jl_datatype_t *super,
-                                    jl_svec_t *parameters);
--DLLEXPORT jl_datatype_t *jl_new_uninitialized_datatype(size_t nfields);
-+DLLEXPORT jl_datatype_t *jl_new_uninitialized_datatype(size_t nfields,
-+                                                       int8_t fielddesc_type);
- DLLEXPORT jl_datatype_t *jl_new_datatype(jl_sym_t *name, jl_datatype_t *super,
-                                          jl_svec_t *parameters,
-                                          jl_svec_t *fnames, jl_svec_t *ftypes,
-diff --git a/src/module.c b/src/module.c
-index 4162113..ec21d7f 100644
---- a/src/module.c
-+++ b/src/module.c
-@@ -76,6 +76,7 @@ static jl_binding_t *new_binding(jl_sym_t *name)
-     b->constp = 0;
-     b->exportp = 0;
-     b->imported = 0;
-+    b->deprecated = 0;
-     return b;
- }
- 
-@@ -232,11 +233,15 @@ DLLEXPORT jl_binding_t *jl_get_binding(jl_module_t *m, jl_sym_t *var)
-     return jl_get_binding_(m, var, NULL);
- }
- 
-+void jl_binding_deprecation_warning(jl_binding_t *b);
-+
- DLLEXPORT jl_binding_t *jl_get_binding_or_error(jl_module_t *m, jl_sym_t *var)
- {
-     jl_binding_t *b = jl_get_binding_(m, var, NULL);
-     if (b == NULL)
-         jl_undefined_var_error(var);
-+    if (b->deprecated)
-+        jl_binding_deprecation_warning(b);
-     return b;
- }
- 
-@@ -324,6 +329,7 @@ static void module_import_(jl_module_t *to, jl_module_t *from, jl_sym_t *s,
-             jl_binding_t *nb = new_binding(s);
-             nb->owner = b->owner;
-             nb->imported = (explici!=0);
-+            nb->deprecated = b->deprecated;
-             *bp = nb;
-             jl_gc_wb_buf(to, nb);
-         }
-@@ -431,6 +437,7 @@ jl_value_t *jl_get_global(jl_module_t *m, jl_sym_t *var)
- {
-     jl_binding_t *b = jl_get_binding(m, var);
-     if (b == NULL) return NULL;
-+    if (b->deprecated) jl_binding_deprecation_warning(b);
-     return b->value;
- }
- 
-@@ -460,6 +467,35 @@ DLLEXPORT int jl_is_const(jl_module_t *m, jl_sym_t *var)
-     return b && b->constp;
- }
- 
-+DLLEXPORT void jl_deprecate_binding(jl_module_t *m, jl_sym_t *var)
-+{
-+    jl_binding_t *b = jl_get_binding(m, var);
-+    if (b) b->deprecated = 1;
-+}
-+
-+DLLEXPORT int jl_is_binding_deprecated(jl_module_t *m, jl_sym_t *var)
-+{
-+    jl_binding_t *b = jl_get_binding(m, var);
-+    return b && b->deprecated;
-+}
-+
-+void jl_binding_deprecation_warning(jl_binding_t *b)
-+{
-+    if (b->deprecated) {
-+        if (b->owner)
-+            jl_printf(JL_STDERR, "WARNING: %s.%s is deprecated", b->owner->name->name, b->name->name);
-+        else
-+            jl_printf(JL_STDERR, "WARNING: %s is deprecated", b->name->name);
-+        jl_value_t *v = b->value;
-+        if (v && (jl_is_type(v) || (jl_is_function(v) && jl_is_gf(v)))) {
-+            jl_printf(JL_STDERR, ", use ");
-+            jl_static_show(JL_STDERR, v);
-+            jl_printf(JL_STDERR, " instead");
-+        }
-+        jl_printf(JL_STDERR, ".\n");
-+    }
-+}
-+
- DLLEXPORT void jl_checked_assignment(jl_binding_t *b, jl_value_t *rhs)
- {
-     if (b->constp && b->value != NULL) {
-@@ -517,7 +553,8 @@ DLLEXPORT jl_value_t *jl_module_names(jl_module_t *m, int all, int imported)
-     for(i=1; i < m->bindings.size; i+=2) {
-         if (table[i] != HT_NOTFOUND) {
-             jl_binding_t *b = (jl_binding_t*)table[i];
--            if (b->exportp || ((imported || b->owner == m) && (all || m == jl_main_module))) {
-+            if ((b->exportp || ((imported || b->owner == m) && (all || m == jl_main_module))) &&
-+                !b->deprecated) {
-                 jl_array_grow_end(a, 1);
-                 //XXX: change to jl_arrayset if array storage allocation for Array{Symbols,1} changes:
-                 jl_cellset(a, jl_array_dim0(a)-1, (jl_value_t*)b->name);
-diff --git a/src/signals-apple.c b/src/signals-apple.c
-index ab3709b..5001166 100644
---- a/src/signals-apple.c
-+++ b/src/signals-apple.c
-@@ -9,7 +9,7 @@
- #include <sys/_types/_ucontext64.h>
- #else
- #define __need_ucontext64_t
--#include <machine/_structs.h>
-+#include <sys/_structs.h>
- #endif
- 
- static mach_port_t segv_port = 0;
-diff --git a/src/sys.c b/src/sys.c
-index 1953f06..4d88301 100644
---- a/src/sys.c
-+++ b/src/sys.c
-@@ -614,7 +614,7 @@ DLLEXPORT size_t jl_get_field_offset(jl_datatype_t *ty, int field)
- {
-     if (field > jl_datatype_nfields(ty))
-         jl_error("This type does not have that many fields");
--    return ty->fields[field].offset;
-+    return jl_field_offset(ty, field);
- }
- 
- DLLEXPORT size_t jl_get_alignment(jl_datatype_t *ty)
-diff --git a/src/toplevel.c b/src/toplevel.c
-index 9bc767f..1e5f34a 100644
---- a/src/toplevel.c
-+++ b/src/toplevel.c
-@@ -370,7 +370,7 @@ static jl_module_t *eval_import_path_(jl_array_t *args, int retrying)
-             }
-         }
-         if (retrying && require_func) {
--            jl_printf(JL_STDERR, "WARNING: requiring \"%s\" did not define a corresponding module.\n", var->name);
-+            jl_printf(JL_STDERR, "WARNING: requiring \"%s\" in module \"%s\" did not define a corresponding module.\n", var->name, jl_current_module->name->name);
-             return NULL;
-         }
-         else {
-diff --git a/test/Makefile b/test/Makefile
-index c7848e0..0f4ac1c 100644
---- a/test/Makefile
-+++ b/test/Makefile
-@@ -13,13 +13,5 @@ perf:
- 
- clean:
- 	@$(MAKE) -C perf $@
--	-rm -f libccalltest.$(SHLIB_EXT) ccalltest
- 
--.PHONY: $(TESTS) perf clean libccalltest
--
--all ccall libccalltest: libccalltest.$(SHLIB_EXT)
--libccalltest.$(SHLIB_EXT): ccalltest.c
--	@$(call PRINT_CC, $(CC) $(CFLAGS) $(DEBUGFLAGS) -O3 $< $(fPIC) -shared -o $@ $(LDFLAGS) -DCC="$(CC)")
--
--ccalltest: ccalltest.c libccalltest.$(SHLIB_EXT)
--	@$(call PRINT_CC, $(CC) $(CFLAGS) $(DEBUGFLAGS) -O3 $< -o $@ $(LDFLAGS) -DCC="$(CC)")
-+.PHONY: $(TESTS) perf clean
-\ No newline at end of file
-diff --git a/test/arrayops.jl b/test/arrayops.jl
-index 5012d4a..132e327 100644
---- a/test/arrayops.jl
-+++ b/test/arrayops.jl
-@@ -136,7 +136,7 @@ b = [4, 6, 2, -7, 1]
- ind = findin(a, b)
- @test ind == [3,4]
- 
--rt = Base.return_types(setindex!, Tuple{Array{Int32, 3}, UInt8, Vector{Int}, Float64, UnitRange{Int}})
-+rt = Base.return_types(setindex!, Tuple{Array{Int32, 3}, UInt8, Vector{Int}, Int16, UnitRange{Int}})
- @test length(rt) == 1 && rt[1] == Array{Int32, 3}
- 
- # construction
-@@ -915,8 +915,8 @@ for N = 1:Nmax
-     @test Base.return_types(getindex, Tuple{Array{Float32, N}, args...}) == [Array{Float32, N}]
-     @test Base.return_types(getindex, Tuple{BitArray{N}, args...}) == Any[BitArray{N}]
-     @test Base.return_types(setindex!, Tuple{Array{Float32, N}, Array{Int, 1}, args...}) == [Array{Float32, N}]
--    # Indexing with (UnitRange, UnitRange, Float64)
--    args = ntuple(d->d<N ? UnitRange{Int} : Float64, N)
-+    # Indexing with (UnitRange, UnitRange, Int)
-+    args = ntuple(d->d<N ? UnitRange{Int} : Int, N)
-     N > 1 && @test Base.return_types(getindex, Tuple{Array{Float32, N}, args...}) == [Array{Float32, N-1}]
-     N > 1 && @test Base.return_types(getindex, Tuple{BitArray{N}, args...}) == [BitArray{N-1}]
-     N > 1 && @test Base.return_types(setindex!, Tuple{Array{Float32, N}, Array{Int, 1}, args...}) == [Array{Float32, N}]
-@@ -1256,3 +1256,12 @@ module RetTypeDecl
-     @test @inferred(m.*[m,m]) == [m2,m2]
-     @test @inferred([m,m].*m) == [m2,m2]
- end
-+
-+# range, range ops
-+A = 1:5
-+B = 1.5:5.5
-+@test A + B == 2.5:2.0:10.5
-+
-+#slice dim error
-+A = zeros(5,5)
-+@test_throws ArgumentError slicedim(A,0,1)
-diff --git a/test/ccall.jl b/test/ccall.jl
-index 4cdc59b..6345232 100644
---- a/test/ccall.jl
-+++ b/test/ccall.jl
-@@ -2,7 +2,7 @@
- 
- import Base.copy, Base.==
- const verbose = false
--const libccalltest = joinpath(dirname(@__FILE__), "libccalltest")
-+const libccalltest = "libccalltest"
- ccall((:set_verbose, libccalltest), Void, (Int32,), verbose)
- 
- # Test for proper argument register truncation
-diff --git a/test/ccalltest.c b/test/ccalltest.c
-deleted file mode 100644
-index ef16718..0000000
---- a/test/ccalltest.c
-+++ /dev/null
-@@ -1,376 +0,0 @@
--// This file is a part of Julia. License is MIT: http://julialang.org/license
--
--#include <stdio.h>
--#include <stdlib.h>
--#include <complex.h>
--#include <stdint.h>
--#include <inttypes.h>
--int verbose = 1;
--
--#include "../src/support/platform.h"
--
--#ifdef _P64
--#define jint int64_t
--#else
--#define jint int32_t
--#endif
--
--//////////////////////////////////
--// Test for proper argument register truncation
--
--int xs[300] = {0,0,0,1,0};
--
--//int testUcharX(unsigned char x);
--#ifdef _COMPILER_MICROSOFT_
--int __declspec(noinline)
--#else
--int __attribute__((noinline))
--#endif
--testUcharX(unsigned char x) {
--    return xs[x];
--}
--
--#define xstr(s) str(s)
--#define str(s) #s
--int (*volatile fptr)(unsigned char x);
--volatile int a;
--volatile int b;
--
--//////////////////////////////////
--// Tests for passing and returning Structs
--
--// Complex-like data types
--typedef struct {
--    jint real;
--    jint imag;
--} complex_t;
--
--complex_t ctest(complex_t a) {
--    a.real += 1;
--    a.imag -= 2;
--    return a;
--}
--
--complex double cgtest(complex double a) {
--    //Unpack a ComplexPair{Float64} struct
--    if (verbose) fprintf(stderr,"%g + %g i\n", creal(a), cimag(a));
--    a += 1 - (2.0*I);
--    return a;
--}
--
--complex double* cgptest(complex double *a) {
--    //Unpack a ComplexPair{Float64} struct
--    if (verbose) fprintf(stderr,"%g + %g i\n", creal(*a), cimag(*a));
--    *a += 1 - (2.0*I);
--    return a;
--}
--
--complex float cftest(complex float a) {
--    //Unpack a ComplexPair{Float32} struct
--    if (verbose) fprintf(stderr,"%g + %g i\n", creal(a), cimag(a));
--    a += 1 - (2.0*I);
--    return a;
--}
--
--complex float* cfptest(complex float *a) {
--    //Unpack a ComplexPair{Float64} struct
--    if (verbose) fprintf(stderr,"%g + %g i\n", creal(*a), cimag(*a));
--    *a += 1 - (2.0*I);
--    return a;
--}
--
--complex_t* cptest(complex_t *a) {
--    //Unpack a ComplexPair{Int} struct pointer
--    if (verbose) fprintf(stderr,"%lld + %lld i\n", (long long)a->real, (long long)a->imag);
--    a->real += 1;
--    a->imag -= 2;
--    return a;
--}
--
--complex_t* cptest_static(complex_t *a) {
--    complex_t *b = (complex_t*)malloc(sizeof(complex_t));
--    b->real = a->real;
--    b->imag = a->imag;
--    return b;
--}
--
--// Native-like data types
--char* stest(char *x) {
--    //Print a character Array
--    if (verbose) fprintf(stderr,"%s\n", x);
--    return x;
--}
--
--struct jl_asciistring_t { struct { void* type; char* data; } *data; };
--char* sptest(struct jl_asciistring_t str) {
--    //Unpack an ASCIIString
--    return stest(str.data->data);
--}
--
--// Various sized data types
--typedef struct {
--    float x;
--    double y;
--} struct1;
--
--typedef struct {
--    struct { int32_t x; } x;
--    struct { int32_t y; } y;
--} struct2a;
--
--typedef struct {
--    int32_t x;
--    int32_t y;
--} struct2b;
--
--typedef struct {
--    struct { int64_t x; } x;
--    struct { int64_t y; } y;
--} struct3a;
--
--typedef struct {
--    int64_t x;
--    int64_t y;
--} struct3b;
--
--typedef struct {
--    int32_t x;
--    int32_t y;
--    int32_t z;
--} struct4;
--
--typedef struct {
--    int32_t x;
--    int32_t y;
--    int32_t z;
--    int32_t a;
--} struct5;
--
--typedef struct {
--    int64_t x;
--    int64_t y;
--    int64_t z;
--} struct6;
--
--typedef struct {
--    int64_t x;
--    char y;
--} struct7;
--
--typedef struct {
--    int32_t x;
--    char y;
--} struct8;
--
--typedef struct {
--    int32_t x;
--    int16_t y;
--} struct9;
--
--typedef struct {
--    char x;
--    char y;
--    char z;
--    char a;
--} struct10;
--
--typedef struct {
--    complex float x;
--} struct11;
--
--typedef struct {
--    complex float x;
--    complex float y;
--} struct12;
--
--typedef struct {
--    complex double x;
--} struct13;
--
--typedef struct {
--    float x;
--    float y;
--} struct14;
--
--typedef struct {
--    double x;
--    double y;
--} struct15;
--
--typedef struct {
--    jint x;
--    jint y;
--    char z;
--} struct_big;
--
--struct1 test_1(struct1 a) {
--    //Unpack a "small" struct { float, double }
--    if (verbose) fprintf(stderr,"%g + %g i\n", a.x, a.y);
--    a.x += 1;
--    a.y -= 2;
--    return a;
--}
--
--struct1 add_1(struct1 a, struct1 b) {
--    // Two small structs
--    struct1 c;
--    c.x = a.x + b.x;
--    c.y = a.y + b.y;
--    return c;
--}
--
--struct2a test_2a(struct2a a) {
--    //Unpack a ComplexPair{Int32} struct
--    if (verbose) fprintf(stderr,"%" PRId32 " + %" PRId32 " i\n", a.x.x, a.y.y);
--    a.x.x += 1;
--    a.y.y -= 2;
--    return a;
--}
--
--struct2b test_2b(struct2b a) {
--    //Unpack a ComplexPair{Int32} struct
--    if (verbose) fprintf(stderr,"%" PRId32 " + %" PRId32 " i\n", a.x, a.y);
--    a.x += 1;
--    a.y -= 2;
--    return a;
--}
--
--struct3a test_3a(struct3a a) {
--    //Unpack a ComplexPair{Int64} struct
--    if (verbose) fprintf(stderr,"%" PRId64 " + %" PRId64 " i\n", a.x.x, a.y.y);
--    a.x.x += 1;
--    a.y.y -= 2;
--    return a;
--}
--
--struct3b test_3b(struct3b a) {
--    //Unpack a ComplexPair{Int64} struct
--    if (verbose) fprintf(stderr,"%" PRId64 " + %" PRId64 " i\n", a.x, a.y);
--    a.x += 1;
--    a.y -= 2;
--    return a;
--}
--
--struct4 test_4(struct4 a)
--{
--    if (verbose) fprintf(stderr,"(%" PRId32 ",%" PRId32 ",%" PRId32 ")\n", a.x, a.y, a.z);
--    a.x += 1;
--    a.y -= 2;
--    a.z += 3;
--    return a;
--}
--
--
--struct5 test_5(struct5 a)
--{
--    if (verbose) fprintf(stderr,"(%" PRId32 ",%" PRId32 ",%" PRId32 ",%" PRId32 ")\n", a.x, a.y, a.z, a.a);
--    a.x += 1;
--    a.y -= 2;
--    a.z += 3;
--    a.a -= 4;
--
--    return a;
--}
--
--
--struct6 test_6(struct6 a)
--{
--    if (verbose) fprintf(stderr,"(%" PRId64 ",%" PRId64 ",%" PRId64 ")\n", a.x, a.y, a.z);
--    a.x += 1;
--    a.y -= 2;
--    a.z += 3;
--    return a;
--}
--
--struct7 test_7(struct7 a)
--{
--    if (verbose) fprintf(stderr,"(%" PRId64 ",%" PRId8 ")\n", a.x, a.y);
--    a.x += 1;
--    a.y -= 2;
--    return a;
--}
--
--struct8 test_8(struct8 a)
--{
--    if (verbose) fprintf(stderr,"(%" PRId32 ",%" PRId8 ")\n", a.x, a.y);
--    a.x += 1;
--    a.y -= 2;
--    return a;
--}
--
--struct9 test_9(struct9 a)
--{
--    if (verbose) fprintf(stderr,"(%" PRId32 ",%" PRId16 ")\n", a.x, a.y);
--    a.x += 1;
--    a.y -= 2;
--    return a;
--}
--
--struct10 test_10(struct10 a)
--{
--    if (verbose) fprintf(stderr,"(%" PRId8 ",%" PRId8 ",%" PRId8 ",%" PRId8 ")\n", a.x, a.y, a.z, a.a);
--    a.x += 1;
--    a.y -= 2;
--    a.z += 3;
--    a.a -= 4;
--
--    return a;
--}
--
--struct14 test_14(struct14 a) {
--    //The C equivalent of a  ComplexPair{Float32} struct (but without special complex ABI)
--    if (verbose) fprintf(stderr,"%g + %g i\n", a.x, a.y);
--    a.x += 1;
--    a.y -= 2;
--    return a;
--}
--
--struct15 test_15(struct15 a) {
--    //The C equivalent of a  ComplexPair{Float32} struct (but without special complex ABI)
--    if (verbose) fprintf(stderr,"%g + %g i\n", a.x, a.y);
--    a.x += 1;
--    a.y -= 2;
--    return a;
--}
--
--#define int128_t struct3b
--int128_t test_128(int128_t a) {
--    //Unpack a Int128
--    if (verbose) fprintf(stderr,"0x%016" PRIx64 "%016" PRIx64 "\n", a.y, a.x);
--    a.x += 1;
--    if (a.x == 0)
--        a.y += 1;
--    return a;
--}
--
--struct_big test_big(struct_big a) {
--    //Unpack a "big" struct { int, int, char }
--    if (verbose) fprintf(stderr,"%lld %lld %c\n", (long long)a.x, (long long)a.y, a.z);
--    a.x += 1;
--    a.y -= 2;
--    a.z -= 'A';
--    return a;
--}
--
--int main() {
--    fprintf(stderr,"all of the following should be 1 except xs[259] = 0\n");
--    a = 3;
--    b = 259;
--    fptr = (int (*)(unsigned char x))&testUcharX;
--    if ((((size_t)fptr)&((size_t)1)) == 1) fptr = NULL;
--    fprintf(stderr,"compiled with: '%s'\nxs[3] = %d\nxs[259] = %d\ntestUcharX(3) = %d\ntestUcharX(%d) = %d\nfptr(3) = %d\nfptr(259) = %d\n",
--           xstr(CC), xs[a], xs[b], testUcharX(a), b, testUcharX((unsigned char)b), fptr(a), fptr(b));
--    fprintf(stderr,"misc tests:\n");
--    struct1 a = {352.39422e23, 19.287577};
--    a = test_1(a);
--}
--
--//////////////////////////////////
--// Turn off verbose for automated tests, leave on for debugging
--void set_verbose(int level) {
--    verbose = level;
--}
--
--void *test_echo_p(void *p) {
--    return p;
--}
-diff --git a/test/compile.jl b/test/compile.jl
-index 43f2b7f..49b6c5c 100644
---- a/test/compile.jl
-+++ b/test/compile.jl
-@@ -80,7 +80,7 @@ try
-               """)
-     end
-     println(STDERR, "\nNOTE: The following 'LoadError: break me' indicates normal operation")
--    @test_throws ErrorException require(:FooBar)
-+    @test_throws ErrorException Base.require(:FooBar)
- finally
-     splice!(Base.LOAD_CACHE_PATH, 1)
-     splice!(LOAD_PATH, 1)
-diff --git a/test/core.jl b/test/core.jl
-index 89f123b..88539f0 100644
---- a/test/core.jl
-+++ b/test/core.jl
-@@ -102,11 +102,11 @@ testintersect(Type{Any},Type{Complex}, Bottom)
- testintersect(Type{Any},Type{TypeVar(:T,Real)}, Bottom)
- @test !(Type{Array{Integer}} <: Type{AbstractArray{Integer}})
- @test !(Type{Array{Integer}} <: Type{Array{TypeVar(:T,Integer)}})
--testintersect(Type{Function},UnionType,Bottom)
-+testintersect(Type{Function},Union,Bottom)
- testintersect(Type{Int32}, DataType, Type{Int32})
- @test !(Type <: TypeVar)
- testintersect(DataType, Type, Bottom, isnot)
--testintersect(UnionType, Type, Bottom, isnot)
-+testintersect(Union, Type, Bottom, isnot)
- testintersect(DataType, Type{Int}, Bottom, isnot)
- testintersect(DataType, Type{TypeVar(:T,Int)}, Bottom, isnot)
- testintersect(DataType, Type{TypeVar(:T,Integer)}, Bottom, isnot)
-@@ -143,11 +143,11 @@ end
- @test !issubtype(Array{Tuple{Int,Int}}, Array{NTuple})
- @test !issubtype(Type{Tuple{Void}}, Tuple{Type{Void}})
- 
--# this is fancy: know that any type T<:Number must be either a DataType or a UnionType
--@test Type{TypeVar(:T,Number)} <: Union{DataType,UnionType}
-+# this is fancy: know that any type T<:Number must be either a DataType or a Union
-+@test Type{TypeVar(:T,Number)} <: Union{DataType,Union}
- @test !(Type{TypeVar(:T,Number)} <: DataType)
--@test !(Type{TypeVar(:T,Tuple)} <: Union{Tuple,UnionType})
--@test Type{TypeVar(:T,Tuple)} <: Union{DataType,UnionType}
-+@test !(Type{TypeVar(:T,Tuple)} <: Union{Tuple,Union})
-+@test Type{TypeVar(:T,Tuple)} <: Union{DataType,Union}
- 
- # issue #2997
- let T = TypeVar(:T,Union{Float64,Array{Float64,1}},true)
-@@ -823,7 +823,7 @@ let
-     local baar, foor, boor
-     # issue #1131
-     baar(x::DataType) = 0
--    baar(x::UnionType) = 1
-+    baar(x::Union) = 1
-     baar(x::TypeConstructor) = 2
-     @test baar(StridedArray) == 2
-     @test baar(StridedArray.body) == 1
-@@ -831,12 +831,12 @@ let
-     @test baar(Vector.body) == 0
- 
-     boor(x) = 0
--    boor(x::UnionType) = 1
-+    boor(x::Union) = 1
-     @test boor(StridedArray) == 0
-     @test boor(StridedArray.body) == 1
- 
-     # issue #1202
--    foor(x::UnionType) = 1
-+    foor(x::Union) = 1
-     @test_throws MethodError foor(StridedArray)
-     @test foor(StridedArray.body) == 1
-     @test_throws MethodError foor(StridedArray)
-@@ -3044,6 +3044,15 @@ let a = UInt8[1, 107, 66, 88, 2, 99, 254, 13, 0, 0, 0, 0]
-     f11813(p) = (Int8(1),(Int8(2),Int32(3))) === unsafe_load(convert(Ptr{Tuple{Int8,Tuple{Int8,Int32}}},p))
-     @test f11813(p) === true # redundant comparison test seems to make this test more reliable, don't remove
- end
-+# issue #13037
-+let a = UInt8[0, 0, 0, 0, 0x66, 99, 254, 13, 0, 0, 0, 0]
-+    u32 = UInt32[0x3]
-+    a[1:4] = reinterpret(UInt8, u32)
-+    p = pointer(a)
-+    @test ((Int32(3),UInt8(0x66)),Int32(0)) === unsafe_load(convert(Ptr{Tuple{Tuple{Int32,UInt8},Int32}},p))
-+    f11813(p) = ((Int32(3),UInt8(0x66)),Int32(0)) === unsafe_load(convert(Ptr{Tuple{Tuple{Int32,UInt8},Int32}},p))
-+    @test f11813(p) === true # redundant comparison test seems to make this test more reliable, don't remove
-+end
- let a = (1:1000...),
-     b = (1:1000...)
-     @test a == b
-@@ -3100,15 +3109,25 @@ Base.convert(::Type{Foo11874},x::Int) = float(x)
- 
- # issue #9233
- let
--    err = @test_throws TypeError NTuple{Int, 1}
--    @test err.func == :NTuple
--    @test err.expected == Int
--    @test err.got == Int
-+    try
-+        NTuple{Int, 1}
-+        @test false
-+    catch err
-+        @test isa(err, TypeError)
-+        @test err.func == :NTuple
-+        @test err.expected == Int
-+        @test err.got == Int
-+    end
- 
--    err = @test_throws TypeError NTuple{0x1, Int}
--    @test err.func == :NTuple
--    @test err.expected == Int
--    @test err.got == 0x1
-+    try
-+        NTuple{0x1, Int}
-+        @test false
-+    catch err
-+        @test isa(err, TypeError)
-+        @test err.func == :NTuple
-+        @test err.expected == Int
-+        @test err.got == 0x1
-+    end
- end
- 
- # 11996
-@@ -3254,7 +3273,7 @@ Base.return_types(getindex, (Vector{nothing},))
- module MyColors
- 
- abstract Paint{T}
--immutable RGB{T<:FloatingPoint} <: Paint{T}
-+immutable RGB{T<:AbstractFloat} <: Paint{T}
-     r::T
-     g::T
-     b::T
-@@ -3313,3 +3332,15 @@ typealias TupleType12967{T<:Tuple} Type{T}
- foo12967(x, ::TupleType12967) = 2
- @test foo12967(1, Int) == 1
- @test foo12967(1, Tuple{}) == 2
-+
-+# issue #13083
-+@test Void() === nothing
-+
-+# PR 11888
-+immutable A11888{T}
-+    a::NTuple{16,T}
-+end
-+
-+typealias B11888{T} A11888{A11888{A11888{T}}}
-+
-+@test sizeof(B11888{B11888{Int64}}) == (1 << 24) * 8
-diff --git a/test/dict.jl b/test/dict.jl
-index c5d0ae4..1de632b 100644
---- a/test/dict.jl
-+++ b/test/dict.jl
-@@ -77,9 +77,9 @@ h["a","b","c"] = 4
- @test valtype(h) == Any
- 
- let
--    td = Dict{String,Float64}()
--    @test eltype(td) == Pair{String,Float64}
--    @test keytype(td) == String
-+    td = Dict{AbstractString,Float64}()
-+    @test eltype(td) == Pair{AbstractString,Float64}
-+    @test keytype(td) == AbstractString
-     @test valtype(td) == Float64
- end
- 
-diff --git a/test/docs.jl b/test/docs.jl
-index 50cbc74..3566edc 100644
---- a/test/docs.jl
-+++ b/test/docs.jl
-@@ -54,6 +54,9 @@ abstract AT
- "BT"
- bitstype 8 BT
- 
-+"BT2"
-+bitstype 8 BT2 <: Integer
-+
- "T"
- type T <: AT
-     "T.x"
-@@ -116,6 +119,13 @@ import .Inner.@m
- "Inner.@m"
- :@m
- 
-+type Foo
-+    x
-+end
-+
-+# value with no docs
-+const val = Foo(1.0)
-+
- end
- 
- import Base.Docs: meta
-@@ -167,6 +177,8 @@ let BT = DocsTest.BT
-     @test meta(DocsTest)[BT] == doc"BT"
- end
- 
-+@test meta(DocsTest)[DocsTest.BT2] == doc"BT2"
-+
- let T = DocsTest.T
-     typedoc = meta(DocsTest)[T]
-     @test docstrings_equal(typedoc.main, doc"T")
-@@ -213,6 +225,51 @@ let fields = meta(DocsTest)[DocsTest.FieldDocs].fields
-     @test haskey(fields, :two) && fields[:two] == doc"two"
- end
- 
-+"BareModule"
-+baremodule BareModule
-+
-+"f/1"
-+f(x) = x
-+
-+"g/1"
-+function g(x) end
-+
-+"h"
-+function h end
-+
-+"@m"
-+macro m() end
-+
-+"C"
-+const C = 1
-+
-+"A"
-+abstract A
-+
-+"T"
-+type T
-+    "x"
-+    x
-+    "y"
-+    y
-+end
-+
-+end
-+
-+@test docstrings_equal(@doc(BareModule), doc"BareModule")
-+@test docstrings_equal(@doc(BareModule.f), doc"f/1")
-+@test docstrings_equal(@doc(BareModule.g), doc"g/1")
-+@test docstrings_equal(@doc(BareModule.@m), doc"@m")
-+@test docstrings_equal(@doc(BareModule.C), doc"C")
-+@test docstrings_equal(@doc(BareModule.A), doc"A")
-+@test docstrings_equal(@doc(BareModule.T), doc"T")
-+
-+# test that when no docs exist, they fallback to
-+# the docs for the typeof(value)
-+let d1 = @doc(DocsTest.val)
-+    @test d1 !== nothing
-+end
-+
- # Issue #12700.
- @test @doc(DocsTest.@m) == doc"Inner.@m"
- 
-@@ -227,7 +284,15 @@ end
- 
- @doc "This should document @m1... since its the result of expansion" @m2_11993
- @test (@doc @m1_11993) !== nothing
--@test (@doc @m2_11993) === nothing
-+let d = (@doc @m2_11993)
-+    @test docstrings_equal(d, doc"""
-+    No documentation found.
-+
-+    ```julia
-+    @m2_11993()
-+    ```
-+    """)
-+end
- 
- @doc "Now @m2... should be documented" :@m2_11993
- @test (@doc @m2_11993) !== nothing
-@@ -300,6 +365,48 @@ f12593_2() = 1
- @test contains(sprint(apropos, r"ind(exes|ices)"), "eachindex")
- @test contains(sprint(apropos, "print"), "Profile.print")
- 
-+# Issue #13068.
-+
-+module I13068
-+
-+module A
-+
-+export foo
-+
-+"""
-+foo from A
-+"""
-+foo(::Int) = 1
-+
-+end
-+
-+module B
-+
-+import ..A: foo
-+
-+export foo
-+
-+"""
-+foo from B
-+"""
-+foo(::Float64) = 2
-+
-+end
-+
-+end
-+
-+@test docstrings_equal(
-+    @doc(I13068.A.foo),
-+    doc"""
-+    foo from A
-+
-+    foo from B
-+    """
-+)
-+@test docstrings_equal(Docs.doc(I13068.A.foo, Tuple{Int}), doc"foo from A")
-+@test docstrings_equal(Docs.doc(I13068.A.foo, Tuple{Float64}), doc"foo from B")
-+@test Docs.doc(I13068.A.foo, Tuple{Char}) === nothing
-+
- # Undocumented DataType Summaries.
- 
- module Undocumented
-@@ -315,9 +422,15 @@ immutable D <: B
-     three::Float64
- end
- 
-+f = () -> nothing
-+
-+undocumented() = 1
-+undocumented(x) = 2
-+undocumented(x,y) = 3
-+
- end
- 
--@test @doc(Undocumented.A) == doc"""
-+@test docstrings_equal(@doc(Undocumented.A), doc"""
- No documentation found.
- 
- **Summary:**
-@@ -330,9 +443,9 @@ abstract Undocumented.A <: Any
- Undocumented.B
- Undocumented.C
- ```
--"""
-+""")
- 
--@test @doc(Undocumented.B) == doc"""
-+@test docstrings_equal(@doc(Undocumented.B), doc"""
- No documentation found.
- 
- **Summary:**
-@@ -344,18 +457,18 @@ abstract Undocumented.B <: Undocumented.A
- ```julia
- Undocumented.D
- ```
--"""
-+""")
- 
--@test @doc(Undocumented.C) == doc"""
-+@test docstrings_equal(@doc(Undocumented.C), doc"""
- No documentation found.
- 
- **Summary:**
- ```julia
- type Undocumented.C <: Undocumented.A
- ```
--"""
-+""")
- 
--@test @doc(Undocumented.D) == doc"""
-+@test docstrings_equal(@doc(Undocumented.D), doc"""
- No documentation found.
- 
- **Summary:**
-@@ -369,7 +482,28 @@ one   :: Any
- two   :: UTF8String
- three :: Float64
- ```
--"""
-+""")
-+
-+let d = @doc Undocumented.f
-+    io = IOBuffer()
-+    writemime(io, MIME"text/markdown"(), d)
-+    @test startswith(takebuf_string(io),"""
-+    No documentation found.
-+
-+    `Undocumented.f` is an anonymous `Function`.
-+    """)
-+end
-+
-+let d = @doc Undocumented.undocumented
-+    io = IOBuffer()
-+    writemime(io, MIME"text/markdown"(), d)
-+    @test startswith(takebuf_string(io), """
-+    No documentation found.
-+
-+    `Undocumented.undocumented` is a generic `Function`.
-+    """)
-+end
-+
- 
- # Bindings.
- 
-diff --git a/test/libdl.jl b/test/libdl.jl
-index 5a1cdfb..4e8716e 100644
---- a/test/libdl.jl
-+++ b/test/libdl.jl
-@@ -24,10 +24,17 @@ cd(dirname(@__FILE__)) do
- 
- # @test !isempty(Libdl.find_library(["libccalltest"], [dirname(@__FILE__)]))
- 
-+# Find the private library directory by finding the path of libjulia (or libjulia-debug, as the case may be)
-+if ccall(:jl_is_debugbuild, Cint, ()) != 0
-+    private_libdir = dirname(abspath(Libdl.dlpath("libjulia-debug")))
-+else
-+    private_libdir = dirname(abspath(Libdl.dlpath("libjulia")))
-+end
-+
- # dlopen should be able to handle absolute and relative paths, with and without dlext
- let dl = C_NULL
-     try
--        dl = Libdl.dlopen_e(abspath("./libccalltest"))
-+        dl = Libdl.dlopen_e(abspath(joinpath(private_libdir, "libccalltest")))
-         @test dl != C_NULL
-     finally
-         Libdl.dlclose(dl)
-@@ -36,7 +43,7 @@ end
- 
- let dl = C_NULL
-     try
--        dl = Libdl.dlopen_e(join((abspath("./libccalltest"), string(".", Libdl.dlext))))
-+        dl = Libdl.dlopen_e(abspath(joinpath(private_libdir, "libccalltest.$(Libdl.dlext)")))
-         @test dl != C_NULL
-     finally
-         Libdl.dlclose(dl)
-@@ -45,7 +52,7 @@ end
- 
- let dl = C_NULL
-     try
--        dl = Libdl.dlopen_e("./libccalltest")
-+        dl = Libdl.dlopen_e(relpath(joinpath(private_libdir, "libccalltest")))
-         @test dl != C_NULL
-     finally
-         Libdl.dlclose(dl)
-@@ -54,7 +61,7 @@ end
- 
- let dl = C_NULL
-     try
--        dl = Libdl.dlopen_e(join(("./libccalltest", string(".", Libdl.dlext))))
-+        dl = Libdl.dlopen_e(relpath(joinpath(private_libdir, "libccalltest.$(Libdl.dlext)")))
-         @test dl != C_NULL
-     finally
-         Libdl.dlclose(dl)
-@@ -72,24 +79,20 @@ end
- 
- # unqualified names present in DL_LOAD_PATH
- let dl = C_NULL
--    push!(Libdl.DL_LOAD_PATH, pwd())
-     try
-         dl = Libdl.dlopen_e("libccalltest")
-         @test dl != C_NULL
-     finally
-         Libdl.dlclose(dl)
--        pop!(Libdl.DL_LOAD_PATH)
-     end
- end
- 
- let dl = C_NULL
--    push!(Libdl.DL_LOAD_PATH, pwd())
-     try
-         dl = Libdl.dlopen_e(string("libccalltest",".",Libdl.dlext))
-         @test dl != C_NULL
-     finally
-         Libdl.dlclose(dl)
--        pop!(Libdl.DL_LOAD_PATH)
-     end
- end
- 
-@@ -134,12 +137,13 @@ end
- # test dlpath
- let dl = C_NULL
-     try
--        dl = Libdl.dlopen("./libccalltest")
-+        path = abspath(joinpath(private_libdir, "libccalltest"))
-+        dl = Libdl.dlopen(path)
-         @test dl != C_NULL
-         @test Base.samefile(abspath(Libdl.dlpath(dl)),
--                            abspath(Libdl.dlpath("./libccalltest")))
-+                            abspath(Libdl.dlpath(path)))
-         @test Base.samefile(abspath(Libdl.dlpath(dl)),
--                            abspath(string("./libccalltest",".", Libdl.dlext)))
-+                            string(path,".",Libdl.dlext))
-     finally
-         Libdl.dlclose(dl)
-     end
-@@ -151,7 +155,7 @@ end
- # test dlsym
- let dl = C_NULL
-     try
--        dl = Libdl.dlopen("./libccalltest")
-+        dl = Libdl.dlopen(abspath(joinpath(private_libdir, "libccalltest")))
-         fptr = Libdl.dlsym(dl, :set_verbose)
-         @test fptr != C_NULL
-         @test_throws ErrorException Libdl.dlsym(dl, :foo)
-diff --git a/test/linalg/bidiag.jl b/test/linalg/bidiag.jl
-index 09899f2..74e1eb1 100644
---- a/test/linalg/bidiag.jl
-+++ b/test/linalg/bidiag.jl
-@@ -49,6 +49,9 @@ for relty in (Float32, Float64, BigFloat), elty in (relty, Complex{relty})
-         @test full(T) == diagm(dv) + diagm(ev, isupper?1:-1)
-         @test Bidiagonal(full(T), isupper) == T
-         @test big(T) == T
-+        @test full(abs(T)) == abs(diagm(dv)) + abs(diagm(ev, isupper?1:-1))
-+        @test full(real(T)) == real(diagm(dv)) + real(diagm(ev, isupper?1:-1))
-+        @test full(imag(T)) == imag(diagm(dv)) + imag(diagm(ev, isupper?1:-1))
-         z = zeros(elty, n)
- 
-         debug && println("Idempotent tests")
-diff --git a/test/linalg/dense.jl b/test/linalg/dense.jl
-index ab0b186..d1f3ce9 100644
---- a/test/linalg/dense.jl
-+++ b/test/linalg/dense.jl
-@@ -96,7 +96,7 @@ debug && println("Numbers")
-     @test expm(α) == exp(α)
- 
- debug && println("Powers")
--    if eltya <: FloatingPoint
-+    if eltya <: AbstractFloat
-         z = zero(eltya)
-         t = convert(eltya,2)
-         r = convert(eltya,2.5)
-diff --git a/test/linalg/diagonal.jl b/test/linalg/diagonal.jl
-index caf784a..9ea170e 100644
---- a/test/linalg/diagonal.jl
-+++ b/test/linalg/diagonal.jl
-@@ -27,6 +27,10 @@ for relty in (Float32, Float64, BigFloat), elty in (relty, Complex{relty})
-     @test typeof(convert(Diagonal{Complex64},D)) == Diagonal{Complex64}
-     @test typeof(convert(AbstractMatrix{Complex64},D))   == Diagonal{Complex64}
- 
-+    @test full(real(D)) == real(DM)
-+    @test full(abs(D)) == abs(DM)
-+    @test full(imag(D)) == imag(DM)
-+
-     debug && println("Linear solve")
-     @test_approx_eq_eps D*v DM*v n*eps(relty)*(elty<:Complex ? 2:1)
-     @test_approx_eq_eps D*U DM*U n^2*eps(relty)*(elty<:Complex ? 2:1)
-diff --git a/test/linalg/generic.jl b/test/linalg/generic.jl
-index 24499f6..a1ce1a5 100644
---- a/test/linalg/generic.jl
-+++ b/test/linalg/generic.jl
-@@ -56,10 +56,17 @@ y = ['a','b','c','d','e']
- α = 'f'
- @test_throws DimensionMismatch Base.LinAlg.axpy!(α,x,['g'])
- @test_throws BoundsError Base.LinAlg.axpy!(α,x,collect(-1:5),y,collect(1:7))
-+@test_throws BoundsError Base.LinAlg.axpy!(α,x,collect(1:7),y,collect(-1:5))
-+@test_throws ArgumentError Base.LinAlg.axpy!(α,x,collect(1:3),y,collect(1:5))
- @test_throws BoundsError Base.LinAlg.axpy!(α,x,collect(1:7),y,collect(1:7))
-+@test_throws DimensionMismatch Base.LinAlg.axpy!(α,x,collect(1:2),['a','b'],collect(1:2))
- 
-+@test_throws ArgumentError diag(rand(10))
-+@test !issym(ones(5,3))
-+@test !ishermitian(ones(5,3))
-+@test cross(ones(3),ones(3)) == zeros(3)
- 
--
-+@test trace(Bidiagonal(ones(5),zeros(4),true)) == 5
- 
- # 2-argument version of scale
- a = reshape([1.:6;], (2,3))
-@@ -116,6 +123,7 @@ for elty in [Float32,Float64,Complex64,Complex128]
-     @test rank(one(elty))  == 1
-     @test !isfinite(cond(zero(elty)))
-     @test cond(a)          == one(elty)
-+    @test cond(a,1)        == one(elty)
-     @test issym(a)
-     @test ishermitian(one(elty))
-     @test det(a) == a
-@@ -125,6 +133,7 @@ end
- 
- @test norm([2.4e-322, 4.4e-323]) ≈ 2.47e-322
- @test norm([2.4e-322, 4.4e-323], 3) ≈ 2.4e-322
-+@test_throws ArgumentError norm(ones(5,5),5)
- 
- # test generic vecnorm for arrays of arrays
- let x = Vector{Int}[[1,2], [3,4]]
-diff --git a/test/linalg/matmul.jl b/test/linalg/matmul.jl
-index 60fcba8..0ccdcb0 100644
---- a/test/linalg/matmul.jl
-+++ b/test/linalg/matmul.jl
-@@ -102,21 +102,29 @@ Asub = sub(Ai, 1:2:2*cutoff, 1:3)
- Aref = Ai[1:2:2*cutoff, 1:3]
- @test Ac_mul_B(Asub, Asub) == Ac_mul_B(Aref, Aref)
- 
-+@test_throws DimensionMismatch Base.LinAlg.syrk_wrapper!(zeros(5,5),'N',ones(6,5))
-+@test_throws DimensionMismatch Base.LinAlg.herk_wrapper!(zeros(5,5),'N',ones(6,5))
-+
- # matmul for types w/o sizeof (issue #1282)
- A = Array(Complex{Int},10,10)
- A[:] = complex(1,1)
- A2 = A^2
- @test A2[1,1] == 20im
- 
-+@test_throws DimensionMismatch scale!(zeros(5,5),ones(5),rand(5,6))
-+
- # issue #6450
- @test dot(Any[1.0,2.0], Any[3.5,4.5]) === 12.5
- 
--@test_throws DimensionMismatch dot([1.0,2.0,3.0], 1:2, [3.5,4.5,5.5], 1:3)
--@test_throws BoundsError dot([1.0,2.0,3.0], 1:4, [3.5,4.5,5.5], 1:4)
--@test_throws BoundsError dot([1.0,2.0,3.0], 1:3, [3.5,4.5,5.5], 2:4)
--@test_throws DimensionMismatch dot(Complex128[1.0,2.0,3.0], 1:2, Complex128[3.5,4.5,5.5], 1:3)
--@test_throws BoundsError dot(Complex128[1.0,2.0,3.0], 1:4, Complex128[3.5,4.5,5.5], 1:4)
--@test_throws BoundsError dot(Complex128[1.0,2.0,3.0], 1:3, Complex128[3.5,4.5,5.5], 2:4)
-+for elty in (Float32,Float64,Complex64,Complex128)
-+    x = convert(Vector{elty},[1.0,2.0,3.0])
-+    y = convert(Vector{elty},[3.5,4.5,5.5])
-+    @test_throws DimensionMismatch dot(x, 1:2, y, 1:3)
-+    @test_throws BoundsError dot(x, 1:4, y, 1:4)
-+    @test_throws BoundsError dot(x, 1:3, y, 2:4)
-+    @test dot(x,1:2,y,1:2) == convert(elty,12.5)
-+    @test x.'*y == convert(Vector{elty},[29.0])
-+end
- 
- vecdot_(x,y) = invoke(vecdot, (Any,Any), x,y) # generic vecdot
- let A = [1+2im 3+4im; 5+6im 7+8im], B = [2+7im 4+1im; 3+8im 6+5im]
-@@ -149,6 +157,7 @@ for elty in [Float32,Float64,Complex128,Complex64]
-     @test_throws DimensionMismatch Base.LinAlg.gemv!(ones(elty,10),'N',rand(elty,10,10),ones(elty,11))
-     @test_throws DimensionMismatch Base.LinAlg.gemv!(ones(elty,11),'N',rand(elty,10,10),ones(elty,10))
-     @test Base.LinAlg.gemv!(ones(elty,0),'N',rand(elty,0,0),rand(elty,0)) == ones(elty,0)
-+    @test Base.LinAlg.gemv!(ones(elty,10), 'N',ones(elty,10,0),ones(elty,0)) == zeros(elty,10)
- 
-     @test Base.LinAlg.gemm_wrapper('N','N',eye(elty,10,10),eye(elty,10,10)) == eye(elty,10,10)
-     @test_throws DimensionMismatch Base.LinAlg.gemm_wrapper!(eye(elty,10,10),'N','N',eye(elty,10,11),eye(elty,10,10))
-diff --git a/test/linalg/special.jl b/test/linalg/special.jl
-index 51c0ef9..8cef4aa 100644
---- a/test/linalg/special.jl
-+++ b/test/linalg/special.jl
-@@ -103,6 +103,17 @@ let a=[1.0:n;]
-        @test_approx_eq full(B - convert(Spectype,A)) full(B - A)
-        @test_approx_eq full(convert(Spectype,A) - B) full(A - B)
-    end
-+
-+   C = rand(n,n)
-+   for TriType in [Base.LinAlg.UnitLowerTriangular, Base.LinAlg.UnitUpperTriangular, UpperTriangular, LowerTriangular]
-+       D = TriType(C)
-+       for Spectype in [Diagonal, Bidiagonal, Tridiagonal, Matrix]
-+           @test full(D + convert(Spectype,A)) ≈ full(D + A)
-+           @test full(convert(Spectype,A) + D) ≈ full(A + D)
-+           @test full(D - convert(Spectype,A)) ≈ full(D - A)
-+           @test full(convert(Spectype,A) - D) ≈ full(A - D)
-+       end
-+   end
- end
- 
- #Triangular Types and QR
-diff --git a/test/linalg/triangular.jl b/test/linalg/triangular.jl
-index 6fb440f..f7b7af9 100644
---- a/test/linalg/triangular.jl
-+++ b/test/linalg/triangular.jl
-@@ -120,6 +120,8 @@ for elty1 in (Float32, Float64, Complex64, Complex128, BigFloat, Int)
- 
-         # real
-         @test full(real(A1)) == real(full(A1))
-+        @test full(imag(A1)) == imag(full(A1))
-+        @test full(abs(A1)) == abs(full(A1))
- 
-         # Unary operations
-         @test full(-A1) == -full(A1)
-@@ -134,6 +136,7 @@ for elty1 in (Float32, Float64, Complex64, Complex128, BigFloat, Int)
- 
-         # scale
-         if (t1 == UpperTriangular || t1 == LowerTriangular)
-+            unitt = istriu(A1) ? UnitUpperTriangular : UnitLowerTriangular
-             if elty1 == Int
-                 cr = 2
-             else
-@@ -144,10 +147,24 @@ for elty1 in (Float32, Float64, Complex64, Complex128, BigFloat, Int)
-                 A1tmp = copy(A1)
-                 scale!(A1tmp,cr)
-                 @test A1tmp == cr*A1
-+                A1tmp = copy(A1)
-+                scale!(cr,A1tmp)
-+                @test A1tmp == cr*A1
-+                A1tmp = copy(A1)
-+                A2tmp = unitt(A1)
-+                scale!(A1tmp,A2tmp,cr)
-+                @test A1tmp == cr * A2tmp
-             else
-                 A1tmp = copy(A1)
-                 scale!(A1tmp,ci)
-                 @test A1tmp == ci*A1
-+                A1tmp = copy(A1)
-+                scale!(ci,A1tmp)
-+                @test A1tmp == ci*A1
-+                A1tmp = copy(A1)
-+                A2tmp = unitt(A1)
-+                scale!(A1tmp,A2tmp,ci)
-+                @test A1tmp == ci * A2tmp
-             end
-         end
- 
-diff --git a/test/linalg/tridiag.jl b/test/linalg/tridiag.jl
-index ff5443c..972ed26 100644
---- a/test/linalg/tridiag.jl
-+++ b/test/linalg/tridiag.jl
-@@ -49,6 +49,13 @@ for elty in (Float32, Float64, Complex64, Complex128, Int)
-     @test transpose(T) == Tridiagonal(du, d, dl)
-     @test ctranspose(T) == Tridiagonal(conj(du), conj(d), conj(dl))
- 
-+    @test abs(T) == Tridiagonal(abs(dl),abs(d),abs(du))
-+    @test real(T) == Tridiagonal(real(dl),real(d),real(du))
-+    @test imag(T) == Tridiagonal(imag(dl),imag(d),imag(du))
-+    @test abs(Ts) == SymTridiagonal(abs(d),abs(dl))
-+    @test real(Ts) == SymTridiagonal(real(d),real(dl))
-+    @test imag(Ts) == SymTridiagonal(imag(d),imag(dl))
-+
-     # test interconversion of Tridiagonal and SymTridiagonal
-     @test Tridiagonal(dl, d, dl) == SymTridiagonal(d, dl)
-     @test SymTridiagonal(d, dl) == Tridiagonal(dl, d, dl)
-@@ -84,7 +91,7 @@ for elty in (Float32, Float64, Complex64, Complex128, Int)
-         @test_approx_eq full(full(Tldlt)) Fs
-         @test_throws DimensionMismatch Tldlt\rand(elty,n+1)
-         @test size(Tldlt) == size(Ts)
--        if elty <: FloatingPoint
-+        if elty <: AbstractFloat
-             @test typeof(convert(Base.LinAlg.LDLt{Float32},Tldlt)) == Base.LinAlg.LDLt{Float32,SymTridiagonal{elty}}
-         end
-     end
-diff --git a/test/math.jl b/test/math.jl
-index 8fc005a..6adeed1 100644
---- a/test/math.jl
-+++ b/test/math.jl
-@@ -46,6 +46,11 @@ for T in (Float16,Float32,Float64)
-         @test significand(-a) == -2b
-         @test exponent(-a) == n-1
-     end
-+    @test_throws DomainError exponent(convert(T,NaN))
-+    @test isnan(significand(convert(T,NaN)))
-+    x,y = frexp(convert(T,NaN))
-+    @test isnan(x)
-+    @test y == 0
- end
- 
- # Test math functions. We compare to BigFloat instead of hard-coding
-@@ -181,7 +186,6 @@ for T = (Float32,Float64,Rational{Int})
-     @test cosd(convert(T,-90))::fT === zero(fT)
-     @test cosd(convert(T,-270))::fT === zero(fT)
- 
--
-     for x = -3:0.3:3
-         @test_approx_eq_eps sinpi(convert(T,x))::fT convert(fT,sin(pi*x)) eps(pi*convert(fT,x))
-         @test_approx_eq_eps cospi(convert(T,x))::fT convert(fT,cos(pi*x)) eps(pi*convert(fT,x))
-@@ -193,21 +197,29 @@ for T = (Float32,Float64,Rational{Int})
-     T != Rational{Int} && @test sinpi(convert(T,-0.0))::fT === -zero(fT)
-     @test sinpi(convert(T,-1.0))::fT === -zero(fT)
-     @test sinpi(convert(T,-2.0))::fT === -zero(fT)
-+    @test_throws DomainError sinpi(convert(T,Inf))
- 
-     @test cospi(convert(T,0.5))::fT === zero(fT)
-     @test cospi(convert(T,1.5))::fT === zero(fT)
-     @test cospi(convert(T,-0.5))::fT === zero(fT)
-     @test cospi(convert(T,-1.5))::fT === zero(fT)
-+    @test_throws DomainError cospi(convert(T,Inf))
- 
-     # check exact values
-     @test sind(convert(T,30)) == 0.5
-     @test cosd(convert(T,60)) == 0.5
-     @test sind(convert(T,150)) == 0.5
-     @test sinpi(one(T)/convert(T,6)) == 0.5
-+    @test_throws DomainError sind(convert(T,Inf))
-+    @test_throws DomainError cosd(convert(T,Inf))
-     T != Float32 && @test cospi(one(T)/convert(T,3)) == 0.5
-     T == Rational{Int} && @test sinpi(5//6) == 0.5
- end
- 
-+@test sinpi(1) == 0
-+@test sinpi(-1) == -0
-+@test cospi(1) == -1
-+@test cospi(2) == 1
- 
- # check type stability
- for T = (Float32,Float64,BigFloat)
-@@ -221,6 +233,8 @@ end
- @test_approx_eq erf(1) 0.84270079294971486934
- @test_approx_eq erfc(1) 0.15729920705028513066
- @test_approx_eq erfcx(1) 0.42758357615580700442
-+@test_approx_eq erfcx(Float32(1)) 0.42758357615580700442
-+@test_approx_eq erfcx(Complex64(1)) 0.42758357615580700442
- @test_approx_eq erfi(1) 1.6504257587975428760
- @test_approx_eq erfinv(0.84270079294971486934) 1
- @test_approx_eq erfcinv(0.15729920705028513066) 1
-@@ -246,7 +260,7 @@ for elty in [Float32,Float64]
-     end
-     @test erfinv(one(elty)) == Inf
-     @test erfinv(-one(elty)) == -Inf
--    @test_throws DomainError erfinv(2.0*one(elty))
-+    @test_throws DomainError erfinv(convert(elty,2.0))
- 
-     @test erfcinv(zero(elty)) == Inf
-     @test_throws DomainError erfcinv(-one(elty))
-@@ -265,7 +279,7 @@ end
- @test_throws Base.Math.AmosException airybi(200)
- @test_throws ArgumentError airy(5,one(Complex128))
- z = 1.8 + 1.0im
--for elty in [Complex64,Complex128]
-+for elty in [Complex64,Complex128, Complex{BigFloat}]
-     @test_approx_eq airy(convert(elty,1.8)) 0.0470362168668458052247
-     z = convert(elty,z)
-     @test_approx_eq airyx(z) airyx(0,z)
-@@ -336,6 +350,8 @@ j43 = besselj(4,3.)
- @test_approx_eq besselj(3.2, 1.3+0.6im) 0.01135309305831220201 + 0.03927719044393515275im
- @test_approx_eq besselj(1, 3im) 3.953370217402609396im
- @test_approx_eq besselj(1.0,3im) besselj(1,3im)
-+@test besselj(big(1.0),3im) ≈ besselj(1,3im)
-+@test besselj(big(0.1), complex(-0.4)) ≈ 0.820421842809028916 + 0.266571215948350899im
- @test_throws Base.Math.AmosException besselj(20,1000im)
- 
- # besselk
-@@ -365,7 +381,7 @@ y33 = bessely(3,3.)
- @test_throws DomainError bessely(1,Float32(-1.0))
- 
- #besselhx
--for elty in [Complex64,Complex128]
-+for elty in [Complex64,Complex128, Complex{BigFloat}]
-     z = convert(elty, 1.0 + 1.9im)
-     @test_approx_eq besselhx(1.0, 1, z) convert(elty,-0.5949634147786144 - 0.18451272807835967im)
- end
-@@ -404,6 +420,7 @@ end
- @test_approx_eq beta(5,4) beta(4,5)
- @test_approx_eq beta(-1/2, 3) -16/3
- @test_approx_eq lbeta(-1/2, 3) log(16/3)
-+@test beta(Float32(5),Float32(4)) == beta(Float32(4),Float32(5))
- 
- # gamma, lgamma (complex argument)
- if Base.Math.libm == "libopenlibm"
-@@ -477,6 +494,9 @@ end
- @test_approx_eq zeta(2) pi^2/6
- @test_approx_eq zeta(4) pi^4/90
- @test_approx_eq zeta(one(Float32)) Float32(zeta(one(Float64)))
-+@test isnan(zeta(NaN))
-+@test isnan(zeta(complex(0,Inf)))
-+@test isnan(zeta(complex(-Inf,0)))
- 
- # quadgk
- @test_approx_eq quadgk(cos, 0,0.7,1)[1] sin(1)
-diff --git a/test/misc.jl b/test/misc.jl
-index a438f0b..b605fd6 100644
---- a/test/misc.jl
-+++ b/test/misc.jl
-@@ -34,11 +34,13 @@ let res = assert(true)
-     @test res === nothing
- end
- let
--    ex = @test_throws AssertionError begin
-+    try
-         assert(false)
-         error("unexpected")
-+    catch ex
-+        @test isa(ex, AssertionError)
-+        @test isempty(ex.msg)
-     end
--    @test isempty(ex.msg)
- end
- 
- # test @assert macro
-@@ -48,44 +50,54 @@ end
- @test_throws AssertionError (@assert false "this is a test" "another test")
- @test_throws AssertionError (@assert false :a)
- let
--    ex = @test_throws AssertionError begin
-+    try
-         @assert 1 == 2
-         error("unexpected")
-+    catch ex
-+        @test isa(ex, AssertionError)
-+        @test contains(ex.msg, "1 == 2")
-     end
--    @test contains(ex.msg, "1 == 2")
- end
- # test @assert message
- let
--    ex = @test_throws AssertionError begin
-+    try
-         @assert 1 == 2 "this is a test"
-         error("unexpected")
-+    catch ex
-+        @test isa(ex, AssertionError)
-+        @test ex.msg == "this is a test"
-     end
--    @test ex.msg == "this is a test"
- end
- # @assert only uses the first message string
- let
--    ex = @test_throws AssertionError begin
-+    try
-         @assert 1 == 2 "this is a test" "this is another test"
-         error("unexpected")
-+    catch ex
-+        @test isa(ex, AssertionError)
-+        @test ex.msg == "this is a test"
-     end
--    @test ex.msg == "this is a test"
- end
- # @assert calls string() on second argument
- let
--    ex = @test_throws AssertionError begin
-+    try
-         @assert 1 == 2 :random_object
-         error("unexpected")
-+    catch ex
-+        @test isa(ex, AssertionError)
-+        @test !contains(ex.msg,  "1 == 2")
-+        @test contains(ex.msg, "random_object")
-     end
--    @test !contains(ex.msg,  "1 == 2")
--    @test contains(ex.msg, "random_object")
- end
- # if the second argument is an expression, c
- let deepthought(x, y) = 42
--    ex = @test_throws AssertionError begin
-+    try
-         @assert 1 == 2 string("the answer to the ultimate question: ",
-                               deepthought(6, 9))
-+    catch ex
-+        @test isa(ex, AssertionError)
-+        @test ex.msg == "the answer to the ultimate question: 42"
-     end
--    @test ex.msg == "the answer to the ultimate question: 42"
- end
- 
- let # test the process title functions, issue #9957
-@@ -170,3 +182,13 @@ end
- let v = sprint(whos, _test_whos_)
-     @test contains(v, "x      8 bytes  Float64 : 1.0")
- end
-+
-+# issue #13021
-+let ex = try
-+    Main.x13021 = 0
-+    nothing
-+catch ex
-+    ex
-+end
-+    @test isa(ex, ErrorException) && ex.msg == "cannot assign variables in other modules"
-+end
-diff --git a/test/mmap.jl b/test/mmap.jl
-index 466bb3c..2a7b493 100644
---- a/test/mmap.jl
-+++ b/test/mmap.jl
-@@ -6,20 +6,20 @@ s = open(file, "w") do f
- end
- t = "Hello World".data
- @test Mmap.mmap(file, Array{UInt8,3}, (11,1,1)) == reshape(t,(11,1,1))
--gc()
-+gc(); gc()
- @test Mmap.mmap(file, Array{UInt8,3}, (1,11,1)) == reshape(t,(1,11,1))
--gc()
-+gc(); gc()
- @test Mmap.mmap(file, Array{UInt8,3}, (1,1,11)) == reshape(t,(1,1,11))
--gc()
-+gc(); gc()
- @test_throws ArgumentError Mmap.mmap(file, Array{UInt8,3}, (11,0,1)) # 0-dimension results in len=0
- @test Mmap.mmap(file, Vector{UInt8}, (11,)) == t
--gc()
-+gc(); gc()
- @test Mmap.mmap(file, Array{UInt8,2}, (1,11)) == t'
--gc()
-+gc(); gc()
- @test_throws ArgumentError Mmap.mmap(file, Array{UInt8,2}, (0,12))
- m = Mmap.mmap(file, Array{UInt8,3}, (1,2,1))
- @test m == reshape("He".data,(1,2,1))
--m=nothing; gc()
-+finalize(m); m=nothing; gc()
- 
- # constructors
- @test length(Mmap.mmap(file)) == 12
-@@ -45,7 +45,7 @@ s = open(file)
- @test length(Mmap.mmap(s, Vector{Int8}, 12, 0; shared=false)) == 12
- close(s)
- @test_throws ErrorException Mmap.mmap(file, Vector{Ref}) # must be bit-type
--gc()
-+gc(); gc()
- 
- s = open(f->f,file,"w")
- @test_throws ArgumentError Mmap.mmap(file) # requested len=0 on empty file
-@@ -53,7 +53,7 @@ s = open(f->f,file,"w")
- m = Mmap.mmap(file,Vector{UInt8},12)
- m[:] = "Hello World\n".data
- Mmap.sync!(m)
--m=nothing; gc()
-+finalize(m); m=nothing; gc()
- @test open(readall,file) == "Hello World\n"
- 
- s = open(file, "r")
-@@ -70,30 +70,30 @@ close(s)
- for i = 0x01:0x0c
-     @test length(Mmap.mmap(file, Vector{UInt8}, i)) == Int(i)
- end
--gc()
-+gc(); gc()
- 
- sz = filesize(file)
- m = Mmap.mmap(file, Vector{UInt8}, sz+1)
- @test length(m) == sz+1 # test growing
- @test m[end] == 0x00
--m=nothing; gc()
-+finalize(m); m=nothing; gc()
- sz = filesize(file)
- m = Mmap.mmap(file, Vector{UInt8}, 1, sz)
- @test length(m) == 1
- @test m[1] == 0x00
--m=nothing; gc()
-+finalize(m); m=nothing; gc()
- sz = filesize(file)
- # test where offset is actually > than size of file; file is grown with zeroed bytes
- m = Mmap.mmap(file, Vector{UInt8}, 1, sz+1)
- @test length(m) == 1
- @test m[1] == 0x00
--m=nothing; gc()
-+finalize(m); m=nothing; gc()
- 
- # Uncomment out once #11351 is resolved
- # s = open(file, "r")
- # m = Mmap.mmap(s)
- # @test_throws ReadOnlyMemoryError m[5] = Vector{UInt8}('x') # tries to setindex! on read-only array
--# m=nothing; gc()
-+# finalize(m); m=nothing; gc()
- 
- s = open(file, "w") do f
-     write(f, "Hello World\n")
-@@ -102,7 +102,7 @@ end
- s = open(file, "r")
- m = Mmap.mmap(s)
- close(s)
--m=nothing; gc()
-+finalize(m); m=nothing; gc()
- m = Mmap.mmap(file)
- s = open(file, "r+")
- c = Mmap.mmap(s)
-@@ -112,6 +112,7 @@ Mmap.sync!(c)
- close(s)
- @test m[1] == UInt8('J')
- @test d[1] == UInt8('J')
-+finalize(m); finalize(c); finalize(d)
- m=nothing; c=nothing; d=nothing; gc()
- 
- s = open(file, "w") do f
-@@ -122,10 +123,10 @@ s = open(file, "r")
- @test isreadonly(s) == true
- c = Mmap.mmap(s, Vector{UInt8}, (11,))
- @test c == "Hello World".data
--c=nothing; gc()
-+finalize(c); c=nothing; gc()
- c = Mmap.mmap(s, Vector{UInt8}, (UInt16(11),))
- @test c == "Hello World".data
--c=nothing; gc()
-+finalize(c); c=nothing; gc()
- @test_throws ArgumentError Mmap.mmap(s, Vector{UInt8}, (Int16(-11),))
- @test_throws ArgumentError Mmap.mmap(s, Vector{UInt8}, (typemax(UInt),))
- close(s)
-@@ -139,22 +140,22 @@ s = open(file, "r")
- str = readline(s)
- close(s)
- @test startswith(str, "Hellx World")
--c=nothing; gc()
-+finalize(c); c=nothing; gc()
- 
- c = Mmap.mmap(file)
- @test c == "Hellx World\n".data
--c=nothing; gc()
-+finalize(c); c=nothing; gc()
- c = Mmap.mmap(file, Vector{UInt8}, 3)
- @test c == "Hel".data
--c=nothing; gc()
-+finalize(c); c=nothing; gc()
- s = open(file, "r")
- c = Mmap.mmap(s, Vector{UInt8}, 6)
- @test c == "Hellx ".data
- close(s)
--c=nothing; gc()
-+finalize(c); c=nothing; gc()
- c = Mmap.mmap(file, Vector{UInt8}, 5, 6)
- @test c == "World".data
--c=nothing; gc()
-+finalize(c); c=nothing; gc()
- 
- s = open(file, "w")
- write(s, "Hello World\n")
-@@ -167,7 +168,7 @@ for i = 1:12
-     @test m[i] == t.data[i]
- end
- @test_throws BoundsError m[13]
--m=nothing; gc()
-+finalize(m); m=nothing; gc()
- 
- m = Mmap.mmap(file,Vector{UInt8},6)
- @test m[1] == "H".data[1]
-@@ -177,7 +178,7 @@ m = Mmap.mmap(file,Vector{UInt8},6)
- @test m[5] == "o".data[1]
- @test m[6] == " ".data[1]
- @test_throws BoundsError m[7]
--m=nothing; gc()
-+finalize(m); m=nothing; gc()
- 
- m = Mmap.mmap(file,Vector{UInt8},2,6)
- @test m[1] == "W".data[1]
-@@ -283,3 +284,4 @@ n = similar(m, (2,2))
- n = similar(m, 12)
- @test length(n) == 12
- @test size(n) == (12,)
-+finalize(m); m = nothing; gc()
-\ No newline at end of file
-diff --git a/test/numbers.jl b/test/numbers.jl
-index c31f206..907157a 100644
---- a/test/numbers.jl
-+++ b/test/numbers.jl
-@@ -2519,8 +2519,6 @@ for (d,B) in ((4//2+1im,Rational{BigInt}),(3.0+1im,BigFloat),(2+1im,BigInt))
-     @test big([d]) == [d]
- end
- 
--@test 0x2^9 === 0x2^big(9) === 0x0
--
- # issue #12536
- @test Rational{Int16}(1,2) === Rational(Int16(1),Int16(2))
- @test Rational{Int16}(500000,1000000) === Rational(Int16(1),Int16(2))
-diff --git a/test/operators.jl b/test/operators.jl
-index 88116b8..6106afa 100644
---- a/test/operators.jl
-+++ b/test/operators.jl
-@@ -47,3 +47,10 @@ p = 1=>:foo
- @test 1 .== 1
- @test 1 .< 2
- @test 1 .<= 2
-+
-+# issue #13144: max() with 4 or more array arguments
-+let xs = [[i:i+4;] for i in 1:10]
-+    for n in 2:10
-+        @test max(xs[1:n]...) == [n:n+4;]
-+    end
-+end
-diff --git a/test/ranges.jl b/test/ranges.jl
-index edac1d2..a4a53ed 100644
---- a/test/ranges.jl
-+++ b/test/ranges.jl
-@@ -108,8 +108,8 @@ end
- @test intersect(reverse(typemin(Int):2:typemax(Int)),typemin(Int):2:typemax(Int)) == reverse(typemin(Int):2:typemax(Int))
- @test intersect(typemin(Int):2:typemax(Int),reverse(typemin(Int):2:typemax(Int))) == typemin(Int):2:typemax(Int)
- 
--@test 0 in UInt(0):100:typemax(Uint)
--@test last(UInt(0):100:typemax(Uint)) in UInt(0):100:typemax(Uint)
-+@test 0 in UInt(0):100:typemax(UInt)
-+@test last(UInt(0):100:typemax(UInt)) in UInt(0):100:typemax(UInt)
- @test -9223372036854775790 in -9223372036854775790:100:9223372036854775710
- @test -9223372036854775690 in -9223372036854775790:100:9223372036854775710
- @test -90 in -9223372036854775790:100:9223372036854775710
-diff --git a/test/show.jl b/test/show.jl
-index 18731bd..0fb185a 100644
---- a/test/show.jl
-+++ b/test/show.jl
-@@ -293,3 +293,12 @@ let
-     @test sprint(show, B)  == "\n\t[1, 1]  =  #undef\n\t[1, 2]  =  T12960()\n\t[2, 2]  =  #undef\n\t[3, 3]  =  #undef"
-     @test sprint(print, B) == "\n\t[1, 1]  =  #undef\n\t[1, 2]  =  T12960()\n\t[2, 2]  =  #undef\n\t[3, 3]  =  #undef"
- end
-+
-+# issue #13127
-+function f13127()
-+    buf = IOBuffer()
-+    f() = 1
-+    show(buf, f)
-+    takebuf_string(buf)
-+end
-+@test f13127() == "f"
-diff --git a/test/sparsedir/sparse.jl b/test/sparsedir/sparse.jl
-index 7903390..776b4b0 100644
---- a/test/sparsedir/sparse.jl
-+++ b/test/sparsedir/sparse.jl
-@@ -1,5 +1,7 @@
- # This file is a part of Julia. License is MIT: http://julialang.org/license
- 
-+using Base.Test
-+
- # check sparse matrix construction
- @test isequal(full(sparse(complex(ones(5,5),ones(5,5)))), complex(ones(5,5),ones(5,5)))
- 
-@@ -846,6 +848,8 @@ let  A = sprand(10,10,0.3), B = sprand(10,10,0.3), CF = rand(10,10), AF = full(A
-     @test A .- 3 == AF .- 3
-     @test 3 .- A == 3 .- AF
-     @test A .- B == AF .- BF
-+    @test A - AF == zeros(AF)
-+    @test AF - A == zeros(AF)
-     @test A[1,:] .- B == AF[1,:] .- BF
-     @test A[:,1] .- B == AF[:,1] .- BF
-     @test A .- B[1,:] == AF .-  BF[1,:]
-@@ -854,6 +858,7 @@ let  A = sprand(10,10,0.3), B = sprand(10,10,0.3), CF = rand(10,10), AF = full(A
-     @test A .+ 3 == AF .+ 3
-     @test 3 .+ A == 3 .+ AF
-     @test A .+ B == AF .+ BF
-+    @test A + AF == AF + A
-     @test (A .< B) == (AF .< BF)
-     @test (A .!= B) == (AF .!= BF)
- 
-@@ -869,6 +874,7 @@ let  A = sprand(10,10,0.3), B = sprand(10,10,0.3), CF = rand(10,10), AF = full(A
-     @test BF .\ C == BF .\ CF
- 
-     @test A .^ 3 == AF .^ 3
-+    @test 3 .^ A == 3 .^ AF
-     @test A .^ BF[:,1] == AF .^ BF[:,1]
-     @test BF[:,1] .^ A == BF[:,1] .^ AF
- end
-@@ -878,6 +884,7 @@ A = sprandbool(5,5,0.2)
- @test_throws ArgumentError reinterpret(Complex128,A,(5,5))
- @test_throws DimensionMismatch reinterpret(Int8,A,(20,))
- @test_throws DimensionMismatch reshape(A,(20,2))
-+@test_throws ArgumentError squeeze(A,(1,1))
- 
- # test similar with type conversion
- A = speye(5)
-@@ -1102,3 +1109,32 @@ q = randperm(10)
- # issue #13008
- @test_throws ArgumentError sparse(collect(1:100), collect(1:100), fill(5,100), 5, 5)
- @test_throws ArgumentError sparse(Int[], collect(1:5), collect(1:5))
-+
-+# issue #13024
-+let
-+    A13024 = sparse([1,2,3,4,5], [1,2,3,4,5], fill(true,5))
-+    B13024 = sparse([1,2,4,5],   [1,2,3,5],   fill(true,4))
-+
-+    @test A13024 & B13024 == sparse([1,2,5], [1,2,5], fill(true,3))
-+    @test typeof(A13024 & B13024) == SparseMatrixCSC{Bool,Int}
-+
-+    @test A13024 | B13024 == sparse([1,2,3,4,4,5], [1,2,3,3,4,5], fill(true,6))
-+    @test typeof(A13024 | B13024) == SparseMatrixCSC{Bool,Int}
-+
-+    @test A13024 $ B13024 == sparse([3,4,4], [3,3,4], fill(true,3), 5, 5)
-+    @test typeof(A13024 $ B13024) == SparseMatrixCSC{Bool,Int}
-+
-+    @test max(A13024, B13024) == sparse([1,2,3,4,4,5], [1,2,3,3,4,5], fill(true,6))
-+    @test typeof(max(A13024, B13024)) == SparseMatrixCSC{Bool,Int}
-+
-+    @test min(A13024, B13024) == sparse([1,2,5], [1,2,5], fill(true,3))
-+    @test typeof(min(A13024, B13024)) == SparseMatrixCSC{Bool,Int}
-+
-+    for op in (+, -, &, |, $, max, min)
-+        @test op(A13024, B13024) == op(full(A13024), full(B13024))
-+    end
-+end
-+
-+let A = 2. * speye(5,5)
-+    @test full(spones(A)) == eye(full(A))
-+end

diff --git a/julia.spec b/julia.spec
index 3215233..b64763c 100644
--- a/julia.spec
+++ b/julia.spec
@@ -6,7 +6,7 @@
 
 Name:           julia
 Version:        0.4.0
-Release:        0.4.rc1%{?dist}
+Release:        1%{?dist}
 Summary:        High-level, high-performance dynamic language for technical computing
 Group:          Development/Languages
 # Julia itself is MIT, with a few LGPLv2+ and GPLv2+ files
@@ -14,13 +14,11 @@ Group:          Development/Languages
 # Rmath is  GPLv2+
 License:        MIT and LGPLv2+ and GPLv2+
 URL:            http://julialang.org/
-Source0:        https://github.com/JuliaLang/julia/releases/download/v0.4.0-rc1/julia-0.4.0-rc1_e5c6964a49.tar.gz
+Source0:        https://github.com/JuliaLang/julia/releases/download/v%{version}/julia-%{version}.tar.gz
 # Julia currently uses a custom version of libuv, patches are not yet upstream
 Source1:        https://api.github.com/repos/JuliaLang/libuv/tarball/%{uvcommit}#/libuv-%{uvcommit}.tar.gz
 # Julia currently uses a custom version of Rmath, called Rmath-julia, with a custom RNG system (temporary)
 Source2:        https://api.github.com/repos/JuliaLang/Rmath-julia/tarball/v%{Rmathjuliaversion}#/Rmath-julia-%{Rmathjuliaversion}.tar.gz
-
-Patch1: julia-0.4-branch.patch
 Provides:       bundled(libuv) = %{uvversion}
 Provides:       bundled(Rmath) = %{Rmathversion}
 BuildRequires:  arpack-devel
@@ -122,11 +120,7 @@ needed when programming in the Julia language, but rather for embedding
 Julia into external programs or debugging Julia itself.
 
 %prep
-%setup -qn %{name}
-
-%patch1 -p1 -b .update-branch
-# .gitignore files make rpmlint complain
-find . -name ".git*" -exec rm {} \;
+%setup -qn %{name}-%{version}
 
 pushd deps
     # Julia downloads tarballs for external dependencies even when the folder is present:
@@ -181,7 +175,7 @@ make %commonopts -C test \
     abstractarray intfuncs simdloop blas sparse \
     bitarray copy math functional \
     operators path ccall parse loading \
-    bigint sorting statistics spawn backtrace \
+    bigint sorting statistics spawn \
     priorityqueue file mmap version resolve \
     pollfd mpfr broadcast complex socket \
     floatapprox readdlm reflection regex float16 \
@@ -201,10 +195,6 @@ make %commonopts -C test fastmath linalg profile
 %install
 make %commonopts DESTDIR=%{buildroot} install
 
-# Achitecture-dependent file should not be there
-# https://github.com/JuliaLang/julia/pull/12779
-rm -f %{buildroot}%{_datarootdir}/julia/test/libccalltest.so
-
 cp -p CONTRIBUTING.md LICENSE.md NEWS.md README.md %{buildroot}%{_docdir}/julia/
 
 pushd %{buildroot}%{_prefix}/share/man/man1/
@@ -326,6 +316,11 @@ exit 0
 /usr/bin/gtk-update-icon-cache %{_datarootdir}/icons/hicolor &>/dev/null || :
 
 %changelog
+* Fri Oct 9 2015 Milan Bouchet-Valat <nalimilan@club.fr> - 0.4.0-1
+- New upstream release.
+- Drop patches now included upstream.
+- Drop obsolete rm commands.
+
 * Thu Sep 17 2015 Dave Airlie <airlied@redhat.com> 0.4.0-0.4.rc1
 - drag in latest upstream 0.4 branch in hope of fixing i686
 - drop out some tests on i686

diff --git a/sources b/sources
index 714cd90..e3a539c 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,3 @@
 429c128e55147c8b43d6555fe406869b  libuv-28f5f06b5ff6f010d666ec26552e0badaca5cdcd.tar.gz
 4e3f9e41e7b8cd3070225d1f5e8b21d9  Rmath-julia-0.1.tar.gz
-5245d7cc784cc39cedf92f12cc12b098  julia-0.4.0-rc1_e5c6964a49.tar.gz
+af4e9427785784ba44254f20e0eddf87  julia-0.4.0.tar.gz

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-01 21:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01 21:38 [rpms/julia] epel10: New upstream release 0.4.0 Milan Bouchet-Valat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox