5757
5858#![ forbid( unsafe_code) ]
5959
60- #![ cfg_attr( feature="flame_it" , feature( plugin, custom_attribute) ) ]
61- #![ cfg_attr( feature="flame_it" , plugin( flamer) ) ]
62-
6360pub mod deprecated;
6461pub mod format_chars;
6562pub mod level;
@@ -119,7 +116,7 @@ impl<'text> InitialInfo<'text> {
119116 /// Also sets the class for each First Strong Isolate initiator (FSI) to LRI or RLI if a strong
120117 /// character is found before the matching PDI. If no strong character is found, the class will
121118 /// remain FSI, and it's up to later stages to treat these as LRI when needed.
122- #[ cfg_attr( feature = "flame_it" , flame) ]
119+ #[ cfg_attr( feature = "flame_it" , flamer :: flame) ]
123120 pub fn new ( text : & str , default_para_level : Option < Level > ) -> InitialInfo < ' _ > {
124121 let mut original_classes = Vec :: with_capacity ( text. len ( ) ) ;
125122
@@ -245,7 +242,7 @@ impl<'text> BidiInfo<'text> {
245242 /// text that is entirely LTR. See the `nsBidi` class from Gecko for comparison.
246243 ///
247244 /// TODO: Support auto-RTL base direction
248- #[ cfg_attr( feature = "flame_it" , flame) ]
245+ #[ cfg_attr( feature = "flame_it" , flamer :: flame) ]
249246 pub fn new ( text : & str , default_para_level : Option < Level > ) -> BidiInfo < ' _ > {
250247 let InitialInfo {
251248 original_classes,
@@ -293,15 +290,15 @@ impl<'text> BidiInfo<'text> {
293290
294291 /// Re-order a line based on resolved levels and return only the embedding levels, one `Level`
295292 /// per *byte*.
296- #[ cfg_attr( feature = "flame_it" , flame) ]
293+ #[ cfg_attr( feature = "flame_it" , flamer :: flame) ]
297294 pub fn reordered_levels ( & self , para : & ParagraphInfo , line : Range < usize > ) -> Vec < Level > {
298295 let ( levels, _) = self . visual_runs ( para, line) ;
299296 levels
300297 }
301298
302299 /// Re-order a line based on resolved levels and return only the embedding levels, one `Level`
303300 /// per *character*.
304- #[ cfg_attr( feature = "flame_it" , flame) ]
301+ #[ cfg_attr( feature = "flame_it" , flamer :: flame) ]
305302 pub fn reordered_levels_per_char (
306303 & self ,
307304 para : & ParagraphInfo ,
@@ -313,7 +310,7 @@ impl<'text> BidiInfo<'text> {
313310
314311
315312 /// Re-order a line based on resolved levels and return the line in display order.
316- #[ cfg_attr( feature = "flame_it" , flame) ]
313+ #[ cfg_attr( feature = "flame_it" , flamer :: flame) ]
317314 pub fn reorder_line ( & self , para : & ParagraphInfo , line : Range < usize > ) -> Cow < ' text , str > {
318315 let ( levels, runs) = self . visual_runs ( para, line. clone ( ) ) ;
319316
@@ -338,7 +335,7 @@ impl<'text> BidiInfo<'text> {
338335 /// `line` is a range of bytes indices within `levels`.
339336 ///
340337 /// <http://www.unicode.org/reports/tr9/#Reordering_Resolved_Levels>
341- #[ cfg_attr( feature = "flame_it" , flame) ]
338+ #[ cfg_attr( feature = "flame_it" , flamer :: flame) ]
342339 pub fn visual_runs (
343340 & self ,
344341 para : & ParagraphInfo ,
@@ -463,7 +460,7 @@ impl<'text> BidiInfo<'text> {
463460///
464461/// The levels assigned to these characters are not specified by the algorithm. This function
465462/// assigns each one the level of the previous character, to avoid breaking level runs.
466- #[ cfg_attr( feature = "flame_it" , flame) ]
463+ #[ cfg_attr( feature = "flame_it" , flamer :: flame) ]
467464fn assign_levels_to_removed_chars ( para_level : Level , classes : & [ BidiClass ] , levels : & mut [ Level ] ) {
468465 for i in 0 ..levels. len ( ) {
469466 if prepare:: removed_by_x9 ( classes[ i] ) {
0 commit comments