File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -965,7 +965,7 @@ impl Session {
965
965
}
966
966
967
967
pub fn teach ( & self , code : & DiagnosticId ) -> bool {
968
- self . opts . debugging_opts . teach && self . parse_sess . span_diagnostic . must_teach ( code)
968
+ self . opts . debugging_opts . teach && self . diagnostic ( ) . must_teach ( code)
969
969
}
970
970
971
971
/// Are we allowed to use features from the Rust 2018 edition?
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ impl CodegenBackend for MetadataOnlyCodegenBackend {
116
116
match * cty {
117
117
CrateType :: Rlib | CrateType :: Dylib | CrateType :: Executable => { } ,
118
118
_ => {
119
- sess. parse_sess . span_diagnostic . warn (
119
+ sess. diagnostic ( ) . warn (
120
120
& format ! ( "LLVM unsupported, so output type {} is not supported" , cty)
121
121
) ;
122
122
} ,
Original file line number Diff line number Diff line change @@ -1133,7 +1133,7 @@ where
1133
1133
// Unresolved macros might be due to mistyped `#[macro_use]`,
1134
1134
// so abort after checking for unknown attributes. (#49074)
1135
1135
if resolver. found_unresolved_macro {
1136
- sess. parse_sess . span_diagnostic . abort_if_errors ( ) ;
1136
+ sess. diagnostic ( ) . abort_if_errors ( ) ;
1137
1137
}
1138
1138
1139
1139
// Lower ast -> hir.
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ struct AstValidator<'a> {
32
32
33
33
impl < ' a > AstValidator < ' a > {
34
34
fn err_handler ( & self ) -> & errors:: Handler {
35
- & self . session . parse_sess . span_diagnostic
35
+ & self . session . diagnostic ( )
36
36
}
37
37
38
38
fn check_lifetime ( & self , ident : Ident ) {
You can’t perform that action at this time.
0 commit comments