Skip to content

Commit 91338f6

Browse files
committed
Latest nightly doesn't seem to have this optimization
1 parent 958c2bb commit 91338f6

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/size_of_tests.rs

+7-4
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,20 @@ size_of_test!(parser, crate::parser::Parser, 16);
5151
size_of_test!(source_position, crate::SourcePosition, 8);
5252
size_of_test!(parser_state, crate::ParserState, 24);
5353

54-
size_of_test!(basic_parse_error, crate::BasicParseError, if cfg!(rustc_has_better_cow_layout) { 40 } else { 48 });
54+
size_of_test!(basic_parse_error, crate::BasicParseError, 40);
5555
size_of_test!(
5656
parse_error_lower_bound,
5757
crate::ParseError<()>,
58-
if cfg!(rustc_has_better_cow_layout) {
58+
if cfg!(rustc_has_pr45225) {
5959
40
60-
} else if cfg!(rustc_has_pr45225) {
61-
48
6260
} else {
6361
56
6462
}
6563
);
6664

6765
size_of_test!(color, crate::Color, 20);
66+
67+
#[test]
68+
fn asdfk() {
69+
println!("{}", std::mem::size_of::<std::borrow::Cow<'static, str>>());
70+
}

0 commit comments

Comments
 (0)