File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -680,7 +680,7 @@ static NOINLINE void print_backdate_admonition(jl_binding_t *b) JL_NOTSAFEPOINT
680
680
static inline void check_backdated_binding (jl_binding_t * b , enum jl_partition_kind kind ) JL_NOTSAFEPOINT
681
681
{
682
682
if (__unlikely (kind == PARTITION_KIND_BACKDATED_CONST ) &&
683
- !(jl_atomic_fetch_or (& b -> flags , BINDING_FLAG_DID_PRINT_BACKDATE_ADMONITION ) & BINDING_FLAG_DID_PRINT_BACKDATE_ADMONITION )) {
683
+ !(jl_atomic_fetch_or_relaxed (& b -> flags , BINDING_FLAG_DID_PRINT_BACKDATE_ADMONITION ) & BINDING_FLAG_DID_PRINT_BACKDATE_ADMONITION )) {
684
684
print_backdate_admonition (b );
685
685
}
686
686
}
@@ -858,8 +858,8 @@ JL_DLLEXPORT jl_binding_t *jl_get_binding_for_method_def(jl_module_t *m, jl_sym_
858
858
jl_errorf ("invalid method definition in %s: function %s.%s must be explicitly imported to be extended" ,
859
859
jl_module_debug_name (m ), jl_module_debug_name (from ), jl_symbol_name (var ));
860
860
}
861
- else if (jl_atomic_fetch_or (& b -> flags , BINDING_FLAG_DID_PRINT_IMPLICIT_IMPORT_ADMONITION ) &
862
- BINDING_FLAG_DID_PRINT_IMPLICIT_IMPORT_ADMONITION ) {
861
+ else if (!( jl_atomic_fetch_or_relaxed (& b -> flags , BINDING_FLAG_DID_PRINT_IMPLICIT_IMPORT_ADMONITION ) &
862
+ BINDING_FLAG_DID_PRINT_IMPLICIT_IMPORT_ADMONITION ) ) {
863
863
jl_printf (JL_STDERR , "WARNING: Constructor for type \"%s\" was extended in `%s` without explicit qualification or import.\n"
864
864
" NOTE: Assumed \"%s\" refers to `%s.%s`. This behavior is deprecated and may differ in future versions.\n"
865
865
" NOTE: This behavior may have differed in Julia versions prior to 1.12.\n"
You can’t perform that action at this time.
0 commit comments