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.
local_path()
into_local_path()
1 parent 2ee4f9e commit 93af682Copy full SHA for 93af682
1 file changed
compiler/rustc_span/src/lib.rs
@@ -374,6 +374,8 @@ impl RealFileName {
374
/// if this information exists.
375
///
376
/// May not exists if the filename was imported from another crate.
377
+ ///
378
+ /// Avoid embedding this in build artifacts; prefer `path()` or `embeddable_name()`.
379
#[inline]
380
pub fn local_path(&self) -> Option<&Path> {
381
self.local.as_ref().map(|lp| lp.name.as_ref())
@@ -383,6 +385,8 @@ impl RealFileName {
383
385
384
386
387
388
389
390
391
pub fn into_local_path(self) -> Option<PathBuf> {
392
self.local.map(|lp| lp.name)
0 commit comments