Skip to main content

Module spans

Module spans 

Source

Re-exportsยง

use rustc_span::source_map::SourceMap; ๐Ÿ”’
use rustc_span::BytePos; ๐Ÿ”’
use rustc_span::Pos; ๐Ÿ”’
use rustc_span::SourceFile; ๐Ÿ”’
use rustc_span::Span; ๐Ÿ”’
use tracing::debug; ๐Ÿ”’
use crate::coverageinfo::ffi; ๐Ÿ”’
use crate::coverageinfo::mapgen::LocalFileId; ๐Ÿ”’

Structsยง

Coords ๐Ÿ”’
Line and byte-column coordinates of a source code span within some file. The file itself must be tracked separately.

Functionsยง

check_coords ๐Ÿ”’
If llvm-cov sees a source region that is improperly ordered (end < start), it will immediately exit with a fatal error. To prevent that from happening, discard regions that are improperly ordered, or might be interpreted in a way that makes them improperly ordered.
make_coords ๐Ÿ”’
Converts the span into its start line and column, and end line and column.