Only depend on CFG_VERSION in rustc_interface
this avoids having to rebuild the whole compiler on each commit when `omit-git-hash = false`.
This commit is contained in:
parent
0dddad0dc5
commit
d5f2b8e5c6
24 changed files with 97 additions and 71 deletions
|
@ -28,7 +28,7 @@ pub fn erase<T: EraseType>(src: T) -> Erase<T> {
|
|||
};
|
||||
|
||||
Erased::<<T as EraseType>::Result> {
|
||||
// SAFETY: Is it safe to transmute to MaybeUninit for types with the same sizes.
|
||||
// SAFETY: It is safe to transmute to MaybeUninit for types with the same sizes.
|
||||
data: unsafe { transmute_copy(&src) },
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue