Skip to content

Commit 5c27e88

Browse files
committed
lint ImproperCTypes: make clippy happy [...]
about the changes in rust_codegen_llvm
1 parent f71cfba commit 5c27e88

File tree

1 file changed

+6
-3
lines changed
  • compiler/rustc_codegen_llvm/src/llvm

1 file changed

+6
-3
lines changed

compiler/rustc_codegen_llvm/src/llvm/ffi.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,8 @@ unsafe extern "C" {
13061306
);
13071307

13081308
// Instruction builders
1309-
|wrap pub(crate) fn LLVMCreateBuilderInContext(C: &Context) -> &mut Builder<'_>;
1309+
|wrap #[allow(clippy::mut_from_ref)] // FIXME?
1310+
pub(crate) fn LLVMCreateBuilderInContext(C: &Context) -> &mut Builder<'_>;
13101311
pub(crate) fn LLVMPositionBuilderAtEnd<'a>(Builder: &Builder<'a>, Block: &'a BasicBlock);
13111312
|wrap pub(crate) fn LLVMGetInsertBlock<'a>(Builder_: &Builder<'a>) -> &'a BasicBlock;
13121313
pub(crate) fn LLVMDisposeBuilder<'a>(Builder: &'a mut Builder<'a>);
@@ -2566,7 +2567,8 @@ unsafe extern "C" {
25662567
pub(crate) fn LLVMRustRunRestrictionPass(M: &Module, syms: *const *const c_char, len: size_t);
25672568

25682569
pub(crate) fn LLVMRustOpenArchive(path: *const c_char) -> Option<&'static mut Archive>;
2569-
|wrap pub(crate) fn LLVMRustArchiveIteratorNew(AR: &Archive) -> &mut ArchiveIterator<'_>;
2570+
|wrap #[allow(clippy::mut_from_ref)] // FIXME?
2571+
pub(crate) fn LLVMRustArchiveIteratorNew(AR: &Archive) -> &mut ArchiveIterator<'_>;
25702572
pub(crate) fn LLVMRustArchiveIteratorNext<'a>(
25712573
AIR: &ArchiveIterator<'a>,
25722574
) -> Option<&'a mut ArchiveChild<'a>>;
@@ -2687,7 +2689,8 @@ unsafe extern "C" {
26872689
out_len: &mut usize,
26882690
) -> *const u8;
26892691

2690-
|wrap pub(crate) fn LLVMRustLinkerNew(M: &Module) -> &mut Linker<'_>;
2692+
|wrap #[allow(clippy::mut_from_ref)] // FIXME?
2693+
pub(crate) fn LLVMRustLinkerNew(M: &Module) -> &mut Linker<'_>;
26912694
pub(crate) fn LLVMRustLinkerAdd(
26922695
linker: &Linker<'_>,
26932696
bytecode: *const c_char,

0 commit comments

Comments
 (0)