Skip to content

Commit 256ac63

Browse files
committed
Run format
1 parent 85510ef commit 256ac63

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

compiler/rustc_codegen_ssa/src/codegen_attrs.rs

-10
Original file line numberDiff line numberDiff line change
@@ -398,16 +398,6 @@ fn codegen_fn_attrs(tcx: TyCtxt<'_>, did: LocalDefId) -> CodegenFnAttrs {
398398
}
399399
}
400400
_ => None,
401-
// _ => {
402-
// struct_span_code_err!(
403-
// tcx.dcx(),
404-
// attr.span,
405-
// E0779,
406-
// "invalid instruction set specified",
407-
// )
408-
// .emit();
409-
// None
410-
// }
411401
}
412402
}
413403
_ => None,

compiler/rustc_passes/src/check_attr.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44
//! conflicts between multiple such attributes attached to the same
55
//! item.
66
7+
use std::cell::Cell;
8+
use std::collections::hash_map::Entry;
9+
10+
use rustc_ast::token::TokenKind;
11+
use rustc_ast::tokenstream::TokenTree;
712
use rustc_ast::{
8-
ast, token::TokenKind, tokenstream::TokenTree, AttrKind, AttrStyle, Attribute, LitKind,
9-
MetaItemKind, MetaItemLit, NestedMetaItem,
13+
ast, AttrKind, AttrStyle, Attribute, LitKind, MetaItemKind, MetaItemLit, NestedMetaItem,
1014
};
1115
use rustc_data_structures::fx::FxHashMap;
1216
use rustc_errors::{Applicability, DiagCtxtHandle, IntoDiagArg, MultiSpan, StashKey};
@@ -36,8 +40,6 @@ use rustc_target::spec::abi::Abi;
3640
use rustc_trait_selection::error_reporting::InferCtxtErrorExt;
3741
use rustc_trait_selection::infer::{TyCtxtInferExt, ValuePairs};
3842
use rustc_trait_selection::traits::ObligationCtxt;
39-
use std::cell::Cell;
40-
use std::collections::hash_map::Entry;
4143
use tracing::debug;
4244

4345
use crate::{errors, fluent_generated as fluent};

0 commit comments

Comments
 (0)