Skip to content

Commit 79276fc

Browse files
CoAlloc: FIXME: tests/rustdoc XPath for Vec with default zero/no co-allocation meta.
1 parent 6110693 commit 79276fc

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

tests/rustdoc/inline_cross/impl_trait.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
extern crate impl_trait_aux;
55

66
// @has impl_trait/fn.func.html
7-
// @has - '//pre[@class="rust item-decl"]' "pub fn func<'a>(_x: impl Clone + Into<Vec<u8, Global>> + 'a)"
7+
// @has - '//pre[@class="rust item-decl"]' "pub fn func<'a>(_x: impl Clone + Into<Vec<u8, Global, 0>> + 'a)"
88
// @!has - '//pre[@class="rust item-decl"]' 'where'
9+
// FIXME: This depends on co-allocation default being NO/ZERO META.
910
pub use impl_trait_aux::func;
1011

1112
// @has impl_trait/fn.func2.html
@@ -38,8 +39,9 @@ pub use impl_trait_aux::func5;
3839
pub use impl_trait_aux::async_fn;
3940

4041
// @has impl_trait/struct.Foo.html
41-
// @has - '//*[@id="method.method"]//h4[@class="code-header"]' "pub fn method<'a>(_x: impl Clone + Into<Vec<u8, Global>> + 'a)"
42+
// @has - '//*[@id="method.method"]//h4[@class="code-header"]' "pub fn method<'a>(_x: impl Clone + Into<Vec<u8, Global, 0>> + 'a)"
4243
// @!has - '//*[@id="method.method"]//h4[@class="code-header"]' 'where'
44+
// FIXME: This depends on co-allocation default being NO/ZERO META.
4345
pub use impl_trait_aux::Foo;
4446

4547
// @has impl_trait/struct.Bar.html

tests/rustdoc/normalize-assoc-item.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ extern crate inner;
7676
// @has 'normalize_assoc_item/fn.foo.html' '//pre[@class="rust item-decl"]' "pub fn foo() -> i32"
7777
pub use inner::foo;
7878

79-
// @has 'normalize_assoc_item/fn.h.html' '//pre[@class="rust item-decl"]' "pub fn h<T>() -> IntoIter<T, Global>"
79+
// @has 'normalize_assoc_item/fn.h.html' '//pre[@class="rust item-decl"]' "pub fn h<T>() -> IntoIter<T, Global, 0>"
80+
// FIXME: This depends on co-allocation default being NO/ZERO META.
8081
pub fn h<T>() -> <Vec<T> as IntoIterator>::IntoIter {
8182
vec![].into_iter()
8283
}

0 commit comments

Comments
 (0)