mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 05:26:23 +03:00
Remove incorrect assert
This commit is contained in:
@@ -436,8 +436,8 @@ fn resolve<'path>(
|
||||
// Try looking for methods and associated items.
|
||||
let mut split = path_str.rsplitn(2, "::");
|
||||
// NB: `split`'s first element is always defined, even if the delimiter was not present.
|
||||
// NB: `item_str` could be empty when resolving in the root namespace (e.g. `::std`).
|
||||
let item_str = split.next().unwrap();
|
||||
assert!(!item_str.is_empty());
|
||||
let item_name = Symbol::intern(item_str);
|
||||
let path_root = split
|
||||
.next()
|
||||
|
||||
Reference in New Issue
Block a user