Tighter type bounds for messages

Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
This commit is contained in:
Ralf Jung 2020-02-15 15:42:13 +01:00 committed by GitHub
parent c4a6f84b80
commit 0c8c800f21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -504,7 +504,7 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
&self,
lint: &'static lint::Lint,
source_info: SourceInfo,
message: &str,
message: &'static str,
panic: AssertKind<u64>,
) -> Option<()> {
let lint_root = self.lint_root(source_info)?;