@@ -48,7 +48,7 @@ use std::str;
4848use std:: string:: ToString ;
4949
5050use askama:: Template ;
51- use rustc_attr:: { ConstStability , Deprecation , Since , StabilityLevel } ;
51+ use rustc_attr:: { ConstStability , Deprecation , StabilityLevel , StableSince } ;
5252use rustc_data_structures:: captures:: Captures ;
5353use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
5454use rustc_hir:: def_id:: { DefId , DefIdSet } ;
@@ -912,10 +912,10 @@ fn assoc_method(
912912/// consequence of the above rules.
913913fn render_stability_since_raw_with_extra (
914914 w : & mut Buffer ,
915- ver : Option < Since > ,
915+ ver : Option < StableSince > ,
916916 const_stability : Option < ConstStability > ,
917- containing_ver : Option < Since > ,
918- containing_const_ver : Option < Since > ,
917+ containing_ver : Option < StableSince > ,
918+ containing_const_ver : Option < StableSince > ,
919919 extra_class : & str ,
920920) -> bool {
921921 let stable_version = if ver != containing_ver && let Some ( ver) = & ver {
@@ -977,21 +977,21 @@ fn render_stability_since_raw_with_extra(
977977 !stability. is_empty ( )
978978}
979979
980- fn since_to_string ( since : & Since ) -> Option < String > {
980+ fn since_to_string ( since : & StableSince ) -> Option < String > {
981981 match since {
982- Since :: Version ( since) => Some ( since. to_string ( ) ) ,
983- Since :: Current => Some ( RustcVersion :: CURRENT . to_string ( ) ) ,
984- Since :: Err => None ,
982+ StableSince :: Version ( since) => Some ( since. to_string ( ) ) ,
983+ StableSince :: Current => Some ( RustcVersion :: CURRENT . to_string ( ) ) ,
984+ StableSince :: Err => None ,
985985 }
986986}
987987
988988#[ inline]
989989fn render_stability_since_raw (
990990 w : & mut Buffer ,
991- ver : Option < Since > ,
991+ ver : Option < StableSince > ,
992992 const_stability : Option < ConstStability > ,
993- containing_ver : Option < Since > ,
994- containing_const_ver : Option < Since > ,
993+ containing_ver : Option < StableSince > ,
994+ containing_const_ver : Option < StableSince > ,
995995) -> bool {
996996 render_stability_since_raw_with_extra (
997997 w,
0 commit comments