sorry for wrong commit massage i edited commit message in v2 patch Ata Borla <[email protected]>, 29 Eki 2026 Per, 16:28 tarihinde şunu yazdı:
> Replace NULL with nullptr in C++ files i want refactor other gccrs files > if can i permission i can refactor old null macros to nullptr > > gcc/rust/ChangeLog: > > * rust-lang.cc (grs_langhook_type_for_mode): changed NULL macros > to nullptr. > * rust-lang.cc (grs_langhook_pushdecl): Likewise. > * rust-lang.cc (grs_langhook_getdecls): Likewise. > > Signed-off-by: Ata Borla <[email protected]> > --- > gcc/rust/rust-lang.cc | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/gcc/rust/rust-lang.cc b/gcc/rust/rust-lang.cc > index 44b8daa110d..ccaf4a9a91d 100644 > --- a/gcc/rust/rust-lang.cc > +++ b/gcc/rust/rust-lang.cc > @@ -224,7 +224,7 @@ grs_langhook_type_for_mode (machine_mode mode, int > unsignedp) > : int_n_trees[i].signed_type); > > /* rust_unreachable */ > - return NULL; > + return nullptr; > } > > // Record a builtin function. > @@ -256,7 +256,7 @@ static tree > grs_langhook_pushdecl (tree decl ATTRIBUTE_UNUSED) > { > // rust_unreachable (); > - return NULL; > + return nullptr; > } > > /* This hook is used to get the current list of declarations as trees. > @@ -266,7 +266,7 @@ static tree > grs_langhook_getdecls (void) > { > // rust_unreachable(); > - return NULL; > + return nullptr; > } > > // Handle Rust-specific options. Return false if nothing happened. > -- > 2.56.0 > >
