bfa1904765
use strip_prefix over starts_with and manual slicing based on pattern length (clippy::manual_strip)
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.