Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

Commit 7e40255

Browse files
committed
Use .rsplit_once("/src/") instead of .split_once("/src/").
1 parent f559a6b commit 7e40255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rustc_codegen_spirv/src/linker/spirt_passes/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ impl DiagnosticReporter<'_> {
332332
let prefix = match level {
333333
DiagLevel::Bug(location) => {
334334
let location = location.to_string();
335-
let location = match location.split_once("/src/") {
335+
let location = match location.rsplit_once("/src/") {
336336
Some((_path_prefix, intra_src)) => intra_src,
337337
None => &location,
338338
};

0 commit comments

Comments
 (0)