about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide/examples/rustc-interface-example.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-04-02 14:31:27 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2025-04-02 15:43:11 +1100
commit2e7de1a924850b4f084ac3b83e372b54748aadb0 (patch)
treecc9f2795b598a652bb668ea9c46771ecebcf65b6 /src/doc/rustc-dev-guide/examples/rustc-interface-example.rs
parentfb01485690da6f4c3dbb7f5a3068784f5a3d87bf (diff)
downloadrust-2e7de1a924850b4f084ac3b83e372b54748aadb0.tar.gz
rust-2e7de1a924850b4f084ac3b83e372b54748aadb0.zip
Reduce scope of `AstValidator::with_*` calls.
`AstValidator` has several `with_*` methods, each one setting a field
that adjust how checking takes place for items within certain other
items. E.g. `with_in_trait_impl` is used to adjust the checking done on
items inside an `impl` item. Weirdly, the scopes used for most of the
`with_*` calls are very broad, and include things that aren't "inside"
the item, such as visibility, unsafety, and constness.

This commit minimizes the scope of these `with_*` calls so they only
apply to the things inside the item.
Diffstat (limited to 'src/doc/rustc-dev-guide/examples/rustc-interface-example.rs')
0 files changed, 0 insertions, 0 deletions