Skip to main content

Module test

Module test 

Source
Expand description

Walks the crate looking for items/impl-items/trait-items that have either a rustc_dump_symbol_name or rustc_dump_def_path attribute and generates an error giving, respectively, the symbol name or def-path. This is used for unit testing the code that generates paths etc in all kinds of annoying scenarios.

Re-exportsยง

use rustc_attr_ir::find_attr; ๐Ÿ”’
use rustc_hir::CRATE_OWNER_ID; ๐Ÿ”’
use rustc_middle::ty::print::with_no_trimmed_paths; ๐Ÿ”’
use rustc_middle::ty::print::with_no_trimmed_paths; ๐Ÿ”’
use rustc_middle::ty::GenericArgs; ๐Ÿ”’
use rustc_middle::ty::Instance; ๐Ÿ”’
use rustc_middle::ty::TyCtxt; ๐Ÿ”’

Functionsยง

dump_symbol_names_and_def_paths