File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,19 +127,19 @@ nothrow @safe pure:
127127 }
128128
129129 @property
130- bool empty () const
130+ bool empty () const scope
131131 {
132132 assert ((_first is null ) == (_last is null ), " DList.Range: Invalidated state" );
133133 return ! _first;
134134 }
135135
136- @property BaseNode* front()
136+ @property BaseNode* front() return scope
137137 {
138138 assert (! empty, " DList.Range.front: Range is empty" );
139139 return _first;
140140 }
141141
142- void popFront ()
142+ void popFront () scope
143143 {
144144 assert (! empty, " DList.Range.popFront: Range is empty" );
145145 if (_first is _last)
@@ -153,13 +153,13 @@ nothrow @safe pure:
153153 }
154154 }
155155
156- @property BaseNode* back()
156+ @property BaseNode* back() return scope
157157 {
158158 assert (! empty, " DList.Range.front: Range is empty" );
159159 return _last;
160160 }
161161
162- void popBack ()
162+ void popBack () scope
163163 {
164164 assert (! empty, " DList.Range.popBack: Range is empty" );
165165 if (_first is _last)
@@ -174,7 +174,7 @@ nothrow @safe pure:
174174 }
175175
176176 // / Forward range primitive.
177- @property DRange save() { return this ; }
177+ @property DRange save() return scope { return this ; }
178178}
179179
180180/**
You can’t perform that action at this time.
0 commit comments