[DO NOT MERGE] ./x test rust-analyzer
by jieyouxu · Pull Request #136779 · rust-lang/rust (original) (raw)
failures:
---- item_tree::tests::generics_with_attributes stdout ----
�[1m�[91merror�[97m: expect test failed�[0m
�[1m�[34m-->�[0m src/tools/rust-analyzer/crates/hir-def/src/item_tree/tests.rs:413:9
You can update all `expect!` tests by running:
env UPDATE_EXPECT=1 cargo test
To update a single test, place the cursor on `expect` token and use `run` feature of rust-analyzer.
�[1mExpect�[0m:
----
// AstId: 1
pub(self) struct S<#[cfg(never)] T>;
// AstId: 2
pub(self) struct S<A, B, #[cfg(never)] C>;
// AstId: 3
pub(self) struct S<A, #[cfg(never)] B, C>;
----
�[1mActual�[0m:
----
// AstId: 1
pub(self) struct S<T>;
// AstId: 2
pub(self) struct S<A, B, C>;
// AstId: 3
pub(self) struct S<A, B, C>;
----
�[1mDiff�[0m:
----
// AstId: 1
pub(self) struct S<�[4m�[31m#[cfg(never)] �[0mT>;
// AstId: 2
pub(self) struct S<A, B,�[4m�[31m #[cfg(never)]�[0m C>;
// AstId: 3
pub(self) struct S<A,�[4m�[31m #[cfg(never)]�[0m B, C>;
----
failures:
item_tree::tests::generics_with_attributes