rust/crates/hir/src
bors[bot] 529ca7e5e0
Merge #5643
5643: Add new consuming modifier, apply consuming and mutable to methods r=matklad a=Nashenas88

This adds a new `consuming` semantic modifier for syntax highlighters.

This also emits `mutable` and `consuming` in two cases:

- When a method takes `&mut self`, then it now has `function.mutable` emitted.
- When a method takes `self`, and the type of `Self` is not `Copy`, then `function.consuming` is emitted.

CC @flodiebold 

Co-authored-by: Paul Daniel Faria <Nashenas88@users.noreply.github.com>
2020-08-19 11:27:02 +00:00
..
semantics
code_model.rs Mark mutating functions with mutable modifier, and owning functions with consuming. 2020-08-16 10:22:51 -04:00
db.rs
diagnostics.rs
from_id.rs
has_source.rs synchronizing changes 2020-08-15 02:37:43 +07:00
lib.rs Add new method to Semantics, method_receiver_kind, which returns the kind of self 2020-08-16 10:26:16 -04:00
semantics.rs Add new method to Semantics, method_receiver_kind, which returns the kind of self 2020-08-16 10:26:16 -04:00
source_analyzer.rs Don't expose hir::Path out of hir 2020-08-15 18:50:41 +02:00