1
Fork 0

Rollup merge of #79474 - jyn514:query-mode, r=Aaron1011

Change comments on types to doc-comments

Found while investigating https://github.com/rust-lang/rust/issues/79459.

r? `@Aaron1011`
This commit is contained in:
Jonas Schievink 2020-11-28 15:58:25 +01:00 committed by GitHub
commit afc5542a9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,13 +97,13 @@ impl Default for SkipLeakCheck {
/// The mode that trait queries run in. /// The mode that trait queries run in.
#[derive(Copy, Clone, PartialEq, Eq, Debug)] #[derive(Copy, Clone, PartialEq, Eq, Debug)]
pub enum TraitQueryMode { pub enum TraitQueryMode {
// Standard/un-canonicalized queries get accurate /// Standard/un-canonicalized queries get accurate
// spans etc. passed in and hence can do reasonable /// spans etc. passed in and hence can do reasonable
// error reporting on their own. /// error reporting on their own.
Standard, Standard,
// Canonicalized queries get dummy spans and hence /// Canonicalized queries get dummy spans and hence
// must generally propagate errors to /// must generally propagate errors to
// pre-canonicalization callsites. /// pre-canonicalization callsites.
Canonical, Canonical,
} }