Skip to content

Commit b7070f3

Browse files
committed
Apply #[cfg(debug_assertions)] directly
1 parent cff68d1 commit b7070f3

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

compiler/rustc_hir/src/definitions.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -407,13 +407,11 @@ impl Definitions {
407407
// Find the next free disambiguator for this key.
408408
let disambiguator = {
409409
#[cfg(debug_assertions)]
410-
{
411-
debug_assert_eq!(
412-
parent,
413-
disambiguator.parent.expect("must be set"),
414-
"provided parent and parent in disambiguator must be the same"
415-
)
416-
}
410+
debug_assert_eq!(
411+
parent,
412+
disambiguator.parent.expect("must be set"),
413+
"provided parent and parent in disambiguator must be the same"
414+
);
417415

418416
let next_disamb = disambiguator.next.entry(data).or_insert(0);
419417
let disambiguator = *next_disamb;

0 commit comments

Comments
 (0)