Skip to content

gccrs: Change alloc crate test edition to 2018 - #4887

Merged
powerboat9 merged 1 commit into
Rust-GCC:masterfrom
powerboat9:fix-alloc
Sep 12, 2026
Merged

gccrs: Change alloc crate test edition to 2018#4887
powerboat9 merged 1 commit into
Rust-GCC:masterfrom
powerboat9:fix-alloc

Conversation

@powerboat9

Copy link
Copy Markdown
Collaborator

Fixes #4815

The alloc crate should be tested with edition 2018, not 2015. However,
the included mock core crate did not support edition 2018.

gcc/testsuite/ChangeLog:

	* rust/alloc/alloc.exp: Test with edition 2018.
	* rust/alloc/core.rs: Fix some use declaration paths and use raw
	identifiers for "try".

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>

@CohenArthur CohenArthur left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@powerboat9
powerboat9 added this pull request to the merge queue Sep 12, 2026
Merged via the queue into Rust-GCC:master with commit a62af14 Sep 12, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make alloc compile with edition 2018

2 participants