Skip to content

Conversation

@lucasly-ba
Copy link
Contributor

Fixes #4266
gcc/rust/ChangeLog:

* hir/rust-ast-lower-base.cc (ASTLoweringBase::handle_doc_item_attribute): Make error.

gcc/testsuite/ChangeLog:

* rust/compile/issue-4226.rs: New test.

@lucasly-ba
Copy link
Contributor Author

We also need to fix #[doc = 1] should not work since 1 is not a string

@lucasly-ba lucasly-ba force-pushed the 4226-segfault-empty-doc-attribute branch 2 times, most recently from e6efc22 to 94d27fb Compare November 13, 2025 10:27
Copy link
Member

@philberty philberty left a comment

Choose a reason for hiding this comment

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

build fails and not sure about your FIXME

gcc/rust/ChangeLog:

	* hir/rust-ast-lower-base.cc (ASTLoweringBase::handle_doc_item_attribute): Make error.

gcc/testsuite/ChangeLog:

	* rust/compile/issue-4226.rs: New test.

Signed-off-by: Lucas Ly Ba <[email protected]>
@lucasly-ba lucasly-ba force-pushed the 4226-segfault-empty-doc-attribute branch from 94d27fb to a23fc2e Compare November 14, 2025 11:49
Copy link
Member

@philberty philberty left a comment

Choose a reason for hiding this comment

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

LGTM

@philberty philberty added the HIR label Nov 17, 2025
@philberty philberty added this pull request to the merge queue Nov 17, 2025
Merged via the queue into Rust-GCC:master with commit 6e5929a Nov 17, 2025
12 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in libcore 1.49 Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants