1
Fork 0

Querify clashing_extern_declarations lint.

This commit is contained in:
Camille GILLOT 2023-07-15 08:38:50 +00:00
parent ec5b882c2f
commit 817f45f7bf
6 changed files with 448 additions and 410 deletions

View file

@ -1596,6 +1596,11 @@ rustc_queries! {
separate_provide_extern
}
/// Lint against `extern fn` declarations having incompatible types.
query clashing_extern_declarations(_: ()) {
desc { "checking `extern fn` declarations are compatible" }
}
/// Identifies the entry-point (e.g., the `main` function) for a given
/// crate, returning `None` if there is no entry point (such as for library crates).
query entry_fn(_: ()) -> Option<(DefId, EntryFnType)> {