Skip to content

Commit 3923990

Browse files
committed
Fix clippy warnings
1 parent 290fb0f commit 3923990

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/back/lto.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ use crate::back::write::save_temp_bitcode;
4141
use crate::errors::{DynamicLinkingWithLTO, LtoBitcodeFromRlib, LtoDisallowed, LtoDylib};
4242
use crate::{GccCodegenBackend, GccContext, SyncContext, to_gcc_opt_level};
4343

44-
/// We keep track of the computed LTO cache keys from the previous
45-
/// session to determine which CGUs we can reuse.
44+
// We keep track of the computed LTO cache keys from the previous
45+
// session to determine which CGUs we can reuse.
4646
//pub const THIN_LTO_KEYS_INCR_COMP_FILE_NAME: &str = "thin-lto-past-keys.bin";
4747

4848
pub fn crate_type_allows_lto(crate_type: CrateType) -> bool {

src/intrinsic/simd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ pub fn generic_simd_intrinsic<'a, 'gcc, 'tcx>(
375375
// Make sure this is actually a SIMD vector.
376376
let idx_ty = args[2].layout.ty;
377377
let n: u64 = if idx_ty.is_simd()
378-
&& matches!(idx_ty.simd_size_and_type(bx.cx.tcx).1.kind(), ty::Uint(ty::UintTy::U32))
378+
&& matches!(*idx_ty.simd_size_and_type(bx.cx.tcx).1.kind(), ty::Uint(ty::UintTy::U32))
379379
{
380380
idx_ty.simd_size_and_type(bx.cx.tcx).0
381381
} else {

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
// Some "regular" crates we want to share with rustc
2828
extern crate object;
2929
extern crate smallvec;
30+
// FIXME: clippy bug: remove the #[allow] when it's fixed.
31+
#[allow(unused_extern_crates)]
3032
extern crate tempfile;
3133
#[macro_use]
3234
extern crate tracing;

0 commit comments

Comments
 (0)