This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
3dd638fe6c
rust
/
tests
/
run-make
/
issue-85019-moved-src-dir
/
my_lib.rs
2 lines
34 B
Rust
Raw
Normal View
History
Unescape
Escape
Include (potentially remapped) working dir in crate hash Fixes #85019 A `SourceFile` created during compilation may have a relative path (e.g. if rustc itself is invoked with a relative path). When we write out crate metadata, we convert all relative paths to absolute paths using the current working direction. However, the working directory is not included in the crate hash. This means that the crate metadata can change while the crate hash remains the same. Among other problems, this can cause a fingerprint mismatch ICE, since incremental compilation uses the crate metadata hash to determine if a foreign query is green. This commit moves the field holding the working directory from `Session` to `Options`, including it as part of the crate hash.
2021-08-12 15:30:40 -05:00
pub
fn
my_fn
<
T
:
Copy
>
(
_val
:
T
)
{
}
Reference in New Issue
Copy Permalink