mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-16 16:40:19 +00:00
red-knot: Port module resolver to salsa (#11835)
This commit is contained in:
parent
98b13b9844
commit
26ac805e6d
13 changed files with 1953 additions and 36 deletions
|
@ -54,7 +54,6 @@ impl std::fmt::Debug for SourceText {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use filetime::FileTime;
|
||||
use salsa::EventKind;
|
||||
|
||||
use ruff_source_file::OneIndexed;
|
||||
|
@ -80,7 +79,7 @@ mod tests {
|
|||
db.file_system_mut()
|
||||
.write_file(path, "x = 20".to_string())
|
||||
.unwrap();
|
||||
file.set_revision(&mut db).to(FileTime::now().into());
|
||||
file.touch(&mut db);
|
||||
|
||||
assert_eq!(&*source_text(&db, file), "x = 20");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue