Auto merge of #91957 - nnethercote:rm-SymbolStr, r=oli-obk
Remove `SymbolStr` This was originally proposed in https://github.com/rust-lang/rust/pull/74554#discussion_r466203544. As well as removing the icky `SymbolStr` type, it allows the removal of a lot of `&` and `*` occurrences. Best reviewed one commit at a time. r? `@oli-obk`
This commit is contained in:
commit
a41a6925ba
140 changed files with 354 additions and 415 deletions
|
@ -825,7 +825,7 @@ impl<'tcx> SaveContext<'tcx> {
|
|||
for attr in attrs {
|
||||
if let Some(val) = attr.doc_str() {
|
||||
// FIXME: Should save-analysis beautify doc strings itself or leave it to users?
|
||||
result.push_str(&beautify_doc_string(val).as_str());
|
||||
result.push_str(beautify_doc_string(val).as_str());
|
||||
result.push('\n');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -616,7 +616,7 @@ impl<'hir> Sig for hir::Generics<'hir> {
|
|||
if let hir::GenericParamKind::Const { .. } = param.kind {
|
||||
param_text.push_str("const ");
|
||||
}
|
||||
param_text.push_str(¶m.name.ident().as_str());
|
||||
param_text.push_str(param.name.ident().as_str());
|
||||
defs.push(SigElement {
|
||||
id: id_from_hir_id(param.hir_id, scx),
|
||||
start: offset + text.len(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue