Skip to content

Commit

Permalink
Run format
Browse files Browse the repository at this point in the history
  • Loading branch information
chansuke committed Aug 12, 2024
1 parent 85510ef commit 256ac63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
10 changes: 0 additions & 10 deletions compiler/rustc_codegen_ssa/src/codegen_attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,16 +398,6 @@ fn codegen_fn_attrs(tcx: TyCtxt<'_>, did: LocalDefId) -> CodegenFnAttrs {
}
}
_ => None,
// _ => {
// struct_span_code_err!(
// tcx.dcx(),
// attr.span,
// E0779,
// "invalid instruction set specified",
// )
// .emit();
// None
// }
}
}
_ => None,
Expand Down
10 changes: 6 additions & 4 deletions compiler/rustc_passes/src/check_attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
//! conflicts between multiple such attributes attached to the same
//! item.

use std::cell::Cell;
use std::collections::hash_map::Entry;

use rustc_ast::token::TokenKind;
use rustc_ast::tokenstream::TokenTree;
use rustc_ast::{
ast, token::TokenKind, tokenstream::TokenTree, AttrKind, AttrStyle, Attribute, LitKind,
MetaItemKind, MetaItemLit, NestedMetaItem,
ast, AttrKind, AttrStyle, Attribute, LitKind, MetaItemKind, MetaItemLit, NestedMetaItem,
};
use rustc_data_structures::fx::FxHashMap;
use rustc_errors::{Applicability, DiagCtxtHandle, IntoDiagArg, MultiSpan, StashKey};
Expand Down Expand Up @@ -36,8 +40,6 @@ use rustc_target::spec::abi::Abi;
use rustc_trait_selection::error_reporting::InferCtxtErrorExt;
use rustc_trait_selection::infer::{TyCtxtInferExt, ValuePairs};
use rustc_trait_selection::traits::ObligationCtxt;
use std::cell::Cell;
use std::collections::hash_map::Entry;
use tracing::debug;

use crate::{errors, fluent_generated as fluent};
Expand Down

0 comments on commit 256ac63

Please sign in to comment.