about summary refs log tree commit diff
path: root/compiler/rustc_span/src/source_map.rs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2024-04-23 17:25:16 +0200
committerGitHub <noreply@github.com>2024-04-23 17:25:16 +0200
commite15d6f9d8580b5f54376c2c48bd5ecf8ba0b5ce7 (patch)
tree1fa63bd3dbb0e1ddef8f3ccc9c9f170dcbcc2bc7 /compiler/rustc_span/src/source_map.rs
parent2d7d4800548e3b8ad3133b909aa9020954567640 (diff)
parenta8c9a0bd8167c99557c9d475631c844775883336 (diff)
downloadrust-e15d6f9d8580b5f54376c2c48bd5ecf8ba0b5ce7.tar.gz
rust-e15d6f9d8580b5f54376c2c48bd5ecf8ba0b5ce7.zip
Rollup merge of #123993 - compiler-errors:coroutine-obl, r=lcnr
Do `check_coroutine_obligations` once per typeck root

We only need to do `check_coroutine_obligations` once per typeck root, especially since the new solver can't really (easily) associate which obligations correspond to which coroutines.

This requires us to move the checks for sized coroutine fields into `mir_coroutine_witnesses`, but that's fine imo.

r? lcnr
Diffstat (limited to 'compiler/rustc_span/src/source_map.rs')
-rw-r--r--compiler/rustc_span/src/source_map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_span/src/source_map.rs b/compiler/rustc_span/src/source_map.rs
index e3e76caebaf..33bd11cc807 100644
--- a/compiler/rustc_span/src/source_map.rs
+++ b/compiler/rustc_span/src/source_map.rs
@@ -14,7 +14,7 @@ use rustc_data_structures::sync::{IntoDynSyncSend, MappedReadGuard, ReadGuard, R
 use rustc_data_structures::unhash::UnhashMap;
 use std::fs;
 use std::io::{self, BorrowedBuf, Read};
-use std::path::{self};
+use std::path;
 
 #[cfg(test)]
 mod tests;