@@ -6,7 +6,7 @@ mod utils;
66
77use diagnostic:: { DiagnosticDerive , LintDiagnosticDerive } ;
88use proc_macro2:: TokenStream ;
9- use subdiagnostic:: SubdiagnosticDeriveBuilder ;
9+ use subdiagnostic:: SubdiagnosticDerive ;
1010use synstructure:: Structure ;
1111
1212/// Implements `#[derive(Diagnostic)]`, which allows for errors to be specified as a struct,
@@ -55,7 +55,7 @@ use synstructure::Structure;
5555///
5656/// See rustc dev guide for more examples on using the `#[derive(Diagnostic)]`:
5757/// <https://rustc-dev-guide.rust-lang.org/diagnostics/diagnostic-structs.html>
58- pub fn session_diagnostic_derive ( mut s : Structure < ' _ > ) -> TokenStream {
58+ pub fn diagnostic_derive ( mut s : Structure < ' _ > ) -> TokenStream {
5959 s. underscore_const ( true ) ;
6060 DiagnosticDerive :: new ( s) . into_tokens ( )
6161}
@@ -153,7 +153,7 @@ pub fn lint_diagnostic_derive(mut s: Structure<'_>) -> TokenStream {
153153///
154154/// diag.subdiagnostic(RawIdentifierSuggestion { span, applicability, ident });
155155/// ```
156- pub fn session_subdiagnostic_derive ( mut s : Structure < ' _ > ) -> TokenStream {
156+ pub fn subdiagnostic_derive ( mut s : Structure < ' _ > ) -> TokenStream {
157157 s. underscore_const ( true ) ;
158- SubdiagnosticDeriveBuilder :: new ( ) . into_tokens ( s)
158+ SubdiagnosticDerive :: new ( ) . into_tokens ( s)
159159}
0 commit comments