Skip to content

Conversation

@fredrikekre
Copy link
Member

@fredrikekre fredrikekre commented Feb 16, 2018

Requires JuliaLang/Compat.jl#492, JuliaLang/Compat.jl#493 and JuliaLang/Compat.jl#494 and then a new Compat release to pass on 0.6.

@fredrikekre fredrikekre requested a review from mortenpi February 16, 2018 13:14
@fredrikekre fredrikekre changed the title Deprecations fixes Deprecation fixes Feb 16, 2018
Copy link
Member

@mortenpi mortenpi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for doing this! Will merge once Compat is out and the tests pass.

nameof(b::Base.Docs.Binding) = b.var
nameof(x::DataType) = x.name.name
nameof(m::Module) = module_name(m)
nameof(m::Module) = Compat.nameof(m)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this could actually just extend the nameof in Base. But that is beyond this PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we should actually remove the nameof definitions here to avoid shadowing Base on 0.7.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did extend at first but that a bit weird. Either we leave it as is here, or upstream the other nameof methods to base. Not sure how useful the other methods are though, so I think its fine to leave this as is.

find_object(::Union{Function, DataType}, binding, ::Union{Union,Type{Union{}}}) = Utilities.Object(binding, Union{})
find_object(other, binding, typesig) = Utilities.Object(binding, typesig)

_method_exists(f, t) = method_exists(f, t)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently this actually made sense back when Documenter still supported 0.4. Good to get rid of this. 😆

@mortenpi mortenpi added this to the 0.13.2 milestone Feb 16, 2018
@mortenpi mortenpi mentioned this pull request Feb 18, 2018
@ararslan
Copy link
Member

ararslan commented Feb 18, 2018

The Windows failures on 0.7 are unrelated. (They've been happening everywhere.) It'll need an admin to merge since it's a required check.

@mortenpi mortenpi merged commit 224f62c into master Feb 18, 2018
@mortenpi mortenpi deleted the fe/markdown branch February 18, 2018 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants