Any lint for decreasing variable scope?

Is there a lint that would mark variable as a candidate to move to inside scope?

{
let is_true = false;
{
{
//here is the scope into which that variables declaration could be safely moved into, 
if is_true
{
do_something();
}
}
}
}

make :
let is_true = false;
to
let mut is_true = false;

make variable mutable to change the value inside the scope

Will that trigger some lint?

https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=a5b85489f4b2106b4591656db547fbdd

I tried this but it seems like Clippy doesn't have such a lint:

#![warn(
    clippy::all,
    clippy::restriction,
    clippy::pedantic,
    clippy::nursery,
    clippy::cargo
)]

fn main() {
    {
        let is_true = false;
        {
            {
                //here is the scope into which that variables declaration could be safely moved into,
                if is_true {
                    drop(1);
                }
            }
        }
    }
}

@Ebin I think you didn't understand the question.

Thanks, what's the way to introduce such lint into the standard?
I really find that sort of lints helpful in maintaining clean code.

Yeah, I think this is a reasonable lint.

I don't know the exact procedure, but you can open a topic on the internals forum and detail why such a lint would be useful, for feedback.

Thanks