Skip to content

Commit

Permalink
Fix unused variable warnings in builds disabled debug-assertions.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoerister committed Aug 14, 2017
1 parent 6fd7d85 commit 3b92b97
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/librustc/ty/context.rs
Expand Up @@ -226,8 +226,7 @@ pub struct LocalTableInContext<'a, V: 'a> {
fn validate_hir_id_for_typeck_tables(local_id_root: Option<DefId>,
hir_id: hir::HirId,
mut_access: bool) {
#[cfg(debug_assertions)]
{
if cfg!(debug_assertions) {
if let Some(local_id_root) = local_id_root {
if hir_id.owner != local_id_root.index {
ty::tls::with(|tcx| {
Expand Down

0 comments on commit 3b92b97

Please sign in to comment.