about summary refs log tree commit diff
path: root/compiler/rustc_plugin_impl/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-21 19:00:14 +0100
committerGitHub <noreply@github.com>2023-03-21 19:00:14 +0100
commitfef1fc4349b500186e4708e0fd52bd78c3879b41 (patch)
tree46e45c9e1d6fa9784b0b4c3ab5f3b5ab396bee76 /compiler/rustc_plugin_impl/src/errors.rs
parent96f35ed7200db11d86fbc3057e10c9df5793766a (diff)
parenta00413f680d52b6e4ba1c1075e1310513a1d061c (diff)
downloadrust-fef1fc4349b500186e4708e0fd52bd78c3879b41.tar.gz
rust-fef1fc4349b500186e4708e0fd52bd78c3879b41.zip
Rollup merge of #109441 - oli-obk:fn_trait_new_solver, r=compiler-errors
Only implement Fn* traits for extern "Rust" safe function pointers and items

Since calling the function via an `Fn` trait will assume `extern "Rust"` ABI and not do any safety checks, only safe `extern "Rust"` function can implement the `Fn` traits. This syncs the logic between the old solver and the new solver.

r? `@compiler-errors`
Diffstat (limited to 'compiler/rustc_plugin_impl/src/errors.rs')
0 files changed, 0 insertions, 0 deletions