Just opened my first PR to Servo A small bug fix — added an empty path guard in match_def_path to prevent a potential panic. Tiny fix, but it's on the record. 1 down, many more to come. github.com/servo/servo/pull/44504 @servo.org @rust-lang.org #rustlang #opensource
github.comCheck for empty path in match_def_path by raptor4mc · Pull Request #44504 · servo/servoAdd a check for empty path in match_def_path function.
Previously, match_def_path in support/crown/src/common.rs
would panic if called with an empty path slice due to an
unchecked access of path[0]...
0 reposts5 likes