File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -265,6 +265,11 @@ impl HygieneData {
265265 scope
266266 }
267267
268+ fn apply_mark ( & mut self , ctxt : SyntaxContext , mark : Mark ) -> SyntaxContext {
269+ assert_ne ! ( mark, Mark :: root( ) ) ;
270+ self . apply_mark_with_transparency ( ctxt, mark, self . default_transparency ( mark) )
271+ }
272+
268273 fn apply_mark_with_transparency ( & mut self , ctxt : SyntaxContext , mark : Mark ,
269274 transparency : Transparency ) -> SyntaxContext {
270275 assert_ne ! ( mark, Mark :: root( ) ) ;
@@ -407,10 +412,7 @@ impl SyntaxContext {
407412
408413 /// Extend a syntax context with a given mark and default transparency for that mark.
409414 pub fn apply_mark ( self , mark : Mark ) -> SyntaxContext {
410- assert_ne ! ( mark, Mark :: root( ) ) ;
411- self . apply_mark_with_transparency (
412- mark, HygieneData :: with ( |data| data. default_transparency ( mark) )
413- )
415+ HygieneData :: with ( |data| data. apply_mark ( self , mark) )
414416 }
415417
416418 /// Extend a syntax context with a given mark and transparency
You can’t perform that action at this time.
0 commit comments