Repository navigation
Various refactorings to rustc_interface - #126834
Conversation
commented
Jun 22, 2024
|
rustbot has assigned @michaelwoerister. Use |
b1e8447 to
5518265
Compare
commented
Jun 22, 2024
|
This PR modifies cc @jieyouxu |
| &sess.opts.unstable_opts.crate_attr, | ||
| ); | ||
|
|
||
| // FIXME modify krate.attrs in place once #65860 is a hard error. |
There was a problem hiding this comment.
I disagree with this and would like to see everything expanded as a part of the regular expansion phase (that's why I introduced the current setup in #108221), that will allow to expand crate-level macro attributes correctly.
If some crate attribute has to be used before that, then it is an exception that should be clearly visible, such attributes need to have some restrictions (e.g. cannot be macro-generated).
5518265 to
1559962
Compare
This comment has been minimized.
This comment has been minimized.
commented
Jun 22, 2024
|
Seems like |
1559962 to
afd267b
Compare
This comment has been minimized.
This comment has been minimized.
Before if the closure passed to run_compiler emitted an error without calling abort_if_errors and no diagnostics have been stashed, run_compiler would return normally as if no error had occured.
afd267b to
8d1f5b3
Compare
commented
Jun 22, 2024
|
I can't reproduce the bug locally. I've dropped the offending commit for now. |
commented
Jun 24, 2024
commented
Jun 24, 2024
commented
Jun 25, 2024
commented
Jun 25, 2024
commented
Jun 25, 2024
|
💔 Test failed - checks-actions |
commented
Jun 25, 2024
|
@bors retry spurious network issue |
commented
Jun 25, 2024
commented
Jun 25, 2024
|
☀️ Test successful - checks-actions |
commented
Jun 25, 2024
|
Finished benchmarking commit (c2d2bb3): comparison URL. Overall result: ❌✅ regressions and improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)Results (primary -4.2%, secondary -3.5%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResults (secondary 2.8%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 693.956s -> 693.71s (-0.04%) |
This should make it easier to move the driver interface away from queries in the future. Many custom drivers call queries like
queries.global_ctxt()before they are supposed to be called, breaking some things like certain--printand-Zunprettyoptions,-Zparse-onlyand emitting the dep info at the wrong point in time. They are also not actually necessary at all. Passing around the query output manually would avoid recomputation too and would be just as easy. Removing driver queries would also reduce the amount of global mutable state of the compiler. I'm not removing driver queries in this PR to avoid breaking the aforementioned custom drivers.