markused: always include slice_ni & substr_ni too (support s#[] and a#[] in -skip-unused)

pull/13471/head
Delyan Angelov 2022-02-14 19:05:24 +02:00
parent efdbe9d92c
commit f8bf3db568
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,7 @@ pub fn mark_used(mut table ast.Table, pref &pref.Preferences, ast_files []&ast.F
'20.clone_static', '20.clone_static',
'20.trim', '20.trim',
'20.substr', '20.substr',
'20.substr_ni',
'20.at', '20.at',
'20.at_with_check', '20.at_with_check',
'20.index_kmp', '20.index_kmp',
@ -88,6 +89,7 @@ pub fn mark_used(mut table ast.Table, pref &pref.Preferences, ast_files []&ast.F
'22.reverse', '22.reverse',
'22.repeat_to_depth', '22.repeat_to_depth',
'22.slice', '22.slice',
'22.slice_ni',
'22.slice2', '22.slice2',
'61.get', '61.get',
'61.set', '61.set',