Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssa: implement #[collapse_debuginfo] #99556

Merged
merged 2 commits into from
Sep 13, 2022

Commits on Sep 7, 2022

  1. middle: comment -> doc comment

    Drive-by change of a regular comment to a documentation comment on
    `TyCtxt::is_suitable_region`.
    
    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    2991a7c View commit details
    Browse the repository at this point in the history
  2. ssa: implement #[collapse_debuginfo]

    Debuginfo line information for macro invocations are collapsed by
    default - line information are replaced by the line of the outermost
    expansion site. Using `-Zdebug-macros` disables this behaviour.
    
    When the `collapse_debuginfo` feature is enabled, the default behaviour
    is reversed so that debuginfo is not collapsed by default. In addition,
    the `#[collapse_debuginfo]` attribute is available and can be applied to
    macro definitions which will then have their line information collapsed.
    
    Signed-off-by: David Wood <david.wood@huawei.com>
    davidtwco committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    38958aa View commit details
    Browse the repository at this point in the history