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
Add a specific flag for compiling core which changes compiler generated paths.
This is important for derives, and especially for core, where we want to implement
crate::marker::Copy rather than core::marker::Copy.
gcc/rust/ChangeLog:
* lang.opt: Add -frust-compile-core option.
* ast/rust-ast-builder.h: Add get_path_start method which depends on
-frust-compile-core
* ast/rust-ast-builder.cc (Builder::discriminant_value): Use it.
* expand/rust-derive-debug.cc (DeriveDebug::stub_debug_fn): Likewise.
* expand/rust-derive-default.cc (DeriveDefault::default_call): Likewise.
* expand/rust-derive-eq.cc (DeriveEq::assert_param_is_eq): Likewise.
* expand/rust-derive-hash.cc (DeriveHash::hash_call): Likewise.
(DeriveHash::hash_fn): Likewise.
* expand/rust-derive-ord.cc (DeriveOrd::cmp_call): Likewise.
(DeriveOrd::cmp_fn): Likewise.
(DeriveOrd::make_equal): Likewise.
(DeriveOrd::recursive_match): Likewise.
* expand/rust-expand-format-args.cc (format_arg): Likewise.
(expand_format_args): Likewise.
0 commit comments