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

Rollup of 5 pull requests #133551

Merged
merged 20 commits into from
Nov 28, 2024
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
8fbe046
Let make_input immediately report an error for multiple input filenames
bjorn3 Nov 26, 2023
bec24a2
Don't mutably borrow GlobalCtxt in QueryResult::enter
bjorn3 Nov 26, 2023
8e9bbc8
Move some code from Compiler::enter to GlobalCtxt::finish
bjorn3 Oct 31, 2024
1eece74
Reduce the amount of GlobalCtxt::enter calls in the driver
bjorn3 Nov 26, 2023
3b02a33
Pass TyCtxt instead of Queries to the after_analysis callbacks
bjorn3 Oct 31, 2024
159ba4c
Deprecate the after_crate_root_parsing callback
bjorn3 Oct 31, 2024
619a272
coverage: Ignore functions that end up having no mappings
Zalathar Nov 24, 2024
87fe7de
coverage: Rename some FFI fields from `span` to `cov_span`
Zalathar Nov 24, 2024
b9fb1a6
coverage: Store coverage source regions as `Span` until codegen
Zalathar Nov 24, 2024
2748009
coverage: Identify source files by ID, not by interned filename
Zalathar Nov 24, 2024
02c3e6d
Add missing code examples on `LocalKey`
GuillaumeGomez Nov 26, 2024
72cd7ac
Structurally resolve before checking never
compiler-errors Nov 26, 2024
48b2bbd
Structurally resolve before matching on type of projection
compiler-errors Nov 27, 2024
4c0ea55
Bless tests due to extra error reporting due to normalizing types tha…
compiler-errors Nov 27, 2024
dc65c63
Fix review comment
bjorn3 Nov 27, 2024
af1ca15
Rollup merge of #132410 - bjorn3:yet_another_driver_refactor_round, r…
matthiaskrgr Nov 27, 2024
adf9b5f
Rollup merge of #133418 - Zalathar:spans, r=jieyouxu
matthiaskrgr Nov 27, 2024
a8b690f
Rollup merge of #133498 - GuillaumeGomez:missing-examples, r=joboet
matthiaskrgr Nov 27, 2024
5d0ee56
Rollup merge of #133518 - compiler-errors:structurally-resolve-never,…
matthiaskrgr Nov 27, 2024
5fc4f85
Rollup merge of #133521 - compiler-errors:structurally-resolve-cat-pr…
matthiaskrgr Nov 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Deprecate the after_crate_root_parsing callback
Several custom drivers are incorrectly calling queries.global_ctxt()
from inside of it, which causes some driver code to be skipped. As such
I would like to either remove it in the future or if custom drivers
still need it, change it to accept an &rustc_ast::Crate instead.
  • Loading branch information
bjorn3 committed Nov 9, 2024
commit 159ba4ceabbb453bc77263f73f59887b5dfe7d72
4 changes: 4 additions & 0 deletions compiler/rustc_driver_impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ pub trait Callbacks {
/// Called after parsing the crate root. Submodules are not yet parsed when
/// this callback is called. Return value instructs the compiler whether to
/// continue the compilation afterwards (defaults to `Compilation::Continue`)
#[deprecated = "This callback will likely be removed or stop giving access \
to the TyCtxt in the future. Use either the after_expansion \
or the after_analysis callback instead."]
fn after_crate_root_parsing<'tcx>(
&mut self,
_compiler: &interface::Compiler,
Expand Down Expand Up @@ -409,6 +412,7 @@ fn run_compiler(
return early_exit();
}

#[allow(deprecated)]
if callbacks.after_crate_root_parsing(compiler, queries) == Compilation::Stop {
return early_exit();
}
Expand Down
Loading