-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aggregation of cosmetic changes made during work on REPL PRs: misc. #64275
Conversation
@@ -256,10 +256,10 @@ pub trait BuilderMethods<'a, 'tcx>: | |||
fn atomic_fence(&mut self, order: AtomicOrdering, scope: SynchronizationScope); | |||
fn set_invariant_load(&mut self, load: Self::Value); | |||
|
|||
/// Called for `StorageLive` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert removal of backticks.
impl rustc_serialize::UseSpecializedDecodable for Fingerprint { } | ||
|
||
impl rustc_serialize::SpecializedEncoder<Fingerprint> for Encoder { | ||
#[inline] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semantic change.
fn specialized_encode(&mut self, f: &Fingerprint) -> Result<(), Self::Error> { | ||
f.encode_opaque(self) | ||
} | ||
} | ||
|
||
impl<'a> rustc_serialize::SpecializedDecoder<Fingerprint> for Decoder<'a> { | ||
#[inline] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semantic change.
/// Can be used run `rustc_interface` queries. | ||
/// Created by passing `Config` to `run_compiler`. | ||
pub struct Compiler { | ||
pub(crate) sess: Lrc<Session>, | ||
codegen_backend: Lrc<Box<dyn CodegenBackend>>, | ||
source_map: Lrc<SourceMap>, | ||
pub codegen_backend: Lrc<Box<dyn CodegenBackend>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semantic changes here.
@@ -71,7 +71,7 @@ impl<T> Default for Query<T> { | |||
} | |||
|
|||
#[derive(Default)] | |||
pub(crate) struct Queries { | |||
pub struct Queries { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semantic change here.
@@ -1031,18 +1030,18 @@ impl Decodable for SourceFile { | |||
Ok(lines) | |||
})?; | |||
let multibyte_chars: Vec<MultiByteChar> = | |||
d.read_struct_field("multibyte_chars", 7, |d| Decodable::decode(d))?; | |||
d.read_struct_field("multibyte_chars", 6, |d| Decodable::decode(d))?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semantic changes here, revert.
let non_narrow_chars: Vec<NonNarrowChar> = | ||
d.read_struct_field("non_narrow_chars", 8, |d| Decodable::decode(d))?; | ||
d.read_struct_field("non_narrow_chars", 7, |d| Decodable::decode(d))?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semantic changes here, revert.
let name_hash: u128 = | ||
d.read_struct_field("name_hash", 9, |d| Decodable::decode(d))?; | ||
d.read_struct_field("name_hash", 8, |d| Decodable::decode(d))?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semantic changes here, revert.
@@ -1,6 +1,6 @@ | |||
// compile-flags: -Z span_free_formats -Z mir-emit-retag | |||
|
|||
// Tests that MIR inliner fixes up `Retag`'s `fn_entry` flag | |||
// Tests that MIR inliner fixes up Retag's `fn_entry` flag. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert; should have backticks.
@@ -1,4 +1,4 @@ | |||
// Whenever a `StorageDead` MIR statement destroys a value `x`, | |||
// Whenever a StorageDead MIR statement destroys a value `x`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert, should have backticks.
Thanks for the PR. Unfortunately, as per our rules set up in #58619, I am closing this PR. |
Factored out from hacking on rustc for work on the REPL.
r? @Centril