mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
Rollup merge of #58210 - nnethercote:find_outlives-debug_assert, r=matthewjasper
Make an assert debug-only in `find_constraint_paths_between_regions`. This reduces instruction counts for NLL builds of `wg-grammar` by over 20%. r? @nikomatsakis
This commit is contained in:
@@ -205,7 +205,7 @@ fn find_constraint_paths_between_regions(
|
||||
for constraint in self.constraint_graph
|
||||
.outgoing_edges(r, &self.constraints, fr_static)
|
||||
{
|
||||
assert_eq!(constraint.sup, r);
|
||||
debug_assert_eq!(constraint.sup, r);
|
||||
let sub_region = constraint.sub;
|
||||
if let Trace::NotVisited = context[sub_region] {
|
||||
context[sub_region] = Trace::FromOutlivesConstraint(constraint);
|
||||
|
||||
Reference in New Issue
Block a user