Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
S
strs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jeff Smits
strs
Commits
cf9368c6
Commit
cf9368c6
authored
Jul 06, 2017
by
Jeff Smits
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Fixed bug in debug_assert"
This reverts commit
7e95206c
.
parent
7e95206c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
src/context.rs
src/context.rs
+13
-13
No files found.
src/context.rs
View file @
cf9368c6
...
...
@@ -100,14 +100,18 @@ impl<'d, 'f: 'd> MutContext<'d, 'f> {
"_apply_overlay: Interpreter bug, overlay is leaking a strategy definition"
);
for
(
name
,
value
)
in
scope
.term
{
let
value
=
value
.expect
(
"_apply_overlay: Interpreter bug, unintialised variable in overlay"
);
let
result
=
self
.match_term
(
&
name
,
&
value
);
debug_assert!
(
result
.is_ok
(),
"_apply_overlay: Interpreter bug, overlay has names that were bound underneath"
);
if
let
Some
(
value
)
=
value
{
let
result
=
self
.match_term
(
&
name
,
&
value
);
debug_assert!
(
result
.is_ok
(),
"_apply_overlay: Interpreter bug, overlay has names that were bound underneath"
);
}
else
{
unreachable!
(
"_apply_overlay: Interpreter bug, who put an uninitialised variable in
\
my overlay? >:("
)
}
}
}
...
...
@@ -117,11 +121,7 @@ impl<'d, 'f: 'd> MutContext<'d, 'f> {
"apply_overlay: Interpreter bug, unexpected end of stack"
,
);
debug_assert!
(
match
scope
.kind
{
ScopeKind
::
Normal
=>
false
,
ScopeKind
::
Overlay
=>
true
,
ScopeKind
::
InvalidatedOverlay
(
_
)
=>
true
,
},
scope
.kind
==
ScopeKind
::
Overlay
,
"apply_overlay: Interpreter bug, unexpected non-overlay scope"
);
self
._apply_overlay
(
scope
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment