Auto merge of #10669 - oli-obk:@, r=Alexendoo
Update to a compiletest-rs version that requires `//@` for commands Requires https://github.com/Manishearth/compiletest-rs/pull/261 to get published This PR is a smaller step towards https://github.com/rust-lang/rust-clippy/pull/10426 changelog: Move to a version of compiletest-rs that allows us to require `//`@`` for test suite commands.
This commit is contained in:
commit
06dace2920
724 changed files with 945 additions and 1009 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![allow(unused)]
|
||||
#![warn(clippy::allow_attributes)]
|
||||
#![feature(lint_reasons)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![allow(unused)]
|
||||
#![warn(clippy::allow_attributes)]
|
||||
#![feature(lint_reasons)]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// run-rustfix
|
||||
// edition:2018
|
||||
// aux-build:proc_macros.rs
|
||||
//@run-rustfix
|
||||
//@edition:2018
|
||||
//@aux-build:proc_macros.rs
|
||||
|
||||
#![feature(exclusive_range_pattern)]
|
||||
#![feature(stmt_expr_attributes)]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// run-rustfix
|
||||
// edition:2018
|
||||
// aux-build:proc_macros.rs
|
||||
//@run-rustfix
|
||||
//@edition:2018
|
||||
//@aux-build:proc_macros.rs
|
||||
|
||||
#![feature(exclusive_range_pattern)]
|
||||
#![feature(stmt_expr_attributes)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// aux-build:proc_macro_derive.rs
|
||||
//@aux-build:proc_macro_derive.rs
|
||||
|
||||
#![allow(
|
||||
clippy::assign_op_pattern,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// aux-build:proc_macros.rs
|
||||
//@aux-build:proc_macros.rs
|
||||
|
||||
#![warn(clippy::as_conversions)]
|
||||
#![allow(clippy::borrow_as_ptr)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![warn(clippy::as_underscore)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![warn(clippy::as_underscore)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// only-x86_64
|
||||
// ignore-aarch64
|
||||
//@only-x86_64
|
||||
//@ignore-aarch64
|
||||
|
||||
#[warn(clippy::inline_asm_x86_intel_syntax)]
|
||||
mod warn_intel {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![warn(clippy::assertions_on_result_states)]
|
||||
|
||||
use std::result::Result;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![warn(clippy::assertions_on_result_states)]
|
||||
|
||||
use std::result::Result;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
use core::num::Wrapping;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
use core::num::Wrapping;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![feature(lint_reasons)]
|
||||
#![feature(async_closure)]
|
||||
#![warn(clippy::async_yields_async)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![feature(lint_reasons)]
|
||||
#![feature(async_closure)]
|
||||
#![warn(clippy::async_yields_async)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// edition:2018
|
||||
//@edition:2018
|
||||
|
||||
#![allow(redundant_semicolons, clippy::no_effect)]
|
||||
#![feature(stmt_expr_attributes)]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// compile-flags: --emit=link
|
||||
// no-prefer-dynamic
|
||||
//@compile-flags: --emit=link
|
||||
//@no-prefer-dynamic
|
||||
|
||||
#![crate_type = "proc-macro"]
|
||||
#![feature(repr128, proc_macro_hygiene, proc_macro_quote, box_patterns)]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// compile-flags: --emit=link
|
||||
// no-prefer-dynamic
|
||||
//@compile-flags: --emit=link
|
||||
//@no-prefer-dynamic
|
||||
|
||||
#![crate_type = "proc-macro"]
|
||||
#![feature(repr128, proc_macro_quote)]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// compile-flags: --emit=link
|
||||
// no-prefer-dynamic
|
||||
//@compile-flags: --emit=link
|
||||
//@no-prefer-dynamic
|
||||
|
||||
#![crate_type = "proc-macro"]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// compile-flags: --emit=link
|
||||
// no-prefer-dynamic
|
||||
//@compile-flags: --emit=link
|
||||
//@no-prefer-dynamic
|
||||
|
||||
#![crate_type = "proc-macro"]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// compile-flags: --emit=link
|
||||
// no-prefer-dynamic
|
||||
//@compile-flags: --emit=link
|
||||
//@no-prefer-dynamic
|
||||
|
||||
#![crate_type = "proc-macro"]
|
||||
#![feature(let_chains)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![deny(clippy::bind_instead_of_map)]
|
||||
#![allow(clippy::uninlined_format_args)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![deny(clippy::bind_instead_of_map)]
|
||||
#![allow(clippy::uninlined_format_args)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![deny(clippy::bind_instead_of_map)]
|
||||
#![allow(clippy::blocks_in_if_conditions)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![deny(clippy::bind_instead_of_map)]
|
||||
#![allow(clippy::blocks_in_if_conditions)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// compile-flags: -W clippy::restriction
|
||||
//@compile-flags: -W clippy::restriction
|
||||
|
||||
#![warn(clippy::blanket_clippy_restriction_lints)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![warn(clippy::blocks_in_if_conditions)]
|
||||
#![allow(unused, clippy::let_and_return)]
|
||||
#![warn(clippy::nonminimal_bool)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![warn(clippy::blocks_in_if_conditions)]
|
||||
#![allow(unused, clippy::let_and_return)]
|
||||
#![warn(clippy::nonminimal_bool)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![allow(unused, clippy::assertions_on_constants)]
|
||||
#![warn(clippy::bool_assert_comparison)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![allow(unused, clippy::assertions_on_constants)]
|
||||
#![warn(clippy::bool_assert_comparison)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![warn(clippy::bool_comparison)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![warn(clippy::bool_comparison)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![feature(let_chains)]
|
||||
#![warn(clippy::bool_to_int_with_if)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![feature(let_chains)]
|
||||
#![warn(clippy::bool_to_int_with_if)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![warn(clippy::borrow_as_ptr)]
|
||||
|
||||
fn main() {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![warn(clippy::borrow_as_ptr)]
|
||||
|
||||
fn main() {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![warn(clippy::borrow_as_ptr)]
|
||||
#![feature(lang_items, start, libc)]
|
||||
#![no_std]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![warn(clippy::borrow_as_ptr)]
|
||||
#![feature(lang_items, start, libc)]
|
||||
#![no_std]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![allow(dead_code, unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![allow(dead_code, unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// aux-build:helper.rs
|
||||
//@aux-build:helper.rs
|
||||
|
||||
#![warn(clippy::borrow_interior_mutable_const)]
|
||||
#![allow(clippy::declare_interior_mutable_const)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![warn(clippy::box_default)]
|
||||
|
||||
#[derive(Default)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![warn(clippy::box_default)]
|
||||
|
||||
#[derive(Default)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![warn(clippy::bytes_count_to_len)]
|
||||
use std::fs::File;
|
||||
use std::io::Read;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![warn(clippy::bytes_count_to_len)]
|
||||
use std::fs::File;
|
||||
use std::io::Read;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![allow(clippy::unnecessary_operation)]
|
||||
#![warn(clippy::bytes_nth)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![allow(clippy::unnecessary_operation)]
|
||||
#![warn(clippy::bytes_nth)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![warn(clippy::case_sensitive_file_extension_comparisons)]
|
||||
|
||||
use std::string::String;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![warn(clippy::case_sensitive_file_extension_comparisons)]
|
||||
|
||||
use std::string::String;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![warn(clippy::cast_abs_to_unsigned)]
|
||||
#![allow(clippy::uninlined_format_args, unused)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![warn(clippy::cast_abs_to_unsigned)]
|
||||
#![allow(clippy::uninlined_format_args, unused)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![allow(dead_code)]
|
||||
#![warn(clippy::cast_lossless)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![allow(dead_code)]
|
||||
#![warn(clippy::cast_lossless)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![allow(clippy::no_effect, clippy::unnecessary_operation, dead_code)]
|
||||
#![warn(clippy::cast_lossless)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![allow(clippy::no_effect, clippy::unnecessary_operation, dead_code)]
|
||||
#![warn(clippy::cast_lossless)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![allow(clippy::no_effect, clippy::unnecessary_operation, dead_code)]
|
||||
#![warn(clippy::cast_lossless)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![allow(clippy::no_effect, clippy::unnecessary_operation, dead_code)]
|
||||
#![warn(clippy::cast_lossless)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![warn(clippy::cast_slice_from_raw_parts)]
|
||||
|
||||
#[allow(unused_imports, unused_unsafe)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![warn(clippy::cast_slice_from_raw_parts)]
|
||||
|
||||
#[allow(unused_imports, unused_unsafe)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// ignore-32bit
|
||||
//@ignore-32bit
|
||||
#[warn(
|
||||
clippy::cast_precision_loss,
|
||||
clippy::cast_possible_truncation,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// ignore-64bit
|
||||
//@ignore-64bit
|
||||
#[warn(
|
||||
clippy::cast_precision_loss,
|
||||
clippy::cast_possible_truncation,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,12 @@ error: casting `isize` to `i8` may truncate the value
|
|||
LL | 1isize as i8;
|
||||
| ^^^^^^^^^^^^
|
||||
|
|
||||
= help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ...
|
||||
= note: `-D clippy::cast-possible-truncation` implied by `-D warnings`
|
||||
help: ... or use `try_from` and handle the error accordingly
|
||||
|
|
||||
LL | i8::try_from(1isize);
|
||||
| ~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
error: casting `isize` to `f64` causes a loss of precision on targets with 64-bit wide pointers (`isize` is 64 bits wide, but `f64`'s mantissa is only 52 bits wide)
|
||||
--> $DIR/cast_size_32bit.rs:15:5
|
||||
|
|
@ -37,24 +42,48 @@ error: casting `isize` to `i32` may truncate the value on targets with 64-bit wi
|
|||
|
|
||||
LL | 1isize as i32;
|
||||
| ^^^^^^^^^^^^^
|
||||
|
|
||||
= help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ...
|
||||
help: ... or use `try_from` and handle the error accordingly
|
||||
|
|
||||
LL | i32::try_from(1isize);
|
||||
| ~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
error: casting `isize` to `u32` may truncate the value on targets with 64-bit wide pointers
|
||||
--> $DIR/cast_size_32bit.rs:20:5
|
||||
|
|
||||
LL | 1isize as u32;
|
||||
| ^^^^^^^^^^^^^
|
||||
|
|
||||
= help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ...
|
||||
help: ... or use `try_from` and handle the error accordingly
|
||||
|
|
||||
LL | u32::try_from(1isize);
|
||||
| ~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
error: casting `usize` to `u32` may truncate the value on targets with 64-bit wide pointers
|
||||
--> $DIR/cast_size_32bit.rs:21:5
|
||||
|
|
||||
LL | 1usize as u32;
|
||||
| ^^^^^^^^^^^^^
|
||||
|
|
||||
= help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ...
|
||||
help: ... or use `try_from` and handle the error accordingly
|
||||
|
|
||||
LL | u32::try_from(1usize);
|
||||
| ~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
error: casting `usize` to `i32` may truncate the value on targets with 64-bit wide pointers
|
||||
--> $DIR/cast_size_32bit.rs:22:5
|
||||
|
|
||||
LL | 1usize as i32;
|
||||
| ^^^^^^^^^^^^^
|
||||
|
|
||||
= help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ...
|
||||
help: ... or use `try_from` and handle the error accordingly
|
||||
|
|
||||
LL | i32::try_from(1usize);
|
||||
| ~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
error: casting `usize` to `i32` may wrap around the value on targets with 32-bit wide pointers
|
||||
--> $DIR/cast_size_32bit.rs:22:5
|
||||
|
|
@ -69,18 +98,36 @@ error: casting `i64` to `isize` may truncate the value on targets with 32-bit wi
|
|||
|
|
||||
LL | 1i64 as isize;
|
||||
| ^^^^^^^^^^^^^
|
||||
|
|
||||
= help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ...
|
||||
help: ... or use `try_from` and handle the error accordingly
|
||||
|
|
||||
LL | isize::try_from(1i64);
|
||||
| ~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
error: casting `i64` to `usize` may truncate the value on targets with 32-bit wide pointers
|
||||
--> $DIR/cast_size_32bit.rs:25:5
|
||||
|
|
||||
LL | 1i64 as usize;
|
||||
| ^^^^^^^^^^^^^
|
||||
|
|
||||
= help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ...
|
||||
help: ... or use `try_from` and handle the error accordingly
|
||||
|
|
||||
LL | usize::try_from(1i64);
|
||||
| ~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
error: casting `u64` to `isize` may truncate the value on targets with 32-bit wide pointers
|
||||
--> $DIR/cast_size_32bit.rs:26:5
|
||||
|
|
||||
LL | 1u64 as isize;
|
||||
| ^^^^^^^^^^^^^
|
||||
|
|
||||
= help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ...
|
||||
help: ... or use `try_from` and handle the error accordingly
|
||||
|
|
||||
LL | isize::try_from(1u64);
|
||||
| ~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
error: casting `u64` to `isize` may wrap around the value on targets with 64-bit wide pointers
|
||||
--> $DIR/cast_size_32bit.rs:26:5
|
||||
|
|
@ -93,6 +140,12 @@ error: casting `u64` to `usize` may truncate the value on targets with 32-bit wi
|
|||
|
|
||||
LL | 1u64 as usize;
|
||||
| ^^^^^^^^^^^^^
|
||||
|
|
||||
= help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ...
|
||||
help: ... or use `try_from` and handle the error accordingly
|
||||
|
|
||||
LL | usize::try_from(1u64);
|
||||
| ~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
error: casting `u32` to `isize` may wrap around the value on targets with 32-bit wide pointers
|
||||
--> $DIR/cast_size_32bit.rs:28:5
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![feature(stmt_expr_attributes)]
|
||||
|
||||
#![allow(unused, clippy::no_effect, clippy::unnecessary_operation)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![feature(stmt_expr_attributes)]
|
||||
|
||||
#![allow(unused, clippy::no_effect, clippy::unnecessary_operation)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![warn(clippy::char_lit_as_u8)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![warn(clippy::char_lit_as_u8)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![allow(
|
||||
clippy::cast_lossless,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![allow(
|
||||
clippy::cast_lossless,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![allow(unused)]
|
||||
#![warn(clippy::clear_with_drain)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![allow(unused)]
|
||||
#![warn(clippy::clear_with_drain)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![allow(
|
||||
unused,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![allow(
|
||||
unused,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![warn(clippy::cloned_instead_of_copied)]
|
||||
#![allow(unused)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![warn(clippy::cloned_instead_of_copied)]
|
||||
#![allow(unused)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![allow(unused, clippy::redundant_clone, clippy::derive_partial_eq_without_eq)] // See #5700
|
||||
|
||||
// Define the types in each module to avoid trait impls leaking between modules.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![allow(unused, clippy::redundant_clone, clippy::derive_partial_eq_without_eq)] // See #5700
|
||||
|
||||
// Define the types in each module to avoid trait impls leaking between modules.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
use std::fmt::{self, Display};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
use std::fmt::{self, Display};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#[warn(clippy::cmp_owned)]
|
||||
#[allow(clippy::unnecessary_operation, clippy::no_effect, unused_must_use, clippy::eq_op)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#[warn(clippy::cmp_owned)]
|
||||
#[allow(clippy::unnecessary_operation, clippy::no_effect, unused_must_use, clippy::eq_op)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![allow(clippy::assertions_on_constants, clippy::equatable_if_let)]
|
||||
|
||||
#[rustfmt::skip]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![allow(clippy::assertions_on_constants, clippy::equatable_if_let)]
|
||||
|
||||
#[rustfmt::skip]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![allow(clippy::assertions_on_constants, clippy::equatable_if_let)]
|
||||
|
||||
#[rustfmt::skip]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![allow(clippy::assertions_on_constants, clippy::equatable_if_let)]
|
||||
|
||||
#[rustfmt::skip]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![allow(unused)]
|
||||
#![warn(clippy::collapsible_str_replace)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![allow(unused)]
|
||||
#![warn(clippy::collapsible_str_replace)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![warn(clippy::comparison_to_empty)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
|
||||
#![warn(clippy::comparison_to_empty)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// compile-flags: --emit=link
|
||||
// no-prefer-dynamic
|
||||
//@compile-flags: --emit=link
|
||||
//@no-prefer-dynamic
|
||||
// ^ compiletest by default builds all aux files as dylibs, but we don't want that for proc-macro
|
||||
// crates. If we don't set this, compiletest will override the `crate_type` attribute below and
|
||||
// compile this as dylib. Removing this then causes the test to fail because a `dylib` crate can't
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// aux-build:../../auxiliary/proc_macros.rs
|
||||
//@aux-build:../../auxiliary/proc_macros.rs
|
||||
|
||||
extern crate proc_macros;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// aux-build:proc_macro_crash.rs
|
||||
//@aux-build:proc_macro_crash.rs
|
||||
|
||||
#![warn(clippy::suspicious_else_formatting)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// check-pass
|
||||
//@check-pass
|
||||
|
||||
// Test for https://github.com/rust-lang/rust-clippy/issues/4968
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// aux-build:ice-7272-aux.rs
|
||||
//@aux-build:ice-7272-aux.rs
|
||||
|
||||
#![allow(clippy::no_effect)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// compile-flags: -Clink-arg=-nostartfiles
|
||||
// ignore-macos
|
||||
// ignore-windows
|
||||
//@compile-flags: -Clink-arg=-nostartfiles
|
||||
//@ignore-macos
|
||||
//@ignore-windows
|
||||
|
||||
#![feature(lang_items, start, libc)]
|
||||
#![no_std]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// aux-build: ice-8681-aux.rs
|
||||
//@aux-build: ice-8681-aux.rs
|
||||
|
||||
#![warn(clippy::undocumented_unsafe_blocks)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![warn(clippy::crate_in_macro_def)]
|
||||
|
||||
mod hygienic {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![warn(clippy::crate_in_macro_def)]
|
||||
|
||||
mod hygienic {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// ignore-macos
|
||||
//@ignore-macos
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// compile-flags: -Clink-arg=-nostartfiles
|
||||
// ignore-macos
|
||||
//@compile-flags: -Clink-arg=-nostartfiles
|
||||
//@ignore-macos
|
||||
|
||||
#![feature(lang_items, start, libc)]
|
||||
#![no_std]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// run-rustfix
|
||||
//@run-rustfix
|
||||
#![allow(unused_must_use)]
|
||||
#![warn(clippy::create_dir)]
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue