Skip to content

Commit

Permalink
Revert "Workaround incorrect Uint deprecation message"
Browse files Browse the repository at this point in the history
This reverts commit 9723ec0.
ref #13221 #13227
  • Loading branch information
tkelman committed May 27, 2016
1 parent d6be769 commit 836cdb5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,15 +505,7 @@ void jl_binding_deprecation_warning(jl_binding_t *b)
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 ");
if (b->owner && strcmp(jl_symbol_name(b->owner->name), "Base") == 0 &&
strcmp(jl_symbol_name(b->name), "Uint") == 0) {
// TODO: Suggesting type b->value is wrong for typealiases.
// Uncommon in Base, hardcoded here for now, see #13221
jl_printf(JL_STDERR, "UInt");
}
else {
jl_static_show(JL_STDERR, v);
}
jl_static_show(JL_STDERR, v);
jl_printf(JL_STDERR, " instead");
}
jl_printf(JL_STDERR, ".\n");
Expand Down

0 comments on commit 836cdb5

Please sign in to comment.