Skip to content

Commit 0c8c800

Browse files
RalfJungCentril
andauthored
Tighter type bounds for messages
Co-Authored-By: Mazdak Farrokhzad <[email protected]>
1 parent c4a6f84 commit 0c8c800

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/transform/const_prop.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
504504
&self,
505505
lint: &'static lint::Lint,
506506
source_info: SourceInfo,
507-
message: &str,
507+
message: &'static str,
508508
panic: AssertKind<u64>,
509509
) -> Option<()> {
510510
let lint_root = self.lint_root(source_info)?;

0 commit comments

Comments
 (0)