@@ -41,7 +41,7 @@ use syntax::ast::{TyF64, TyFloat, TyI, TyI8, TyI16, TyI32, TyI64, TyInt};
41
41
use syntax:: ast:: { TyParam , TyParamBound , TyPath , TyPtr , TyProc , TyQPath } ;
42
42
use syntax:: ast:: { TyRptr , TyStr , TyU , TyU8 , TyU16 , TyU32 , TyU64 , TyUint } ;
43
43
use syntax:: ast:: { TypeImplItem , UnboxedFnTyParamBound , UnnamedField } ;
44
- use syntax:: ast:: { UnsafeFn , Variant , ViewItem , ViewItemExternCrate } ;
44
+ use syntax:: ast:: { Variant , ViewItem , ViewItemExternCrate } ;
45
45
use syntax:: ast:: { ViewItemUse , ViewPathGlob , ViewPathList , ViewPathSimple } ;
46
46
use syntax:: ast:: { Visibility } ;
47
47
use syntax:: ast;
@@ -1250,11 +1250,11 @@ impl<'a> Resolver<'a> {
1250
1250
sp, is_public) ;
1251
1251
parent
1252
1252
}
1253
- ItemFn ( _, fn_style , _, _, _) => {
1253
+ ItemFn ( _, _ , _, _, _) => {
1254
1254
let name_bindings =
1255
1255
self . add_child ( name, parent. clone ( ) , ForbidDuplicateValues , sp) ;
1256
1256
1257
- let def = DefFn ( local_def ( item. id ) , fn_style , false ) ;
1257
+ let def = DefFn ( local_def ( item. id ) , false ) ;
1258
1258
name_bindings. define_value ( def, sp, is_public) ;
1259
1259
parent
1260
1260
}
@@ -1392,8 +1392,7 @@ impl<'a> Resolver<'a> {
1392
1392
// Static methods become
1393
1393
// `DefStaticMethod`s.
1394
1394
DefStaticMethod ( local_def ( method. id ) ,
1395
- FromImpl ( local_def ( item. id ) ) ,
1396
- method. pe_fn_style ( ) )
1395
+ FromImpl ( local_def ( item. id ) ) )
1397
1396
}
1398
1397
_ => {
1399
1398
// Non-static methods become
@@ -1483,8 +1482,7 @@ impl<'a> Resolver<'a> {
1483
1482
// Static methods become `DefStaticMethod`s.
1484
1483
( DefStaticMethod (
1485
1484
local_def ( ty_m. id ) ,
1486
- FromTrait ( local_def ( item. id ) ) ,
1487
- ty_m. fn_style ) ,
1485
+ FromTrait ( local_def ( item. id ) ) ) ,
1488
1486
StaticMethodTraitItemKind )
1489
1487
}
1490
1488
_ => {
@@ -1711,7 +1709,7 @@ impl<'a> Resolver<'a> {
1711
1709
1712
1710
match foreign_item. node {
1713
1711
ForeignItemFn ( _, ref generics) => {
1714
- let def = DefFn ( local_def ( foreign_item. id ) , UnsafeFn , false ) ;
1712
+ let def = DefFn ( local_def ( foreign_item. id ) , false ) ;
1715
1713
name_bindings. define_value ( def, foreign_item. span , is_public) ;
1716
1714
1717
1715
self . with_type_parameter_rib (
@@ -1832,7 +1830,7 @@ impl<'a> Resolver<'a> {
1832
1830
child_name_bindings. define_value ( def, DUMMY_SP , is_exported) ;
1833
1831
}
1834
1832
}
1835
- DefFn ( ctor_id, _ , true ) => {
1833
+ DefFn ( ctor_id, true ) => {
1836
1834
child_name_bindings. define_value (
1837
1835
csearch:: get_tuple_struct_definition_if_ctor ( & self . session . cstore , ctor_id)
1838
1836
. map_or ( def, |_| DefStruct ( ctor_id) ) , DUMMY_SP , is_public) ;
@@ -2025,7 +2023,6 @@ impl<'a> Resolver<'a> {
2025
2023
DUMMY_SP ) ;
2026
2024
let def = DefFn (
2027
2025
static_method_info. def_id ,
2028
- static_method_info. fn_style ,
2029
2026
false ) ;
2030
2027
2031
2028
method_name_bindings. define_value (
@@ -5641,7 +5638,7 @@ impl<'a> Resolver<'a> {
5641
5638
Some ( binding) => {
5642
5639
let p_str = self . path_names_to_string ( & path) ;
5643
5640
match binding. def_for_namespace ( ValueNS ) {
5644
- Some ( DefStaticMethod ( _, provenance, _ ) ) => {
5641
+ Some ( DefStaticMethod ( _, provenance) ) => {
5645
5642
match provenance {
5646
5643
FromImpl ( _) => return StaticMethod ( p_str) ,
5647
5644
FromTrait ( _) => unreachable ! ( )
0 commit comments