Skip to content

Commit 74eca73

Browse files
authored
Merge pull request #21565 from abdul2801/master
Remove outdated SyntaxErrorKind FIXME comment
2 parents bbf2f8c + 1449bc8 commit 74eca73

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

crates/syntax/src/syntax_error.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,6 @@ use crate::{TextRange, TextSize};
99
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
1010
pub struct SyntaxError(String, TextRange);
1111

12-
// FIXME: there was an unused SyntaxErrorKind previously (before this enum was removed)
13-
// It was introduced in this PR: https://github.com/rust-lang/rust-analyzer/pull/846/files#diff-827da9b03b8f9faa1bade5cdd44d5dafR95
14-
// but it was not removed by a mistake.
15-
//
16-
// So, we need to find a place where to stick validation for attributes in match clauses.
17-
// Code before refactor:
18-
// InvalidMatchInnerAttr => {
19-
// write!(f, "Inner attributes are only allowed directly after the opening brace of the match expression")
20-
// }
21-
2212
impl SyntaxError {
2313
pub fn new(message: impl Into<String>, range: TextRange) -> Self {
2414
Self(message.into(), range)

0 commit comments

Comments
 (0)