66class TestPhantomStyle (TestBase ):
77
88 def test_style_none (self ):
9+ rustc_version = util .get_rustc_version (sublime .active_window (), plugin_path )
10+ if semver .match (rustc_version , '<1.89.0-beta' ):
11+ return
912 self ._override_setting ('rust_phantom_style' , 'none' )
1013 self ._with_open_file ('tests/error-tests/tests/cast-to-unsized-trait-object-suggestion.rs' ,
1114 self ._test_style_none )
@@ -20,9 +23,12 @@ def _test_style_none(self, view):
2023 regions = ui .view_regions [view .file_name ()]
2124 # Extremely basic check, the number of unique regions displayed.
2225 rs = [(r .a , r .b ) for r in regions ]
23- self .assertEqual (len (set (rs )), 4 )
26+ self .assertEqual (len (set (rs )), 5 )
2427
2528 def test_style_popup (self ):
29+ rustc_version = util .get_rustc_version (sublime .active_window (), plugin_path )
30+ if semver .match (rustc_version , '<1.89.0-beta' ):
31+ return
2632 self ._override_setting ('rust_phantom_style' , 'popup' )
2733 self ._with_open_file ('tests/error-tests/tests/cast-to-unsized-trait-object-suggestion.rs' ,
2834 self ._test_style_popup )
@@ -37,7 +43,7 @@ def _test_style_popup(self, view):
3743 regions = ui .view_regions [view .file_name ()]
3844 # Extremely basic check, the number of unique regions displayed.
3945 rs = [(r .a , r .b ) for r in regions ]
40- self .assertEqual (len (set (rs )), 4 )
46+ self .assertEqual (len (set (rs )), 5 )
4147 # Trigger popup.
4248 self .assertEqual (len (ui .popups ), 0 )
4349 for region in regions :
@@ -48,7 +54,7 @@ def _test_style_popup(self, view):
4854 ui .popups .clear ()
4955
5056 # Trigger gutter hover.
51- for lineno in (12 , 16 ):
57+ for lineno in (12 , 18 ):
5258 pt = view .text_point (lineno - 1 , 0 )
5359 messages .message_popup (view , pt , sublime .HOVER_GUTTER )
5460 popups = ui .popups [view .file_name ()]
0 commit comments