File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/tools/rust-analyzer/crates Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ impl FunctionData {
9494 . map ( Box :: new) ;
9595 let rustc_allow_incoherent_impl = attrs. by_key ( & sym:: rustc_allow_incoherent_impl) . exists ( ) ;
9696 if flags. contains ( FnFlags :: HAS_UNSAFE_KW )
97- && !crate_graph[ krate] . edition . at_least_2024 ( )
97+ // && !crate_graph[krate].edition.at_least_2024()
9898 && attrs. by_key ( & sym:: rustc_deprecated_safe_2024) . exists ( )
9999 {
100100 flags. remove ( FnFlags :: HAS_UNSAFE_KW ) ;
Original file line number Diff line number Diff line change @@ -226,8 +226,8 @@ impl<'a> TyLoweringContext<'a> {
226226 self
227227 }
228228
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 {
231231 Some ( source_map) => {
232232 let Ok ( source) = source_map. type_syntax ( type_ref) else {
233233 stdx:: never!( "error in synthetic type" ) ;
@@ -237,7 +237,7 @@ impl<'a> TyLoweringContext<'a> {
237237 }
238238 None => Either :: Left ( type_ref) ,
239239 } ;
240- self . diagnostics . push ( TyLoweringDiagnostic { source, kind } ) ;
240+ // self.diagnostics.push(TyLoweringDiagnostic { source, kind });
241241 }
242242}
243243
You can’t perform that action at this time.
0 commit comments