@@ -680,7 +680,7 @@ impl<'a, 'cl> Resolver<'a, 'cl> {
680680 let binding = ( Def :: NonMacroAttr ( NonMacroAttrKind :: Builtin ) ,
681681 ty:: Visibility :: Public , ident. span , Mark :: root ( ) )
682682 . to_name_binding ( self . arenas ) ;
683- Ok ( ( binding, Flags :: PRELUDE , Flags :: empty ( ) ) )
683+ Ok ( ( binding, Flags :: PRELUDE , Flags :: all ( ) ) )
684684 } else {
685685 Err ( Determinacy :: Determined )
686686 }
@@ -911,18 +911,9 @@ impl<'a, 'cl> Resolver<'a, 'cl> {
911911
912912 let builtin_attrs = mem:: replace ( & mut * module. builtin_attrs . borrow_mut ( ) , Vec :: new ( ) ) ;
913913 for ( ident, parent_scope) in builtin_attrs {
914- let binding = self . early_resolve_ident_in_lexical_scope (
914+ let _ = self . early_resolve_ident_in_lexical_scope (
915915 ident, MacroNS , Some ( MacroKind :: Attr ) , false , & parent_scope, true , true , ident. span
916916 ) ;
917- if let Ok ( binding) = binding {
918- if binding. def_ignoring_ambiguity ( ) !=
919- Def :: NonMacroAttr ( NonMacroAttrKind :: Builtin ) {
920- let builtin_binding = ( Def :: NonMacroAttr ( NonMacroAttrKind :: Builtin ) ,
921- ty:: Visibility :: Public , ident. span , Mark :: root ( ) )
922- . to_name_binding ( self . arenas ) ;
923- self . report_ambiguity_error ( ident, binding, builtin_binding) ;
924- }
925- }
926917 }
927918 }
928919
0 commit comments