fn print_report<'tcx>(ctx: &GotocCtx, tcx: TyCtxt<'tcx>) {
    // Print all unsupported constructs.
    if !ctx.unsupported_constructs.is_empty() {
        // Sort alphabetically.
        let unsupported: BTreeMap<String, &Vec<Location>> = ctx
            .unsupported_constructs
            .iter()
            .map(|(key, val)| (key.map(|s| String::from(s)), val))
            .collect();
        let mut msg = String::from("Found the following unsupported constructs:\n");
        unsupported.iter().for_each(|(construct, locations)| {
            msg += &format!("    - {} ({})\n", construct, locations.len())
        });
        msg += "\nVerification will fail if one or more of these constructs is reachable.";
        msg += "\nSee https://model-checking.github.io/kani/rust-feature-support.html for more \
        details.";
        tcx.sess.warn(&msg);
    }
}
/// Prints a report at the end of the compilation.
Prints a report at the end of the compilation.
Prints a report at the end of the compilation .
fn print_report<'tcx>(ctx: &GotocCtx, tcx: TyCtxt<'tcx>) {
    // Print all unsupported constructs.
    if !ctx.unsupported_constructs.is_empty() {
        // Sort alphabetically.
        let unsupported: BTreeMap<String, &Vec<Location>> = ctx
            .unsupported_constructs
            .iter()
            .map(|(key, val)| (key.map(|s| String::from(s)), val))
            .collect();
        let mut msg = String::from("Found the following unsupported constructs:\n");
        unsupported.iter().for_each(|(construct, locations)| {
            msg += &format!("    - {} ({})\n", construct, locations.len())
        });
        msg += "\nVerification will fail if one or more of these constructs is reachable.";
        msg += "\nSee https://model-checking.github.io/kani/rust-feature-support.html for more \
        details.";
        tcx.sess.warn(&msg);
    }
}
fn print_report < ' tcx > ( ctx : & GotocCtx , tcx : TyCtxt < ' tcx > ) { // Print all unsupported constructs. if ! ctx . unsupported_constructs . is_empty ( ) { // Sort alphabetically. let unsupported : BTreeMap < String , & Vec < Location > > = ctx . unsupported_constructs . iter ( ) . map ( | ( key , val ) | ( key . map ( | s | String :: from ( s ) ) , val ) ) . collect ( ) ; let mut msg = String :: from ( " \n " ) ; unsupported . iter ( ) . for_each ( | ( construct , locations ) | { msg += & format ! ( " \n " construct locations len ( ) ) } ) ; msg += " \n " ; msg += " \n \
 " ; tcx . sess . warn ( & msg ) ; } }
Prints a report at the end of the compilation.
Prints a report at the end of the compilation .
ctx
&GotocCtx
tcx
TyCtxt<'tcx>