Enforce that all spans are lowered in ast lowering#135874
Enforce that all spans are lowered in ast lowering#135874bors merged 1 commit intorust-lang:masterfrom
Conversation
|
rustbot has assigned @compiler-errors. Use |
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Enforce that all spans are lowered in ast lowering This should ensure that incremental is used as extensively as possible. It's only a debug assertion, and only enabled when incremental is enabled (as we only lower spans to relative spans then).
| self.arena.alloc(self.ty(span, hir::TyKind::Path(qpath))), | ||
| self.arena.alloc(hir::PathSegment::new( | ||
| Ident::new(name, span), | ||
| Ident::new(name, self.lower_span(span)), |
There was a problem hiding this comment.
This is used a lot in the format_args! lowering
| // this as a special case. | ||
| return self.lower_fn_body(decl, |this| { | ||
| if attrs.iter().any(|a| a.name_or_empty() == sym::rustc_intrinsic) { | ||
| let span = this.lower_span(span); |
There was a problem hiding this comment.
Unlikely to have any effect anywhere, as this is only for intrinsics, but to pacify the new debug assert
|
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (d0cd0c2): comparison URL. Overall result: no relevant changes - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (primary -1.2%, secondary 3.4%)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 5.4%)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: 765.273s -> 765.138s (-0.02%) |
|
@bors r+ rollup |
…iaskrgr Rollup of 10 pull requests Successful merges: - rust-lang#133372 (Refactor dyn-compatibility error and suggestions) - rust-lang#134396 (AIX: use align 8 for byval parameter) - rust-lang#135156 (Make our `DIFlags` match `LLVMDIFlags` in the LLVM-C API) - rust-lang#135816 (Use `structurally_normalize` instead of manual `normalizes-to` goals in alias relate errors) - rust-lang#135823 (make UI tests that use `--test` work on panic=abort targets) - rust-lang#135850 (Update the `wasm-component-ld` tool) - rust-lang#135858 (rustdoc: Finalize dyn compatibility renaming) - rust-lang#135866 (Don't pick `T: FnPtr` nested goals as the leaf goal in diagnostics for new solver) - rust-lang#135874 (Enforce that all spans are lowered in ast lowering) - rust-lang#135875 (Remove `Copy` bound from `enter_forall`) r? `@ghost` `@rustbot` modify labels: rollup
This should ensure that incremental is used as extensively as possible. It's only a debug assertion, and only enabled when incremental is enabled (as we only lower spans to relative spans then).