This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix crash with empty Rust enum


>>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:

Tom> Maybe I could change rust_enum_variant so that the callers can do this.
Tom> I'll look.

I looked and I think I will keep it as is.
The existing errors refer to variants, like:

		  error(_("Cannot access field %d of variant %s::%s, "
			  "there are only %d fields"),

This seems nicely specific, so it's worth preserving; but on the other
hand, in the new scenario, there are no variants, so mentioning the
variant does not make sense.

However I am making the other change you suggested, and I found another
buglet besides which I will tack on.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]