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

doctest: Reset errors before dropping the parse session #81040

Merged
merged 2 commits into from
Jan 16, 2021

Commits on Jan 16, 2021

  1. doctest: Reset errors before dropping the parse session

    The first parse is to collect whether the code contains macros, has
    `main`, and uses other crates. In that pass we ignore errors as those
    will be reported when the test file is actually built.
    
    For that we need to reset errors in the `Diagnostic` otherwise when
    dropping it unhandled errors will be reported as compiler bugs.
    
    Fixes rust-lang#80992
    osa1 committed Jan 16, 2021
    Configuration menu
    Copy the full SHA
    eef383f View commit details
    Browse the repository at this point in the history
  2. Add a test

    osa1 committed Jan 16, 2021
    Configuration menu
    Copy the full SHA
    0ef5557 View commit details
    Browse the repository at this point in the history