Skip to content

Commit ba2da96

Browse files
committed
remove warnings
1 parent 72cf7bd commit ba2da96

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

crates/hir-ty/src/lib.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -1053,8 +1053,11 @@ pub fn known_const_to_ast(
10531053
#[derive(Debug, Copy, Clone)]
10541054
pub(crate) enum DeclOrigin {
10551055
// from an `if let` expression
1056-
LetExpr,
1057-
// from `let x = ..`
1056+
// Due to the limited use of `DeclOrigin` it has so far been
1057+
// necessary to have the `LetExpr` variant. However, to have the
1058+
// identical struct to its rustc counterpart, we keep this variant here.
1059+
// LetExpr,
1060+
/// from `let x = ..`
10581061
LocalDecl,
10591062
}
10601063

0 commit comments

Comments
 (0)