]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #51182 - eddyb:not-just-visibility, r=nikomatsakis
authorbors <bors@rust-lang.org>
Thu, 31 May 2018 08:55:09 +0000 (08:55 +0000)
committerbors <bors@rust-lang.org>
Thu, 31 May 2018 08:55:09 +0000 (08:55 +0000)
[MIR] Change "scopes" from "visibility scopes" to "source scopes".

These scopes are already used for source-oriented diagnostics, lint levels and unsafety checks.
This PR generalizes the naming around scopes, making the type `SourceScope`, and flips (across several commits) the relationship/priority between `LocalDecl`'s "visibility" and "syntactic" scopes.

r? @nikomatsakis


Trivial merge