Automatically enable cross-crate inlining for small functions
This commit is contained in:
parent
09df6108c8
commit
33b0e4be06
67 changed files with 434 additions and 344 deletions
|
@ -2202,6 +2202,11 @@ rustc_queries! {
|
|||
query generics_require_sized_self(def_id: DefId) -> bool {
|
||||
desc { "check whether the item has a `where Self: Sized` bound" }
|
||||
}
|
||||
|
||||
query cross_crate_inlinable(def_id: DefId) -> bool {
|
||||
desc { "whether the item should be made inlinable across crates" }
|
||||
separate_provide_extern
|
||||
}
|
||||
}
|
||||
|
||||
rustc_query_append! { define_callbacks! }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue