diff options
| author | bors <bors@rust-lang.org> | 2020-03-23 12:40:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-03-23 12:40:36 +0000 |
| commit | 8549cfed4bbcdd28ef3a36e5de72c000e32f650e (patch) | |
| tree | 8767b779bc071839adf90065d75c6d4484634190 /src/librustdoc | |
| parent | 5aa8f199c398644d9fc2bb9ac8cffd14f985686d (diff) | |
| parent | b8f98662577f5423e2a2c4ffdfafbad9e4526058 (diff) | |
| download | rust-8549cfed4bbcdd28ef3a36e5de72c000e32f650e.tar.gz rust-8549cfed4bbcdd28ef3a36e5de72c000e32f650e.zip | |
Auto merge of #69649 - estebank:negative-impl-span, r=Centril
Tweak output for invalid negative impl errors
Follow up to #69722. Tweak negative impl errors emitted in the HIR:
```
error[E0192]: invalid negative impl
--> $DIR/E0192.rs:9:6
|
LL | impl !Trait for Foo { }
| ^^^^^^
|
= note: negative impls are only allowed for auto traits, like `Send` and `Sync`
```
Diffstat (limited to 'src/librustdoc')
| -rw-r--r-- | src/librustdoc/visit_ast.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustdoc/visit_ast.rs b/src/librustdoc/visit_ast.rs index feaf391c95a..e49395c6fd4 100644 --- a/src/librustdoc/visit_ast.rs +++ b/src/librustdoc/visit_ast.rs @@ -563,6 +563,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> { polarity, defaultness, constness, + defaultness_span: _, ref generics, ref of_trait, self_ty, |
