rust/src
Dylan DPC f2810d5fa0
Rollup merge of #84221 - ABouttefeux:generic-arg-elision, r=estebank
E0599 suggestions and elision of generic argument if no canditate is found

fixes #81576
changes: In error E0599 (method not found) generic argument are eluded if the method was not found anywhere. If the method was found in another inherent implementation suggest that it was found elsewhere.

Example
```rust

struct Wrapper<T>(T);

struct Wrapper2<T> {
    x: T,
}

impl Wrapper2<i8> {
    fn method(&self) {}
}

fn main() {
    let wrapper = Wrapper(i32);
    wrapper.method();
    let wrapper2 = Wrapper2{x: i32};
    wrapper2.method();
}
```

```
Error[E0599]: no method named `method` found for struct `Wrapper<_>` in the current scope
....
error[E0599]: no method named `method` found for struct `Wrapper2<i32>` in the current scope
...
   = note: The method was found for Wrapper2<i8>.

```
I am not very happy with the ```no method named `test` found for struct `Vec<_, _>` in the current scope```. I think it might be better to show only one generic argument `Vec<_>` if there is a default one. But I haven't yet found a way to do that,
2021-05-27 03:02:03 +02:00
..
bootstrap Rollup merge of #85647 - rust-lang:revert-81601-llvm-on-demand, r=jyn514 2021-05-26 13:31:03 +09:00
build_helper Revert "Move llvm submodule updates to rustbuild" 2021-05-24 17:52:18 -04:00
ci Auto merge of #85252 - kulikjak:fix-solaris-CI, r=Mark-Simulacrum 2021-05-26 04:27:23 +00:00
doc Rollup merge of #85699 - ehuss:update-books, r=ehuss 2021-05-26 13:31:08 +09:00
etc Fix HashMap/HashSet LLDB pretty-printer after hashbrown 0.11.0 2021-04-06 12:44:17 +03:00
librustdoc Rollup merge of #84048 - konan8205:master, r=jsha 2021-05-26 13:30:54 +09:00
llvm-project@5f67a57157 Update LLVM submodule 2021-05-12 21:15:39 +02:00
rustdoc-json-types rustdoc-json: Rename Import.span to Import.source 2021-03-21 19:47:12 -07:00
test Rollup merge of #84221 - ABouttefeux:generic-arg-elision, r=estebank 2021-05-27 03:02:03 +02:00
tools Update RLS 2021-05-26 14:02:26 +02:00
README.md update message 2021-02-14 10:08:37 +05:30
stage0.txt remove cfg(bootstrap) 2021-05-24 11:07:48 -04:00
version bump version to 1.54.0 2021-04-30 15:24:00 +02:00

This directory contains the source code of the rust project, including:

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.