We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3714263 + 6d04085 commit cab65efCopy full SHA for cab65ef
compiler/rustc_lint/src/context.rs
@@ -711,6 +711,15 @@ impl<'tcx> LateContext<'tcx> {
711
712
/// Gets the absolute path of `def_id` as a vector of `Symbol`.
713
///
714
+ /// Note that this is kinda expensive because it has to
715
+ /// travel the tree and pretty-print. Use sparingly.
716
+ ///
717
+ /// If you're trying to match for an item given by its path, use a
718
+ /// diagnostic item. If you're only interested in given sections, use more
719
+ /// specific functions, such as [`TyCtxt::crate_name`]
720
721
+ /// FIXME: It would be great if this could be optimized.
722
723
/// # Examples
724
725
/// ```rust,ignore (no context or def id available)
0 commit comments