From d4b14f2be29965091fdfd0ec060af0a1b6cd00c4 Mon Sep 17 00:00:00 2001 From: Lucas Franceschino Date: Thu, 16 May 2024 09:12:07 +0200 Subject: [PATCH] fix(tests): do not snapshot stderr for `tests/traits` --- .../toolchain__traits into-fstar.snap | 104 +----------------- tests/traits/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 104 deletions(-) diff --git a/test-harness/src/snapshots/toolchain__traits into-fstar.snap b/test-harness/src/snapshots/toolchain__traits into-fstar.snap index b26c947a8..c54b93f95 100644 --- a/test-harness/src/snapshots/toolchain__traits into-fstar.snap +++ b/test-harness/src/snapshots/toolchain__traits into-fstar.snap @@ -15,114 +15,12 @@ info: issue_id: ~ positive: true snapshot: - stderr: true + stderr: false stdout: true include_flag: ~ backend_options: ~ --- exit = 0 -stderr = ''' -Compiling traits v0.1.0 (WORKSPACE_ROOT/traits) -disabled backtrace -warning[HaxFront]: Hax frontend found a projected type with escaping bound vars. Please report https://github.com/hacspec/hax/issues/495 - - Context: - - alias_ty: AliasTy { - substs: [ - P, - (&u8,), - ], - def_id: DefId(2:2933 ~ core[7e13]::ops::function::FnOnce::Output), - } - - alias_kind: Projection - - trait_ref:

> - - trait_ref_and_substs: ( -

>, - [], - ) - - rebased_substs: [ - P, - (&u8,), - (&u8,), - ] - - norm_rebased_substs: Ok( -

>, - ) - - norm_substs: Ok( -

>, - ) - - early_binder_substs: Ok( -

>, - ) - - early_binder_rebased_substs: Ok( -

>, - ) - --> traits/src/lib.rs:107:13 - | -107 | impl bool> Trait for P {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: ⚠️ This is a bug in Hax's frontend. - Please report this error to https://github.com/hacspec/hax/issues with some context (e.g. the current crate)! - -disabled backtrace -disabled backtrace -disabled backtrace -disabled backtrace -disabled backtrace -disabled backtrace -disabled backtrace -disabled backtrace -warning[HaxFront]: Hax frontend found a projected type with escaping bound vars. Please report https://github.com/hacspec/hax/issues/495 - - Context: - - alias_ty: AliasTy { - substs: [ - P, - (&::Item,), - ], - def_id: DefId(2:2933 ~ core[7e13]::ops::function::FnOnce::Output), - } - - alias_kind: Projection - - trait_ref:

::Item,)>> - - trait_ref_and_substs: ( -

::Item,)>>, - [], - ) - - rebased_substs: [ - P, - (&::Item,), - (&::Item,), - ] - - norm_rebased_substs: Err( - Type( - (&

::Item,), - ), - ) - - norm_substs: Err( - Type( - (&

::Item,), - ), - ) - - early_binder_substs: Ok( - <(&::Item,) as std::ops::FnOnce<(&

::Item,)>>, - ) - - early_binder_rebased_substs: Ok( - <(&::Item,) as std::ops::FnOnce<(&

::Item,)>>, - ) - --> /nix/store/bbq0z3kg0b7hb3n7agk20r7hg3alf4kb-rust-default-1.72.0-nightly-2023-06-28/lib/rustlib/src/rust/library/core/src/iter/adapters/filter.rs:51:1 - | -51 | impl Iterator for Filter - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: ⚠️ This is a bug in Hax's frontend. - Please report this error to https://github.com/hacspec/hax/issues with some context (e.g. the current crate)! - -disabled backtrace -disabled backtrace -disabled backtrace -warning: `traits` (lib) generated 2 warnings - Finished dev [unoptimized + debuginfo] target(s) in XXs''' [stdout] diagnostics = [] diff --git a/tests/traits/Cargo.toml b/tests/traits/Cargo.toml index 147a72f70..77a50c080 100644 --- a/tests/traits/Cargo.toml +++ b/tests/traits/Cargo.toml @@ -6,5 +6,5 @@ edition = "2021" [dependencies] [package.metadata.hax-tests] -into."fstar" = { } +into."fstar" = { snapshot = "stdout" }