11// RUN: %target-swift-frontend %s \
22// RUN: -emit-sil \
3- // RUN: -enable-builtin-module \
43// RUN: -enable-experimental-feature NonescapableTypes \
54// RUN: -disable-experimental-parser-round-trip \
6- // RUN: -enable-experimental-feature NoncopyableGenerics \
7- // RUN: -enable-experimental-lifetime-dependence-inference | %FileCheck %s
5+ // RUN: -enable-experimental-feature NoncopyableGenerics | %FileCheck %s
86// REQUIRES: asserts
97
108struct BufferView : ~ Escapable {
@@ -25,7 +23,7 @@ struct BufferView : ~Escapable {
2523 self . ptr = otherBV. ptr
2624 self . c = otherBV. c
2725 }
28- // CHECK: sil hidden @$s28implicit_lifetime_dependence10BufferViewVyACSWYls_SaySiGhtcfC : $@convention(method) (UnsafeRawBufferPointer, @guaranteed Array<Int>, @thin BufferView.Type) -> _scope(1 ) @owned BufferView {
26+ // CHECK: sil hidden @$s28implicit_lifetime_dependence10BufferViewVyACSW_SaySiGhYlstcfC : $@convention(method) (UnsafeRawBufferPointer, @guaranteed Array<Int>, @thin BufferView.Type) -> _scope(2 ) @owned BufferView {
2927 init ( _ ptr: UnsafeRawBufferPointer , _ a: borrowing Array < Int > ) {
3028 self . ptr = ptr
3129 self . c = a. count
@@ -126,7 +124,7 @@ struct GenericBufferView<Element> : ~Escapable {
126124 let baseAddress : Pointer
127125 let count : Int
128126
129- // CHECK: sil hidden @$s28implicit_lifetime_dependence17GenericBufferViewV11baseAddress5count9dependsOnACyxGSVYls_Siqd__htclufC : $@convention(method) <Element><Storage> (UnsafeRawPointer, Int, @in_guaranteed Storage, @thin GenericBufferView<Element>.Type) -> _scope(1 ) @owned GenericBufferView<Element> {
127+ // CHECK: sil hidden @$s28implicit_lifetime_dependence17GenericBufferViewV11baseAddress5count9dependsOnACyxGSV_Siqd__hYlstclufC : $@convention(method) <Element><Storage> (UnsafeRawPointer, Int, @in_guaranteed Storage, @thin GenericBufferView<Element>.Type) -> _scope(3 ) @owned GenericBufferView<Element> {
130128 init < Storage> ( baseAddress: Pointer ,
131129 count: Int ,
132130 dependsOn: borrowing Storage ) {
0 commit comments