Skip to content

Commit 3b92b97

Browse files
Fix unused variable warnings in builds disabled debug-assertions.
1 parent 6fd7d85 commit 3b92b97

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustc/ty/context.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,7 @@ pub struct LocalTableInContext<'a, V: 'a> {
226226
fn validate_hir_id_for_typeck_tables(local_id_root: Option<DefId>,
227227
hir_id: hir::HirId,
228228
mut_access: bool) {
229-
#[cfg(debug_assertions)]
230-
{
229+
if cfg!(debug_assertions) {
231230
if let Some(local_id_root) = local_id_root {
232231
if hir_id.owner != local_id_root.index {
233232
ty::tls::with(|tcx| {

0 commit comments

Comments
 (0)