mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
Remove silly FmtPrinter<'tcx, 'tcx> instance.
This doesn't match any of the other uses.
This commit is contained in:
@@ -60,7 +60,7 @@ pub fn build_overflow_error(
|
||||
) -> Diag<'a> {
|
||||
fn with_short_path<'tcx, T>(tcx: TyCtxt<'tcx>, value: T) -> String
|
||||
where
|
||||
T: fmt::Display + Print<FmtPrinter<'tcx, 'tcx>>,
|
||||
T: fmt::Display + for<'b> Print<FmtPrinter<'b, 'tcx>>,
|
||||
{
|
||||
let s = value.to_string();
|
||||
if s.len() > 50 {
|
||||
|
||||
Reference in New Issue
Block a user