about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-04-01 19:00:13 +0000
committerGitHub <noreply@github.com>2025-04-01 19:00:13 +0000
commite975563e00aa93b06c5674bbaf6894593714d8b0 (patch)
treeef6fa98af5f2bfda1041170c641547b70f532ba4 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parente429bdebbdbfaad7b86caa0fa394e12e2dea22f5 (diff)
parentdc7d9ec35c7c729baac22830016f0b1ef862100f (diff)
downloadrust-e975563e00aa93b06c5674bbaf6894593714d8b0.tar.gz
rust-e975563e00aa93b06c5674bbaf6894593714d8b0.zip
Validate paths in `disallowed_*` configurations (#14397)
This PR resolves #11432 by checking that paths resolve in `disallowed_*`
configurations.

It also does some lightweight validation of definition kinds. For
example, only paths that resolve to `DefKind::Macro` definitions are
allowed in `disallowed_macro` configurations.

~The PR is currently two commits. The first is #14376 (cc: @Jarcho),
which I submitted just a few days ago. The second commit is everything
else.~

Side note: For me, the most difficult part of this PR was getting the
spans of the individual `DisallowedPath` configurations. There is some
discussion at https://github.com/toml-rs/toml/discussions/840, if
interested.

changelog:  validate paths in `disallowed_*` configurations
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions