Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Tom Tromey <tromey@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Remove note about C++ demangler from Rust documentation
Date: Tue, 10 Mar 2026 21:20:27 +0200	[thread overview]
Message-ID: <86zf4fo5j8.fsf@gnu.org> (raw)
In-Reply-To: <20260310184653.983690-1-tromey@adacore.com> (message from Tom Tromey on Tue, 10 Mar 2026 12:46:53 -0600)

> From: Tom Tromey <tromey@adacore.com>
> Cc: Tom Tromey <tromey@adacore.com>
> Date: Tue, 10 Mar 2026 12:46:53 -0600
> 
> A note about the C++ demangler in the Rust documentation hasn't been
> accurate for a while.  Also, it probably isn't clear to users how this
> related to the next bit of text in the same bullet point.  This patch
> removes the obsolete comment.
> ---
>  gdb/doc/gdb.texinfo | 10 ++++------
>  1 file changed, 4 insertions(+), 6 deletions(-)
> 
> diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
> index 63f6fe39a55..ceb69669ea6 100644
> --- a/gdb/doc/gdb.texinfo
> +++ b/gdb/doc/gdb.texinfo
> @@ -18396,12 +18396,10 @@ to call generic functions or otherwise refer to generic items, you
>  will have to specify the type parameters manually.
>  
>  @item
> -@value{GDBN} currently uses the C@t{++} demangler for Rust.  In most
> -cases this does not cause any problems.  However, in an expression
> -context, completing a generic function name will give syntactically
> -invalid results.  This happens because Rust requires the @samp{::}
> -operator between the function name and its generic arguments.  For
> -example, @value{GDBN} might provide a completion like
> +In an expression context, completing a generic function name will give
> +syntactically invalid results.  This happens because Rust requires the
> +@samp{::} operator between the function name and its generic
> +arguments.  For example, @value{GDBN} might provide a completion like
>  @code{crate::f<u32>}, where the parser would require
>  @code{crate::f::<u32>}.

OK, thanks.

Approved-By: Eli Zaretskii <eliz@gnu.org>

      reply	other threads:[~2026-03-10 19:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-10 18:46 Tom Tromey
2026-03-10 19:20 ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86zf4fo5j8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=tromey@adacore.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox