Thanks to visit codestin.com Credit goes to github.com
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 2c966c4 commit c7fed7eCopy full SHA for c7fed7e
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
if !self.was_remapped() {
@@ -387,6 +389,8 @@ impl RealFileName {
387
389
388
390
391
392
393
394
395
pub fn into_local_path(self) -> Option<PathBuf> {
396
0 commit comments