File tree 2 files changed +7
-9
lines changed
compiler/rustc_codegen_llvm/src
2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ impl CounterMappingRegion {
375
375
376
376
// This function might be used in the future; the LLVM API is still evolving, as is coverage
377
377
// support.
378
- #[ allow ( dead_code) ]
378
+ #[ expect ( dead_code) ]
379
379
pub ( crate ) fn expansion_region (
380
380
file_id : u32 ,
381
381
expanded_file_id : u32 ,
@@ -400,7 +400,7 @@ impl CounterMappingRegion {
400
400
401
401
// This function might be used in the future; the LLVM API is still evolving, as is coverage
402
402
// support.
403
- #[ allow ( dead_code) ]
403
+ #[ expect ( dead_code) ]
404
404
pub ( crate ) fn skipped_region (
405
405
file_id : u32 ,
406
406
start_line : u32 ,
@@ -424,7 +424,7 @@ impl CounterMappingRegion {
424
424
425
425
// This function might be used in the future; the LLVM API is still evolving, as is coverage
426
426
// support.
427
- #[ allow ( dead_code) ]
427
+ #[ expect ( dead_code) ]
428
428
pub ( crate ) fn gap_region (
429
429
counter : Counter ,
430
430
file_id : u32 ,
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ pub const False: Bool = 0 as Bool;
22
22
23
23
#[ derive( Copy , Clone , PartialEq ) ]
24
24
#[ repr( C ) ]
25
- #[ allow( dead_code) ] // Variants constructed by C++.
26
25
pub enum LLVMRustResult {
27
26
Success ,
28
27
Failure ,
@@ -147,10 +146,10 @@ pub enum UnnamedAddr {
147
146
#[ derive( Copy , Clone ) ]
148
147
#[ repr( C ) ]
149
148
pub enum DLLStorageClass {
150
- #[ allow ( dead_code) ]
149
+ #[ expect ( dead_code) ]
151
150
Default = 0 ,
152
151
DllImport = 1 , // Function to be imported from DLL.
153
- #[ allow ( dead_code) ]
152
+ #[ expect ( dead_code) ]
154
153
DllExport = 2 , // Function to be accessible from DLL.
155
154
}
156
155
@@ -385,7 +384,7 @@ impl AtomicRmwBinOp {
385
384
#[ derive( Copy , Clone ) ]
386
385
#[ repr( C ) ]
387
386
pub enum AtomicOrdering {
388
- #[ allow ( dead_code) ]
387
+ #[ expect ( dead_code) ]
389
388
NotAtomic = 0 ,
390
389
Unordered = 1 ,
391
390
Monotonic = 2 ,
@@ -539,7 +538,7 @@ pub enum CodeModel {
539
538
/// LLVMRustDiagnosticKind
540
539
#[ derive( Copy , Clone ) ]
541
540
#[ repr( C ) ]
542
- #[ allow ( dead_code) ] // Variants constructed by C++.
541
+ #[ expect ( dead_code) ] // Variants constructed by C++.
543
542
pub enum DiagnosticKind {
544
543
Other ,
545
544
InlineAsm ,
@@ -562,7 +561,6 @@ pub enum DiagnosticKind {
562
561
/// LLVMRustDiagnosticLevel
563
562
#[ derive( Copy , Clone ) ]
564
563
#[ repr( C ) ]
565
- #[ allow( dead_code) ] // Variants constructed by C++.
566
564
pub enum DiagnosticLevel {
567
565
Error ,
568
566
Warning ,
You can’t perform that action at this time.
0 commit comments