Commit d38a22a
committed
Fix implementation to work for Rust 2015
Prioritizing the added check for the crate's name at the top of
`report_path_resolution_error()` seems to account for differences
in Rust 2015 and 2018's crate/module path systems, allowing
the same suggestion to show up for Rust 2015.1 parent 55bd201 commit d38a22a
File tree
3 files changed
+13
-17
lines changed- compiler/rustc_resolve/src
- tests/ui/resolve
3 files changed
+13
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2003 | 2003 | | |
2004 | 2004 | | |
2005 | 2005 | | |
2006 | | - | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
2007 | 2018 | | |
2008 | 2019 | | |
2009 | 2020 | | |
| |||
2202 | 2213 | | |
2203 | 2214 | | |
2204 | 2215 | | |
2205 | | - | |
2206 | | - | |
2207 | | - | |
2208 | | - | |
2209 | | - | |
2210 | | - | |
2211 | | - | |
2212 | | - | |
2213 | | - | |
2214 | | - | |
2215 | | - | |
2216 | 2216 | | |
2217 | 2217 | | |
2218 | 2218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | 4 | | |
9 | 5 | | |
10 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments