Skip to main content

ling/borrowck/
mod.rs

1// src/borrowck/mod.rs
2mod region;
3mod move_check;
4mod lifetime;
5mod constraints;
6
7use crate::core::LingResult;
8
9// Borrow checking is WIP.
10#[derive(Clone, Debug, Default)]
11pub struct BorrowChecker;
12
13impl BorrowChecker {
14    pub fn check(&self, _hir: &()) -> LingResult<()> {
15        Ok(())
16    }
17}
18