Skip to content

Commit

Permalink
Update crates/rustc_codegen_spirv/src/linker/inline.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Eduard-Mihai Burtescu <edy.burt@gmail.com>
  • Loading branch information
molikto and eddyb committed May 24, 2022
1 parent cdbf4de commit 68db589
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/rustc_codegen_spirv/src/linker/inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ pub fn inline(sess: &Session, module: &mut Module) -> super::Result<()> {
let names = get_names(module);
for f in inlined_dont_inlines {
sess.warn(&format!(
"function `{}` has `dont_inline` attribute, but need to be inlined because it has illegal argument or return types",
get_name(&names, f)
));
"`#[inline(never)]` function `{}` needs to be inlined \
because it has illegal argument or return types",
get_name(&names, f)
));
}
}

Expand Down

0 comments on commit 68db589

Please sign in to comment.