File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
compiler/rustc_passes/src Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1862,11 +1862,11 @@ impl CheckAttrVisitor<'_> {
18621862
18631863 match std:: fs:: File :: open ( & file) {
18641864 Ok ( _) => true ,
1865- Err ( err ) => {
1865+ Err ( error ) => {
18661866 self . tcx . sess . emit_err ( DebugVisualizerUnreadable {
18671867 span : meta_item. span ,
18681868 file : & file,
1869- error : err ,
1869+ error,
18701870 } ) ;
18711871 false
18721872 }
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ impl<'tcx> LanguageItemCollector<'tcx> {
3535
3636 fn check_for_lang ( & mut self , actual_target : Target , hir_id : HirId ) {
3737 let attrs = self . tcx . hir ( ) . attrs ( hir_id) ;
38- if let Some ( ( value , span) ) = extract ( & attrs) {
39- match ITEM_REFS . get ( & value ) . cloned ( ) {
38+ if let Some ( ( name , span) ) = extract ( & attrs) {
39+ match ITEM_REFS . get ( & name ) . cloned ( ) {
4040 // Known lang item with attribute on correct target.
4141 Some ( ( item_index, expected_target) ) if actual_target == expected_target => {
4242 self . collect_item_extended ( item_index, hir_id, span) ;
@@ -45,14 +45,14 @@ impl<'tcx> LanguageItemCollector<'tcx> {
4545 Some ( ( _, expected_target) ) => {
4646 self . tcx . sess . emit_err ( LangItemOnIncorrectTarget {
4747 span,
48- name : value ,
48+ name,
4949 expected_target,
5050 actual_target,
5151 } ) ;
5252 }
5353 // Unknown lang item.
5454 _ => {
55- self . tcx . sess . emit_err ( UnknownLangItem { span, name : value } ) ;
55+ self . tcx . sess . emit_err ( UnknownLangItem { span, name } ) ;
5656 }
5757 }
5858 }
You can’t perform that action at this time.
0 commit comments