about summary refs log tree commit diff
path: root/tests/ui/offset-of
AgeCommit message (Collapse)AuthorLines
2023-11-24Show number in error message even for one errorNilstrieb-1/+1
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-16Suggest field typo through derefsEsteban Küber-0/+4
Take into account implicit dereferences when suggesting fields. ``` error[E0609]: no field `longname` on type `Arc<S>` --> $DIR/suggest-field-through-deref.rs:10:15 | LL | let _ = x.longname; | ^^^^^^^^ help: a field with a similar name exists: `long_name` ``` CC https://github.com/rust-lang/rust/issues/78374#issuecomment-719564114
2023-11-03Feature gate enums in offset_ofGeorge Bateman-2/+2
2023-10-31Update based on wesleywiser reviewGeorge Bateman-3/+10
2023-10-31Enums in offset_of: update based on est31, scottmcm & llogiq reviewGeorge Bateman-2/+27
2023-10-31Support enum variants in offset_of!George Bateman-13/+31
2023-10-04Point to where missing return type should goMichael Goulet-1/+1
2023-06-21Warn on unused offset_of!() resultChayim Refael Friedman-49/+49
2023-06-15change `std::marker::Sized` to just `Sized`Lukas Markeffsky-1/+1
2023-06-08Support float-like tuple indices in offset_of!()est31-18/+298
The tokenizer gives us whole float literal tokens, we have to split them up in order to be able to create field access from them.
2023-06-02Test invalid tuple field identifiersclubby789-0/+47
2023-06-02Check tuple elements are `Sized` in `offset_of`clubby789-6/+18
2023-05-29offset_of: Don't require type to be sizedclubby789-0/+15
2023-05-20don't skip inference for type in `offset_of!`Lukas Markeffsky-3/+33
2023-05-18Add more tests for the offset_of!() macroest31-7/+330
* ensuring that offset_of!(Self, ...) works iff inside an impl block * ensuring that the output type is usize and doesn't coerce. this can be changed in the future, but if it is done, it should be a conscious descision * improving the privacy checking test * ensuring that generics don't let you escape the unsized check
2023-05-16Erase regions of type in `offset_of!`clubby789-0/+5
2023-05-05Add feature gateest31-2/+2
2023-05-05Migrate offset_of from a macro to builtin # syntaxest31-13/+177
2023-04-21major test improvementsDrMeepster-9/+239
2023-04-21offset_ofDrMeepster-0/+79