Clarify some methods around instance instantiation via comments and clearer names.
This commit is contained in:
parent
e0bbe7915e
commit
29951edbdf
3 changed files with 19 additions and 7 deletions
|
@ -246,7 +246,7 @@ pub fn from_fn_attrs(
|
|||
}
|
||||
|
||||
// FIXME(eddyb) consolidate these two `inline` calls (and avoid overwrites).
|
||||
if instance.def.is_inline(cx.tcx) {
|
||||
if instance.def.requires_inline(cx.tcx) {
|
||||
inline(cx, llfn, attributes::InlineAttr::Hint);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue