1
Fork 0
rust/compiler/rustc_errors/src
bors 4322a785cc Auto merge of #97697 - WaffleLapkin:no_ref_vec, r=WaffleLapkin
Replace `&Vec<_>`s with `&[_]`s

It's generally preferable to use `&[_]` since it's one less indirection and it can be created from types other that `Vec`.

I've left `&Vec` in some locals where it doesn't really matter, in cases where `TypeFoldable` is expected (`TypeFoldable: Clone` so slice can't implement it) and in cases where it's `&TypeAliasThatIsActiallyVec`. Nothing important, really, I was just a little annoyed by `visit_generic_param_vec` :D

r? `@compiler-errors`
2022-06-05 09:30:53 +00:00
..
json Use serde_json for json error messages 2022-06-03 16:46:19 +00:00
annotate_snippet_emitter_writer.rs errors: lazily load fallback fluent bundle 2022-04-13 02:44:59 +01:00
diagnostic.rs Replace &Vec<_>s with &[_]s 2022-06-03 20:42:42 +04:00
diagnostic_builder.rs errors: simplify referring to fluent attributes 2022-05-30 13:38:19 +01:00
emitter.rs Mention filename in suggestion when it differs from primary span 2022-06-01 09:52:03 -07:00
json.rs Use serde_json for json error messages 2022-06-03 16:46:19 +00:00
lib.rs errors: simplify referring to fluent attributes 2022-05-30 13:38:19 +01:00
lock.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
registry.rs Remove (lots of) dead code 2021-03-27 22:16:33 -04:00
snippet.rs Compute most of Public/Exported access level in rustc_resolve 2022-01-09 21:33:14 +00:00
styled_buffer.rs Spellchecking some comments 2022-03-30 01:39:38 -04:00