]> git.lizzy.rs Git - rust.git/commit
Handle not finding range in Definition::search_scope
authorNick Spain <nicholas.spain@stileeducation.com>
Fri, 1 Jan 2021 04:33:06 +0000 (15:33 +1100)
committerNick Spain <nicholas.spain@stileeducation.com>
Sat, 2 Jan 2021 10:53:52 +0000 (21:53 +1100)
commit68b4efd53601fd67fbba4a2aa25ac94ecff58e5e
treeaa3056d3c8d2c1cfca3e54a8c00cb02b449eb3c4
parentc936e4b86fd5de8e9709cd01547a69054cdec91b
Handle not finding range in Definition::search_scope

The `LifetimeParam` and `Local` variants use `source()` to find their
range. Now that `source()` returns an `Option` we need to handle the
`None` case.
crates/ide_db/src/search.rs