Deprecate MaybeOwned[Vector] in favor of Cow
This commit is contained in:
parent
48ca6d1840
commit
3293ab14e2
21 changed files with 323 additions and 169 deletions
|
@ -4966,10 +4966,10 @@ impl<'a> Parser<'a> {
|
|||
let mut err = String::from_str("circular modules: ");
|
||||
let len = included_mod_stack.len();
|
||||
for p in included_mod_stack.slice(i, len).iter() {
|
||||
err.push_str(p.display().as_maybe_owned().as_slice());
|
||||
err.push_str(p.display().as_cow().as_slice());
|
||||
err.push_str(" -> ");
|
||||
}
|
||||
err.push_str(path.display().as_maybe_owned().as_slice());
|
||||
err.push_str(path.display().as_cow().as_slice());
|
||||
self.span_fatal(id_sp, err.as_slice());
|
||||
}
|
||||
None => ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue