Added Expect
lint level and attribute (RFC-2383)
* Also added the `LintExpectationId` which will be used in future commits
This commit is contained in:
parent
c42d846add
commit
9fef3d9e0a
10 changed files with 107 additions and 5 deletions
|
@ -331,6 +331,9 @@ impl Session {
|
|||
pub fn struct_allow(&self, msg: &str) -> DiagnosticBuilder<'_, ()> {
|
||||
self.diagnostic().struct_allow(msg)
|
||||
}
|
||||
pub fn struct_expect(&self, msg: &str, id: lint::LintExpectationId) -> DiagnosticBuilder<'_, ()> {
|
||||
self.diagnostic().struct_expect(msg, id)
|
||||
}
|
||||
pub fn struct_span_err<S: Into<MultiSpan>>(
|
||||
&self,
|
||||
sp: S,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue