1
Fork 0

Ensure miri only uses fallback bodies that have manually been vetted to preserve all UB that the native intrinsic would have

This commit is contained in:
Oli Scherer 2024-04-23 13:32:30 +00:00
parent 351658ae66
commit 821d23b329
8 changed files with 44 additions and 2 deletions

View file

@ -141,7 +141,7 @@ pub(crate) fn registered_tools(tcx: TyCtxt<'_>, (): ()) -> RegisteredTools {
}
// We implicitly add `rustfmt`, `clippy`, `diagnostic` to known tools,
// but it's not an error to register them explicitly.
let predefined_tools = [sym::clippy, sym::rustfmt, sym::diagnostic];
let predefined_tools = [sym::clippy, sym::rustfmt, sym::diagnostic, sym::miri];
registered_tools.extend(predefined_tools.iter().cloned().map(Ident::with_dummy_span));
registered_tools
}