2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ impl FunctionData {
94
94
. map ( Box :: new) ;
95
95
let rustc_allow_incoherent_impl = attrs. by_key ( & sym:: rustc_allow_incoherent_impl) . exists ( ) ;
96
96
if flags. contains ( FnFlags :: HAS_UNSAFE_KW )
97
- && !crate_graph[ krate] . edition . at_least_2024 ( )
97
+ // && !crate_graph[krate].edition.at_least_2024()
98
98
&& attrs. by_key ( & sym:: rustc_deprecated_safe_2024) . exists ( )
99
99
{
100
100
flags. remove ( FnFlags :: HAS_UNSAFE_KW ) ;
Original file line number Diff line number Diff line change @@ -226,8 +226,8 @@ impl<'a> TyLoweringContext<'a> {
226
226
self
227
227
}
228
228
229
- pub fn push_diagnostic ( & mut self , type_ref : TypeRefId , kind : TyLoweringDiagnosticKind ) {
230
- let source = match self . types_source_map {
229
+ pub fn push_diagnostic ( & mut self , type_ref : TypeRefId , _kind : TyLoweringDiagnosticKind ) {
230
+ let _source = match self . types_source_map {
231
231
Some ( source_map) => {
232
232
let Ok ( source) = source_map. type_syntax ( type_ref) else {
233
233
stdx:: never!( "error in synthetic type" ) ;
@@ -237,7 +237,7 @@ impl<'a> TyLoweringContext<'a> {
237
237
}
238
238
None => Either :: Left ( type_ref) ,
239
239
} ;
240
- self . diagnostics . push ( TyLoweringDiagnostic { source, kind } ) ;
240
+ // self.diagnostics.push(TyLoweringDiagnostic { source, kind });
241
241
}
242
242
}
243
243
0 commit comments