@@ -512,5 +512,58 @@ deprecation_message(Warning, Message) ->
512
512
513
513
deprecation ('Elixir.Kernel' , 'size' , 1 ) ->
514
514
" use byte_size/1 or tuple_size/1 instead" ;
515
+ deprecation ('Elixir.Kernel' , 'atom_to_binary' , 1 ) ->
516
+ " use Atom.to_string/1 instead" ;
517
+ deprecation ('Elixir.Kernel' , 'atom_to_list' , 1 ) ->
518
+ " use Atom.to_char_list/1 instead" ;
519
+ deprecation ('Elixir.Kernel' , 'binary_to_atom' , 1 ) ->
520
+ " use String.to_atom/1 instead" ;
521
+ deprecation ('Elixir.Kernel' , 'binary_to_existing_atom' , 1 ) ->
522
+ " use String.to_existing_atom/1 instead" ;
523
+ deprecation ('Elixir.Kernel' , 'binary_to_integer' , 1 ) ->
524
+ " use String.to_integer/1 instead" ;
525
+ deprecation ('Elixir.Kernel' , 'binary_to_integer' , 2 ) ->
526
+ " use String.to_integer/2 instead" ;
527
+ deprecation ('Elixir.Kernel' , 'binary_to_float' , 1 ) ->
528
+ " use String.to_float/1 instead" ;
529
+ deprecation ('Elixir.Kernel' , 'bitstring_to_list' , 1 ) ->
530
+ " use BitString.to_list/1 instead" ;
531
+ deprecation ('Elixir.Kernel' , 'float_to_binary' , 1 ) ->
532
+ " use Float.to_string/1 instead" ;
533
+ deprecation ('Elixir.Kernel' , 'float_to_binary' , 2 ) ->
534
+ " use Float.to_string/2 instead" ;
535
+ deprecation ('Elixir.Kernel' , 'float_to_list' , 1 ) ->
536
+ " use Float.to_char_list/1 instead" ;
537
+ deprecation ('Elixir.Kernel' , 'float_to_list' , 2 ) ->
538
+ " use Float.to_char_list/2 instead" ;
539
+ deprecation ('Elixir.Kernel' , 'iodata_length' , 1 ) ->
540
+ " use IO.iodata_length/1 instead" ;
541
+ deprecation ('Elixir.Kernel' , 'iodata_to_binary' , 1 ) ->
542
+ " use IO.iodata_to_binary/1 instead" ;
543
+ deprecation ('Elixir.Kernel' , 'integer_to_binary' , 1 ) ->
544
+ " use Integer.to_string/1 instead" ;
545
+ deprecation ('Elixir.Kernel' , 'integer_to_binary' , 2 ) ->
546
+ " use Integer.to_string/2 instead" ;
547
+ deprecation ('Elixir.Kernel' , 'integer_to_list' , 1 ) ->
548
+ " use Integer.to_char_list/1 instead" ;
549
+ deprecation ('Elixir.Kernel' , 'integer_to_list' , 2 ) ->
550
+ " use Integer.to_char_list/2 instead" ;
551
+ deprecation ('Elixir.Kernel' , 'list_to_atom' , 1 ) ->
552
+ " use List.to_atom/1 instead" ;
553
+ deprecation ('Elixir.Kernel' , 'list_to_bitstring' , 1 ) ->
554
+ true ;
555
+ deprecation ('Elixir.Kernel' , 'list_to_existing_atom' , 1 ) ->
556
+ " use List.to_existing_atom/1 instead" ;
557
+ deprecation ('Elixir.Kernel' , 'list_to_float' , 1 ) ->
558
+ " use List.to_float/2 instead" ;
559
+ deprecation ('Elixir.Kernel' , 'list_to_integer' , 1 ) ->
560
+ " use List.to_integer/1 instead" ;
561
+ deprecation ('Elixir.Kernel' , 'list_to_integer' , 2 ) ->
562
+ " use List.to_integer/2 instead" ;
563
+ deprecation ('Elixir.Kernel' , 'list_to_tuple' , 1 ) ->
564
+ " use List.to_tuple/1 instead" ;
565
+ deprecation ('Elixir.Kernel' , 'tuple_to_list' , 1 ) ->
566
+ " use Tuple.to_list/1 instead" ;
567
+
515
568
deprecation (_ , _ , _ ) ->
516
569
false .
0 commit comments