@@ -398,22 +398,12 @@ NOTE(generic_parameter_inferred_from_result_context,none,
398398ERROR(cannot_pass_type_to_non_ephemeral,none,
399399 " cannot pass %0 to parameter; argument %1 must be a pointer that "
400400 " outlives the call%select{| to %3}2" , (Type, StringRef, bool , DeclName))
401- WARNING(cannot_pass_type_to_non_ephemeral_warning,none,
402- " passing %0 to parameter, but argument %1 should be a pointer that "
403- " outlives the call%select{| to %3}2" , (Type, StringRef, bool , DeclName))
404401ERROR(cannot_use_inout_non_ephemeral,none,
405402 " cannot use inout expression here; argument %0 must be a pointer that "
406403 " outlives the call%select{| to %2}1" , (StringRef, bool , DeclName))
407- WARNING(cannot_use_inout_non_ephemeral_warning,none,
408- " inout expression creates a temporary pointer, but argument %0 should "
409- " be a pointer that outlives the call%select{| to %2}1" ,
410- (StringRef, bool , DeclName))
411404ERROR(cannot_construct_dangling_pointer,none,
412405 " initialization of %0 results in a dangling %select{|buffer }1pointer" ,
413406 (Type, unsigned ))
414- WARNING(cannot_construct_dangling_pointer_warning,none,
415- " initialization of %0 results in a dangling %select{|buffer }1pointer" ,
416- (Type, unsigned ))
417407NOTE(ephemeral_pointer_argument_conversion_note,none,
418408 " implicit argument conversion from %0 to %1 produces a pointer valid only "
419409 " for the duration of the call%select{| to %3}2" ,
@@ -1881,9 +1871,6 @@ WARNING(spi_attribute_on_import_of_public_module,none,
18811871 (DeclName, StringRef))
18821872
18831873// Opaque return types
1884- ERROR(structural_opaque_types_are_experimental,none,
1885- " 'opaque' types cannot be nested inside other types; "
1886- " structural 'opaque' types are an experimental feature" , ())
18871874ERROR(opaque_type_invalid_constraint,none,
18881875 " an 'opaque' type must specify only 'Any', 'AnyObject', protocols, "
18891876 " and/or a base class" , ())
@@ -4878,6 +4865,10 @@ ERROR(opaque_type_unsupported_pattern,none,
48784865ERROR(opaque_type_in_protocol_requirement,none,
48794866 " 'some' type cannot be the return type of a protocol requirement; did you mean to add an associated type?" ,
48804867 ())
4868+ ERROR(opaque_type_in_parameter,none,
4869+ " 'some' cannot appear in parameter position in result "
4870+ " type %0" ,
4871+ (Type))
48814872
48824873// Function differentiability
48834874ERROR(attr_only_on_parameters_of_differentiable,none,
0 commit comments