Skip to content

Commit 33ff3e9

Browse files
authored
Rollup merge of #135943 - hkBst:opt_imports, r=estebank
Rename `Piece::String` to `Piece::Lit` This renames Piece::String to Piece::Lit to avoid shadowing std::string::String and removes "pub use Piece::*;".
2 parents 07804f1 + e766255 commit 33ff3e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/hir-def/src/body/lower/asm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ impl ExprCollector<'_> {
229229
};
230230
for piece in unverified_pieces {
231231
match piece {
232-
rustc_parse_format::Piece::String(_) => {}
232+
rustc_parse_format::Piece::Lit(_) => {}
233233
rustc_parse_format::Piece::NextArgument(arg) => {
234234
// let span = arg_spans.next();
235235

crates/hir-def/src/hir/format_args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ pub(crate) fn parse(
287287

288288
for piece in pieces {
289289
match piece {
290-
parse::Piece::String(s) => {
290+
parse::Piece::Lit(s) => {
291291
unfinished_literal.push_str(s);
292292
}
293293
parse::Piece::NextArgument(arg) => {

0 commit comments

Comments
 (0)