Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2fa9d47

Browse files
Veykrilehuss
authored andcommittedFeb 1, 2025
Disable some incorrect rust-analyzer diagnostics on beta
1 parent ee94112 commit 2fa9d47

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎src/tools/rust-analyzer/crates/hir-def/src/data.rs

+1-1
Original file line numberDiff line numberDiff 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);

‎src/tools/rust-analyzer/crates/hir-ty/src/lower.rs

+3-3
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)
Failed to load comments.