summary refs log tree commit diff
path: root/src/librustc_codegen_llvm
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2020-01-20 15:54:40 +0100
committerMichael Woerister <michaelwoerister@posteo>2020-01-23 13:15:14 +0100
commit29951edbdfcb3e65e689e43c997a98d8aad5e273 (patch)
tree4916fea8bd867e45c1881a38beae58295329acf1 /src/librustc_codegen_llvm
parente0bbe7915e2b663ac84244918d6d06e0747ed33e (diff)
downloadrust-29951edbdfcb3e65e689e43c997a98d8aad5e273.tar.gz
rust-29951edbdfcb3e65e689e43c997a98d8aad5e273.zip
Clarify some methods around instance instantiation via comments and clearer names.
Diffstat (limited to 'src/librustc_codegen_llvm')
-rw-r--r--src/librustc_codegen_llvm/attributes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/attributes.rs b/src/librustc_codegen_llvm/attributes.rs
index 4ed4e8ac6ef..fc1b365cf90 100644
--- a/src/librustc_codegen_llvm/attributes.rs
+++ b/src/librustc_codegen_llvm/attributes.rs
@@ -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);
     }