You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gcc/rust/ChangeLog:
* util/rust-lang-item.h(LangItem::Kind): New CSTR kind.
* util/rust-lang-item.cc(LangItem::lang_items): Ditto.
* backend/rust-compile-type.cc(visit(TyTy::ReferenceType)): Add specific record
type for CStr.
* typecheck/rust-hir-type-check-base.cc(resolve_literal): Update C_STRING case to
resolve to the CStr language item instead.
gcc/testsuite/ChangeLog:
* rust/compile/c_string.rs: Add CStr language item definition.
* rust/compile/c_string_null_byte_check.rs: Ditto.
Signed-Off-By: Yap Zhi Heng <yapzhhg@gmail.com>
0 commit comments