Commit graph

9 commits

Author SHA1 Message Date
Albert Larsan cf2dff2b1e
Move /src/test to /tests 2023-01-11 09:32:08 +00:00
Joshua Nelson 1cdc81bdc1 Don't pass -Z unstable-options by default for UI tests
- Pass it explicitly where appropriate
- Update stderr files and warnings; it turns that unstable-options has
  far-reaching effects on diagnostics.
2021-06-06 00:44:54 -04:00
Joshua Nelson e3031fe22a Allow registering tool lints with register_tool
Previously, there was no way to add a custom tool prefix, even if the tool
itself had registered a lint:

 ```
 #![feature(register_tool)]
 #![register_tool(xyz)]
 #![warn(xyz::my_lint)]
 ```

```
$ rustc unknown-lint.rs  --crate-type lib
error[E0710]: an unknown tool name found in scoped lint: `xyz::my_lint`
 --> unknown-lint.rs:3:9
  |
3 | #![warn(xyz::my_lint)]
  |         ^^^
```

This allows opting-in to lints from other tools using `register_tool`.
2021-03-16 17:33:03 -04:00
bishtpawan 5c65568f0b update tool_lints 2020-03-25 11:32:23 +05:30
bishtpawan 10226daa4e Update tools_lints 2020-03-24 15:41:31 +05:30
Vadim Petrochenkov 642669c74d Update tests 2020-01-09 21:23:12 +03:00
Andy Russell b6f148c8bd
hide --explain hint if error has no extended info 2019-04-18 13:29:28 -04:00
Mark Rousskov 2a663555dd Remove licenses 2018-12-25 21:08:33 -07:00
flip1995 c3949009ad
Improving span of unknown lint tool error message 2018-07-04 14:28:44 +02:00